d3d12: fix phi handling in d3d12_lower_primitive_id

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32005>
This commit is contained in:
Rhys Perry 2025-01-22 14:02:58 +00:00 committed by Marge Bot
parent 9c159490c3
commit 083a557856

View file

@ -609,7 +609,7 @@ d3d12_lower_primitive_id(nir_shader *shader)
primitive_id_var->data.interpolation = INTERP_MODE_FLAT;
nir_foreach_block(block, impl) {
b.cursor = nir_before_block(block);
b.cursor = nir_before_block_after_phis(block);
primitive_id = nir_load_primitive_id(&b);
nir_foreach_instr_safe(instr, block) {