Module: Mesa
Branch: master
Commit: d310e29302fb409c0c23442c2b1d1a6c044dd6f0
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=d310e29302fb409c0c23442c2b1d1a6c044dd6f0

Author: Christoph Bumiller <[email protected]>
Date:   Wed Oct 24 20:33:02 2012 +0200

nv50/ir/tgsi: fix srcMask for TXP with SHADOW1D

---

 .../drivers/nv50/codegen/nv50_ir_from_tgsi.cpp     |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir_from_tgsi.cpp 
b/src/gallium/drivers/nv50/codegen/nv50_ir_from_tgsi.cpp
index 071674b..e73c804 100644
--- a/src/gallium/drivers/nv50/codegen/nv50_ir_from_tgsi.cpp
+++ b/src/gallium/drivers/nv50/codegen/nv50_ir_from_tgsi.cpp
@@ -257,7 +257,7 @@ unsigned int Instruction::srcMask(unsigned int s) const
          mask &= 0x9;
          break;
       case TGSI_TEXTURE_SHADOW1D:
-         mask &= 0x5;
+         mask &= 0xd;
          break;
       case TGSI_TEXTURE_1D_ARRAY:
       case TGSI_TEXTURE_2D:

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to