nvc0/ir: only try to check for zero LOD if we aren't already forcing it
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 13 Jan 2017 02:06:40 +0000 (21:06 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 13 Jan 2017 02:08:42 +0000 (21:08 -0500)
commitf897036978b42619ce27ea4f41886cc0002f33ef
tree8543c97fb8ad64477689c3c1d478b59cfbe5b3e5
parenteb60a89bc3ac2b43faf52d06e05670bbbca7292d
nvc0/ir: only try to check for zero LOD if we aren't already forcing it

There's a levelZero flag which forces texturing to pick level zero (and
not consume an explicit LOD argument). This is set for MS targets, but
could also be set for any other incoming instruction. As that is what
determines whether a LOD argument is present, check that rather than the
more indirect isMS logic.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp