mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
brw: Use io_sem.location instead of base to get varying slots
Alyssa noted we can be using semantic IO here rather than relying on bases not having been remapped. Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38482>
This commit is contained in:
parent
96d331766a
commit
13acc889af
1 changed files with 3 additions and 2 deletions
|
|
@ -440,7 +440,7 @@ remap_patch_urb_offsets_instr(nir_builder *b, nir_intrinsic_instr *intrin, void
|
|||
io_sem.location == VARYING_SLOT_TESS_LEVEL_OUTER))
|
||||
return false;
|
||||
|
||||
gl_varying_slot varying = nir_intrinsic_base(intrin);
|
||||
gl_varying_slot varying = io_sem.location;
|
||||
|
||||
int vue_slot = vue_map->varying_to_slot[varying];
|
||||
assert(vue_slot != -1);
|
||||
|
|
@ -739,7 +739,8 @@ brw_nir_lower_vue_inputs(nir_shader *nir,
|
|||
* VARYING_SLOT_LAYER [.y], VARYING_SLOT_VIEWPORT [.z], and
|
||||
* VARYING_SLOT_PSIZ [.w].
|
||||
*/
|
||||
int varying = nir_intrinsic_base(intrin);
|
||||
nir_io_semantics io_sem = nir_intrinsic_io_semantics(intrin);
|
||||
gl_varying_slot varying = io_sem.location;
|
||||
int vue_slot;
|
||||
switch (varying) {
|
||||
case VARYING_SLOT_PSIZ:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue