P4 to Git Change 1288122 by gandryey@gera-w8 on 2016/07/06 18:32:04

SWDEV-95905 - OpenCL on PAL - Device Enqueue
	- Add changes in VirtualGPU class to support device enqueue

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palblit.cpp#5 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#13 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprintf.cpp#2 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.cpp#6 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.hpp#4 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#15 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.hpp#6 edit


[ROCm/clr commit: b60c68d5e7]
このコミットが含まれているのは:
foreman
2016-07-06 23:27:05 -04:00
コミット 7306750d22
7個のファイルの変更91行の追加83行の削除
+5 -7
ファイルの表示
@@ -1072,9 +1072,10 @@ Resource::free()
void
Resource::writeRawData(
VirtualGPU& gpu,
size_t size,
size_t offset,
size_t size,
const void* data,
bool waitForEvent) const
bool waitForEvent) const
{
GpuEvent event;
@@ -1082,11 +1083,8 @@ Resource::writeRawData(
// size needs to be DWORD aligned
assert((size & 3) == 0);
gpu.eventBegin(MainEngine);
//! @todo Remove cache flush
//! It's a workaround for a PAL crash with embedded data, allocated before any command
gpu.flushCUCaches();
gpu.queue(MainEngine).addCmdMemRef(iMem());
gpu.iCmd()->CmdUpdateMemory(*iMem(), 0, size, reinterpret_cast<const uint32_t*>(data));
gpu.iCmd()->CmdUpdateMemory(*iMem(), offset, size, reinterpret_cast<const uint32_t*>(data));
gpu.eventEnd(MainEngine, event);
setBusy(gpu, event);
@@ -1938,7 +1936,7 @@ Resource::warmUpRenames(VirtualGPU& gpu)
uint dummy = 0;
const bool NoWait = false;
// Write 0 for the buffer paging by VidMM
writeRawData(gpu, sizeof(dummy), &dummy, NoWait);
writeRawData(gpu, 0, sizeof(dummy), &dummy, NoWait);
const bool Force = true;
rename(gpu, Force);
}