mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
nvc0/ir: fix images indirect access on Fermi
This fixes the following piglits: arb_arrays_of_arrays-basic-imagestore-mixed-const-non-const-uniform-index arb_arrays_of_arrays-basic-imagestore-mixed-const-non-const-uniform-index2 Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: 12.0 <mesa-stable@lists.freedesktop.org>
This commit is contained in:
parent
33c8723980
commit
19d0450b27
1 changed files with 7 additions and 0 deletions
|
|
@ -2008,6 +2008,13 @@ NVC0LoweringPass::processSurfaceCoordsNVC0(TexInstruction *su)
|
|||
|
||||
adjustCoordinatesMS(su);
|
||||
|
||||
if (ind) {
|
||||
Value *ptr;
|
||||
ptr = bld.mkOp2v(OP_ADD, TYPE_U32, bld.getSSA(), ind, bld.mkImm(su->tex.r));
|
||||
ptr = bld.mkOp2v(OP_AND, TYPE_U32, bld.getSSA(), ptr, bld.mkImm(7));
|
||||
su->setIndirectR(ptr);
|
||||
}
|
||||
|
||||
// get surface coordinates
|
||||
for (c = 0; c < arg; ++c)
|
||||
src[c] = su->getSrc(c);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue