P4 to Git Change 2006323 by jujiang@JJ-OCL-hip on 2019/09/30 10:01:50

SWDEV-192384 - [HIP CQE][HIPonPAL][19.40] hipBindTexRef1DFetch, hipTextureRef2D are failed on all ASICs for both Win/Lnx
	Add undefined memory object in PAL process memory objects.

	http://ocltc.amd.com/reviews/r/18055/

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.hpp#33 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#154 edit
This commit is contained in:
foreman
2019-09-30 10:08:58 -04:00
rodzic 411f8194e5
commit 73b57f8bae
2 zmienionych plików z 7 dodań i 0 usunięć
@@ -215,6 +215,8 @@ class Program : public amd::HeapObject {
//! Global variables are a part of the code segment
bool hasGlobalStores() const { return hasGlobalStores_; }
std::vector<amd::Memory*> getUndefMemObj() const { return undef_mem_obj_; }
#if defined(USE_COMGR_LIBRARY)
const amd_comgr_metadata_node_t* metadata() const { return metadata_; }
@@ -3495,7 +3495,12 @@ bool VirtualGPU::processMemObjectsHSA(const amd::Kernel& kernel, const_address p
if (hsaKernel.prog().hasGlobalStores()) {
// Validate code object for a dependency in the queue
memoryDependency().validate(*this, &hsaKernel.prog().codeSegGpu(), IsReadOnly);
std::vector<amd::Memory*> undefined = hsaKernel.prog().getUndefMemObj();
for (auto it = undefined.begin(); it != undefined.end(); ++it) {
addVmMemory(dev().getGpuMemory(*it));
}
}
addVmMemory(&hsaKernel.prog().codeSegGpu());
if (hsaKernel.workGroupInfo()->scratchRegs_ > 0) {