mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
agx: Fix storing to varying arrays
The offset is in vec4s, not words (unlike the component). This doesn't matter right now since we get everything lowered (offset -> 0) but it will come up if we implement clip distances natively (instead of lowering in FS). Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21097>
This commit is contained in:
parent
897c47aa1c
commit
c3f7abaaef
1 changed files with 1 additions and 2 deletions
|
|
@ -423,8 +423,7 @@ agx_emit_store_vary(agx_builder *b, nir_intrinsic_instr *instr)
|
|||
|
||||
unsigned imm_index = b->shader->out->varyings.vs.slots[sem.location];
|
||||
assert(imm_index < ~0);
|
||||
imm_index += nir_intrinsic_component(instr);
|
||||
imm_index += nir_src_as_uint(*offset);
|
||||
imm_index += (nir_src_as_uint(*offset) * 4) + nir_intrinsic_component(instr);
|
||||
|
||||
/* nir_lower_io_to_scalar */
|
||||
assert(nir_intrinsic_write_mask(instr) == 0x1);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue