File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1380,14 +1380,15 @@ namespace IGC
1380
1380
int urbReadOffsetForPush = 0 ;
1381
1381
1382
1382
1383
- bool pushCondition = ((urbOffset >= urbReadOffsetForPush) && (urbOffset - urbReadOffsetForPush) < (int )numberOfElementsPerVertexThatAreGoingToBePushed);
1383
+ bool pushCondition = ((urbOffset >= urbReadOffsetForPush) && (( urbOffset - urbReadOffsetForPush) < (int )numberOfElementsPerVertexThatAreGoingToBePushed) );
1384
1384
1385
1385
// If the attribute index of URBRead is a constant then we pull
1386
1386
// inputs if elementIndex <= numberOfElementsPerVertexThatAreGoingToBePushed
1387
1387
if (pElementIndex && pushCondition)
1388
1388
{
1389
- uint elementIndex = urbOffset - urbReadOffsetForPush;
1390
- uint currentElementIndex = (vertexIndex * numberOfElementsPerVertexThatAreGoingToBePushed * 4 ) + (elementIndex * 4 );
1389
+ uint lanesPerElement = 1 ;
1390
+ uint elementIndex = urbOffset * lanesPerElement - urbReadOffsetForPush;
1391
+ uint currentElementIndex = (vertexIndex * numberOfElementsPerVertexThatAreGoingToBePushed * 4 * lanesPerElement) + (elementIndex * 4 );
1391
1392
1392
1393
for (auto I = inst->user_begin (), E = inst->user_end (); I != E; ++I)
1393
1394
{
You can’t perform that action at this time.
0 commit comments