File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1353,6 +1353,12 @@ void COpenCLKernel::AllocatePayload()
1353
1353
IGC_IS_FLAG_ENABLED (EnableOptionalBufferOffset) &&
1354
1354
arg.getArg ()->use_empty ());
1355
1355
1356
+ if (constantBufferStartSet && !constantBufferEndSet && !arg.isConstantBuf ())
1357
+ {
1358
+ constantBufferEnd = offset;
1359
+ constantBufferEndSet = true ;
1360
+ }
1361
+
1356
1362
if (!constantBufferStartSet && arg.isConstantBuf ()) {
1357
1363
constantBufferStart = offset;
1358
1364
AllocateNOSConstants (offset);
@@ -1421,6 +1427,7 @@ void COpenCLKernel::AllocatePayload()
1421
1427
1422
1428
if (!constantBufferEndSet && constantBufferStartSet) {
1423
1429
constantBufferEnd = offset;
1430
+ constantBufferEndSet = true ;
1424
1431
}
1425
1432
1426
1433
// ToDo: we should avoid passing all three dimensions of local id
You can’t perform that action at this time.
0 commit comments