nv50/ir: properly set sType for TXF ops to U32
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 24 Aug 2017 03:15:48 +0000 (23:15 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 24 Aug 2017 12:41:57 +0000 (08:41 -0400)
commit96be442b7795a6eb3d50f4061f2b98dddc39aa4d
treeb17240e5595733300dbd9b652f8f34dba4632625
parentbfef3fabc69de2bd1210ba0720eacd9e75548eac
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
src/gallium/drivers/nouveau/codegen/nv50_ir.cpp