Program null surface for stateful buffers.

Change-Id: I4c73dcf3902ac6ad422ffab16f41aa342cf736fd
This commit is contained in:
Zdunowski, Piotr
2018-04-23 11:53:37 +02:00
parent efda64eb4a
commit e01d268aca
2 changed files with 51 additions and 1 deletions

View File

@@ -1133,6 +1133,11 @@ cl_int Kernel::setArgBuffer(uint32_t argIndex,
storeKernelArg(argIndex, BUFFER_OBJ, nullptr, argVal, argSize);
if (requiresSshForBuffers()) {
auto surfaceState = ptrOffset(getSurfaceStateHeap(), kernelArgInfo.offsetHeap);
Buffer::setSurfaceState(&getContext(), surfaceState, 0, nullptr);
}
return CL_SUCCESS;
}
}