broadcom/compiler: dump instruction index when failing to pack instructions
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9918>
This commit is contained in:
committed by
Marge Bot
parent
d62bb8bc0d
commit
062eee7d33
@@ -419,7 +419,7 @@ v3d_vir_to_qpu(struct v3d_compile *c, struct qpu_reg *temp_registers)
|
||||
bool ok = v3d_qpu_instr_pack(c->devinfo, &inst->qpu,
|
||||
&c->qpu_insts[i++]);
|
||||
if (!ok) {
|
||||
fprintf(stderr, "Failed to pack instruction:\n");
|
||||
fprintf(stderr, "Failed to pack instruction %d:\n", i);
|
||||
vir_dump_inst(c, inst);
|
||||
fprintf(stderr, "\n");
|
||||
c->compilation_result = V3D_COMPILATION_FAILED;
|
||||
|
||||
Reference in New Issue
Block a user