[Beignet] [PATCH v2] Fix bug: Initialize bti of LoadInstuctionPattern::shootByteGatherMsg().
yan.wang at linux.intel.com
yan.wang at linux.intel.com
Thu Nov 24 06:54:46 UTC 2016
From: Yan Wang <yan.wang at linux.intel.com>
If it isn't initialized, Luxmark hotel scene will display wrong.
---
backend/src/backend/gen_insn_selection.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/backend/src/backend/gen_insn_selection.cpp b/backend/src/backend/gen_insn_selection.cpp
index c14e0bc..c9a5be7 100644
--- a/backend/src/backend/gen_insn_selection.cpp
+++ b/backend/src/backend/gen_insn_selection.cpp
@@ -4487,7 +4487,7 @@ extern bool OCL_DEBUGINFO; // first defined by calling BVAR in program.cpp
using namespace ir;
unsigned addrBytes = typeSize(addr.type);
AddressMode AM = insn.getAddressMode();
- vector<GenRegister> btiTemp;
+ vector<GenRegister> btiTemp = sel.getBTITemps(AM);
if (AM == AM_DynamicBti || AM == AM_StaticBti) {
if (AM == AM_DynamicBti) {
Register btiReg = insn.getBtiReg();
--
2.7.4
More information about the Beignet
mailing list