P4 to Git Change 1250684 by gandryey@gera-w8 on 2016/03/23 17:59:05

SWDEV-86035 - Add PAL backend to OpenCL
	- Update PAL backend to match the latests PAL interfaces

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/Makefile#2 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/build/Makefile.pal#2 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/build/Makefile#1 add
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/build/Makefile.palbe#1 add
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palblit.cpp#2 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#2 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.hpp#2 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#2 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.hpp#2 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#2 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.hpp#2 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#2 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.hpp#2 edit
This commit is contained in:
foreman
2016-03-23 18:09:21 -04:00
parent 68da626227
commit a340e36035
9 ha cambiato i file con 87 aggiunte e 85 eliminazioni
+6 -3
Vedi File
@@ -43,6 +43,7 @@ VirtualGPU::Queue::Create(
Pal::QueueCreateInfo qCreateInfo = {};
qCreateInfo.engineType = queueType;
qCreateInfo.engineIndex = engineIdx;
qCreateInfo.aqlQueue = true;
// Find queue object size
size_t qSize = palDev->GetQueueSize(qCreateInfo, &result);
@@ -181,8 +182,10 @@ VirtualGPU::Queue::flush()
memRef.push_back(it->first);
}
}
if (memRef.size() != 0) {
iDev_->AddGpuMemoryReferences(memRef.size(), &memRef[0], iQueue_);
iDev_->AddGpuMemoryReferences(memRef.size(), &memRef[0], iQueue_,
Pal::GpuMemoryRefCantTrim);
}
// Submit command buffer to OS
@@ -1982,12 +1985,12 @@ VirtualGPU::submitKernelInternal(
eventBegin(MainEngine);
if (nullptr == scratch) {
iCmd()->CmdDispatchAql(aqlPkt, 0, 0, 0,
hsaKernel.cpuAqlCode(), hsaQueueMem_->vmAddress(), pKernelInfo, 0x3ff);
hsaKernel.cpuAqlCode(), hsaQueueMem_->vmAddress(), 0x3ff);
}
else {
iCmd()->CmdDispatchAql(aqlPkt, scratch->memObj_->vmAddress(),
scratch->size_, scratch->offset_,
hsaKernel.cpuAqlCode(), hsaQueueMem_->vmAddress(), pKernelInfo, 0x3ff);
hsaKernel.cpuAqlCode(), hsaQueueMem_->vmAddress(), 0x3ff);
}
eventEnd(MainEngine, gpuEvent);