mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
nv50/ir: properly set sType for TXF ops to U32
All of the coordinates and LOD args are integers for TXF. This mostly
doesn't matter, except for converting into a levelZero=true operation by
removing an explicit zero LOD. For the comparison against zero to work
properly, the sType of the instruction has to be set correctly.
Fixes: KHR-GL45.robust_buffer_access_behavior.texel_fetch
Reported-by: Karol Herbst <karolherbst@gmail.com>
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: mesa-stable@lists.freedesktop.org
(cherry picked from commit 96be442b77)
This commit is contained in:
parent
54bb87c25a
commit
52b0ad8666
1 changed files with 3 additions and 0 deletions
|
|
@ -905,6 +905,9 @@ TexInstruction::TexInstruction(Function *fn, operation op)
|
|||
|
||||
tex.rIndirectSrc = -1;
|
||||
tex.sIndirectSrc = -1;
|
||||
|
||||
if (op == OP_TXF)
|
||||
sType = TYPE_U32;
|
||||
}
|
||||
|
||||
TexInstruction::~TexInstruction()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue