P4 to Git Change 1329979 by gandryey@gera-w8 on 2016/10/21 13:26:53

SWDEV-86035 - Add PAL backend to OpenCL
	- Allow device memory usage for blit kernels

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palblit.cpp#11 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#27 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.hpp#11 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#11 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#11 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.hpp#9 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.cpp#15 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#32 edit


[ROCm/clr commit: 43f8188d59]
This commit is contained in:
foreman committed 2016-10-21 13:31:50 -04:00
1 parent 2576f51460
commit 25319dac4b
8 files changed
+80 -76

No files matched your search

@@ -1118,14 +1118,18 @@ Resource::writeRawData(
gpu.iCmd()->CmdUpdateMemory(*iMem(), offset, size, reinterpret_cast<const uint32_t*>(data));
gpu.eventEnd(MainEngine, event);
setBusy(gpu, event);
// Update the global GPU event
gpu.setGpuEvent(event, false);
if (waitForEvent) {
//! @note: We don't really have to mark the allocations as busy
//! if we are waiting for a transfer
// Wait for event to complete
gpu.waitForEvent(&event);
}
else {
setBusy(gpu, event);
// Update the global GPU event
gpu.setGpuEvent(event, false);
}
}
static const Pal::ChNumFormat ChannelFmt(uint bytesPerElement)
{