mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 00:38:48 +02:00
nir/opt_vectorize_io: allow i/o semantics w/o component
load_uvs_index_agx always implicitly uses component 0. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com> Reviewed-by: Marek Olšák <maraeo@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36265>
This commit is contained in:
parent
75f25b35f8
commit
ebc18de6f5
1 changed files with 4 additions and 2 deletions
|
|
@ -583,8 +583,10 @@ nir_opt_vectorize_io(nir_shader *shader, nir_variable_mode modes,
|
|||
if (nir_intrinsic_has_io_semantics(intr)) {
|
||||
sem = nir_intrinsic_io_semantics(intr);
|
||||
assert(sem.location < NUM_TOTAL_VARYING_SLOTS);
|
||||
index = sem.location * 8 + sem.high_16bits * 4 +
|
||||
nir_intrinsic_component(intr);
|
||||
index = sem.location * 8 + sem.high_16bits * 4;
|
||||
|
||||
if (nir_intrinsic_has_component(intr))
|
||||
index += nir_intrinsic_component(intr);
|
||||
}
|
||||
|
||||
switch (intr->intrinsic) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue