mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Use device instead of context when programing surface state.
Change-Id: I67615036d373cf905762a43a92562bf3d84854a5
This commit is contained in:

committed by
sys_ocldev

parent
ded1a445f8
commit
0cc10e47cc
@ -578,7 +578,7 @@ bool CommandQueue::setupDebugSurface(Kernel *kernel) {
|
||||
kernel->getKernelInfo().patchInfo.pAllocateSystemThreadSurface->Offset);
|
||||
void *addressToPatch = reinterpret_cast<void *>(debugSurface->getGpuAddress());
|
||||
size_t sizeToPatch = debugSurface->getUnderlyingBufferSize();
|
||||
Buffer::setSurfaceState(context, surfaceState, sizeToPatch, addressToPatch, debugSurface);
|
||||
Buffer::setSurfaceState(device, surfaceState, sizeToPatch, addressToPatch, debugSurface);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user