Skip to content

Commit ee9f4e1

Browse files
aratajewZuul
authored andcommitted
Refactor uniform vector load
Change-Id: I4490f804278e8e167baec9f34b82c49d05b11541
1 parent c2f1928 commit ee9f4e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IGC/Compiler/CISACodeGen/EmitVISAPass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14814,7 +14814,7 @@ void EmitPass::emitVectorLoad(LoadInst* inst, Value* offset, ConstantInt* immOff
1481414814
// Use width of 8 always, and only the value of the first lane is
1481514815
// used. Need to set noMask in order to have the valid value in
1481614816
// the first lane.
14817-
uint32_t width8 = 8;
14817+
uint32_t width8 = getGRFSize() / 4;
1481814818
for (uint32_t i = 0; i < VecMessInfo.numInsts; ++i)
1481914819
{
1482014820
// raw operand, eltOffBytes is in bytes.

0 commit comments

Comments
 (0)