mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 06:30:10 +01:00
i965: Avoid crashing while dumping vec4 insn operands
We'd otherwise go looking into virtual_grf_sizes for things that aren't in there at all. Signed-off-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
1499619fe6
commit
1854ead64c
1 changed files with 4 additions and 1 deletions
|
|
@ -1337,7 +1337,10 @@ vec4_visitor::dump_instruction(backend_instruction *be_inst, FILE *file)
|
|||
break;
|
||||
}
|
||||
|
||||
if (virtual_grf_sizes[inst->src[i].reg] != 1)
|
||||
/* Don't print .0; and only VGRFs have reg_offsets and sizes */
|
||||
if (inst->src[i].reg_offset != 0 &&
|
||||
inst->src[i].file == GRF &&
|
||||
virtual_grf_sizes[inst->src[i].reg] != 1)
|
||||
fprintf(file, ".%d", inst->src[i].reg_offset);
|
||||
|
||||
if (inst->src[i].file != IMM) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue