Skip to content

Commit

Permalink
Minor fixfix to inline data size.
Browse files Browse the repository at this point in the history
Dont' hard-code inline data size.
  • Loading branch information
jgu222 authored and igcbot committed Sep 26, 2023
1 parent 8cad6d0 commit 49ca28d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions visa/PrologEpilog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -901,9 +901,11 @@ class PayloadLoader
if (builder.getOption(vISA_useInlineData)) {
// copy inline data to the first GRF of cross-thread-data
// e.g. (W) mov (8) inlineDataReg.0:ud r1.0:ud
// Inline GRF is only 8 DWords
// Inline data size is 8 DWords.

emitMovInlineData(perThreadLoadStartGRF + numPerThreadGRF,
perThreadLoadStartGRF, 8);
perThreadLoadStartGRF,
builder.getInlineDataSize()/TypeSize(Type_UD));
}

loadFromMemory(rtmp, perThreadLoadStartGRF,
Expand Down

0 comments on commit 49ca28d

Please sign in to comment.