i965/vs: include format argument in debug printf
otherwise some compilers will throw error "error: format not a string literal and no format arguments" Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
This commit is contained in:
parent
c2e37b1d2e
commit
f593acd577
|
@ -891,7 +891,7 @@ vec4_visitor::dump_instruction(vec4_instruction *inst)
|
||||||
static const char *chans[4] = {"x", "y", "z", "w"};
|
static const char *chans[4] = {"x", "y", "z", "w"};
|
||||||
printf(".");
|
printf(".");
|
||||||
for (int c = 0; c < 4; c++) {
|
for (int c = 0; c < 4; c++) {
|
||||||
printf(chans[BRW_GET_SWZ(inst->src[i].swizzle, c)]);
|
printf("%s", chans[BRW_GET_SWZ(inst->src[i].swizzle, c)]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (i < 3)
|
if (i < 3)
|
||||||
|
|
Loading…
Reference in New Issue