zink: apply component offset for CLIP/CULL DIST1 location derefs
cannot currently be reached Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28466>
This commit is contained in:
committed by
Marge Bot
parent
332c24774c
commit
cf4953d184
@@ -3678,6 +3678,10 @@ add_derefs_instr(nir_builder *b, nir_intrinsic_instr *intr, void *data)
|
||||
unsigned offset = slot_offset;
|
||||
if (is_builtin_array)
|
||||
offset *= 4;
|
||||
if (is_clipdist) {
|
||||
if (loc == VARYING_SLOT_CLIP_DIST1 || loc == VARYING_SLOT_CULL_DIST1)
|
||||
offset += 4;
|
||||
}
|
||||
deref = nir_build_deref_array_imm(b, deref, offset + idx);
|
||||
} else {
|
||||
nir_def *offset = src_offset->ssa;
|
||||
|
||||
Reference in New Issue
Block a user