File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -333,15 +333,15 @@ bool RegSet::addDpasOperand(const Instruction &i, int opIx) {
333
333
} else if (opIx == 1 ) { // src1
334
334
size_t bitsAccessed = execSize * typeSizeBits * opsPerChannel * S;
335
335
changed |= add (RegName::GRF_R, startOff, bitsAccessed);
336
- } else { // src2
337
- // this is a little subtle
338
- // given bit precisions a src2 operand can stride across the
339
- // bottom or top of a GRF without touching the other half
340
- //
341
- // e.g. dpas.4x2 (8) r24.0:d r24.0:d r6.0:u2 r14.32:u4
342
- // src2 - touches r14[16-31] and r15[16-31]
343
- //
344
- // TODO: can something like this happen for src1
336
+ } else if (opIx == 2 ) { // src2
337
+ // this is a little subtle
338
+ // given bit precisions a src2 operand can stride across the
339
+ // bottom or top of a GRF without touching the other half
340
+ //
341
+ // e.g. dpas.4x2 (8) r24.0:d r24.0:d r6.0:u2 r14.32:u4
342
+ // src2 - touches r14[16-31] and r15[16-31]
343
+ //
344
+ // TODO: can something like this happen for src1
345
345
for (size_t r = 0 ; r < R; r++) {
346
346
size_t startSubReg = r * opsPerChannel * typeSizeBits * 8 ;
347
347
size_t repReads = S * opsPerChannel * typeSizeBits;
You can’t perform that action at this time.
0 commit comments