From 6e7d0c03db4e5a9a46d07259958a33e8850aa58c Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Tue, 21 Jan 2014 13:15:39 +0800 Subject: [PATCH] GBE: fixed a bug in sample instruction. Sample instruction only have 3 source operands now, not 4. Signed-off-by: Zhigang Gong Reviewed-by: Yang Rong --- backend/src/ir/instruction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/ir/instruction.cpp b/backend/src/ir/instruction.cpp index 83a43b6..95bcff5 100644 --- a/backend/src/ir/instruction.cpp +++ b/backend/src/ir/instruction.cpp @@ -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; }; -- 2.7.4