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>
This commit is contained in:
parent
eb60a89bc3
commit
f897036978
|
@ -118,7 +118,7 @@ NVC0LegalizeSSA::handleFTZ(Instruction *i)
|
|||
void
|
||||
NVC0LegalizeSSA::handleTEXLOD(TexInstruction *i)
|
||||
{
|
||||
if (i->tex.target.isMS())
|
||||
if (i->tex.levelZero)
|
||||
return;
|
||||
|
||||
ImmediateValue lod;
|
||||
|
|
Loading…
Reference in New Issue