Skip to content

broadcom/compiler: fix assert that current instruction must be in current block

Iago Toral requested to merge itoral/mesa:v3d_fix_try_opt_ldunif_debug into main

This was not considering the possibility that the driver has called nir_before_block() or nir_after_block() to update the cursor, in which case the cursor link points to the instruction list header and not to an actual instruction.

Fixes incorrect debug-assert crash in: dEQP-VK.graphicsfuzz.cov-increment-vector-component-with-matrix-copy

Fixes: 265515fa ("broadcom/compiler: check instruction belongs to current block")

Merge request reports