mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 15:50:17 +01:00
i965: Don't print extra (null) arguments in dump_instruction().
Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
d79e711718
commit
0e4053234d
2 changed files with 4 additions and 4 deletions
|
|
@ -2868,7 +2868,7 @@ fs_visitor::dump_instruction(backend_instruction *be_inst)
|
|||
}
|
||||
printf(", ");
|
||||
|
||||
for (int i = 0; i < 3; i++) {
|
||||
for (int i = 0; i < 3 && inst->src[i].file != BAD_FILE; i++) {
|
||||
if (inst->src[i].negate)
|
||||
printf("-");
|
||||
if (inst->src[i].abs)
|
||||
|
|
@ -2924,7 +2924,7 @@ fs_visitor::dump_instruction(backend_instruction *be_inst)
|
|||
if (inst->src[i].abs)
|
||||
printf("|");
|
||||
|
||||
if (i < 3)
|
||||
if (i < 2 && inst->src[i + 1].file != BAD_FILE)
|
||||
printf(", ");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1138,7 +1138,7 @@ vec4_visitor::dump_instruction(backend_instruction *be_inst)
|
|||
}
|
||||
printf(", ");
|
||||
|
||||
for (int i = 0; i < 3; i++) {
|
||||
for (int i = 0; i < 3 && inst->src[i].file != BAD_FILE; i++) {
|
||||
switch (inst->src[i].file) {
|
||||
case GRF:
|
||||
printf("vgrf%d", inst->src[i].reg);
|
||||
|
|
@ -1182,7 +1182,7 @@ vec4_visitor::dump_instruction(backend_instruction *be_inst)
|
|||
printf("%s", chans[BRW_GET_SWZ(inst->src[i].swizzle, c)]);
|
||||
}
|
||||
|
||||
if (i < 3)
|
||||
if (i < 2 && inst->src[i + 1].file != BAD_FILE)
|
||||
printf(", ");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue