mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 07:20:10 +01:00
pan/bi: Fix LD_VAR_BUF indirect offset calculations
We multiply by 16 correctly but then drop that in the case where vbase is non-zero. We typically lower FS input indirects so we don't see this often but there are a few cases where they still sneak through. Fixes:0fcddd4d2c("pan/bi: Rework varying linking on Valhall") Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38788> (cherry picked from commit83f90b0760)
This commit is contained in:
parent
a3b0070415
commit
95f11b74f5
2 changed files with 2 additions and 2 deletions
|
|
@ -244,7 +244,7 @@
|
|||
"description": "pan/bi: Fix LD_VAR_BUF indirect offset calculations",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "0fcddd4d2c401a7678139456702cbe15288eebf1",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -692,7 +692,7 @@ bi_emit_load_vary(bi_builder *b, nir_intrinsic_instr *instr)
|
|||
unsigned vbase = bi_varying_base_bytes(b->shader, instr);
|
||||
|
||||
if (vbase != 0)
|
||||
idx_bytes = bi_iadd_u32(b, idx, bi_imm_u32(vbase), false);
|
||||
idx_bytes = bi_iadd_u32(b, idx_bytes, bi_imm_u32(vbase), false);
|
||||
|
||||
bi_ld_var_buf_to(b, sz, dest, src0, idx_bytes, regfmt, sample,
|
||||
source_format, update, vecsize);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue