nv50/ir/tgsi: fix srcMask for TXP with SHADOW1D
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Wed, 24 Oct 2012 18:33:02 +0000 (20:33 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Wed, 24 Oct 2012 18:47:38 +0000 (20:47 +0200)
src/gallium/drivers/nv50/codegen/nv50_ir_from_tgsi.cpp

index 071674b80668a35be5bf2b7a4a03584b16766c2d..e73c80478777f843aa1c8cd2703bae10195cfbfe 100644 (file)
@@ -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: