mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
elk: Disable IO semantic validation when remapping patch offsets
Marek disabled this for brw in 2f6b4803ab
but elk also needs the fix. Fixes issues in shader-db/open-subdiv/7 on
crocus targeting Haswell.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38231>
This commit is contained in:
parent
10e2631e79
commit
96b739b449
1 changed files with 7 additions and 0 deletions
|
|
@ -227,6 +227,13 @@ remap_patch_urb_offsets(nir_block *block, nir_builder *b,
|
|||
offset->ssa);
|
||||
|
||||
nir_src_rewrite(offset, total_offset);
|
||||
|
||||
/* Putting an address into offset_src requires that NIR
|
||||
* validation of IO intrinsics is disabled.
|
||||
*/
|
||||
nir_io_semantics io_sem = nir_intrinsic_io_semantics(intrin);
|
||||
io_sem.no_validate = 1;
|
||||
nir_intrinsic_set_io_semantics(intrin, io_sem);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue