GBE: fixed a bug in sample instruction.
authorZhigang Gong <zhigang.gong@intel.com>
Tue, 21 Jan 2014 05:15:39 +0000 (13:15 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Sun, 26 Jan 2014 08:46:48 +0000 (16:46 +0800)
Sample instruction only have 3 source operands now, not 4.

Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
Reviewed-by: Yang Rong <rong.r.yang@intel.com>
backend/src/ir/instruction.cpp

index 83a43b6..95bcff5 100644 (file)
@@ -532,7 +532,7 @@ namespace ir {
       uint8_t samplerOffset:1;
       uint8_t is3DRead:1;
       uint8_t imageIdx;
-      static const uint32_t srcNum = 4;
+      static const uint32_t srcNum = 3;
       static const uint32_t dstNum = 4;
     };