mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
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:
parent
9c159490c3
commit
083a557856
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue