Module: Mesa Branch: master Commit: f897036978b42619ce27ea4f41886cc0002f33ef URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f897036978b42619ce27ea4f41886cc0002f33ef
Author: Ilia Mirkin <imir...@alum.mit.edu> Date: Thu Jan 12 21:06:40 2017 -0500 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 <imir...@alum.mit.edu> --- src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp index ff253af..95de87c 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp @@ -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; _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit