P4 to Git Change 1098567 by rili@rili_opencl_stg on 2014/11/19 10:20:42

EPR #407215 - re-submit CL#1098846
	                         Added checking for VM

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#483 edit
Tá an tiomantas seo le fáil i:
foreman
2014-11-19 10:30:26 -05:00
tuismitheoir 5573f4f56b
tiomantas 42627826ff
+5 -1
Féach ar an gComhad
@@ -1693,7 +1693,11 @@ Device::createImage(amd::Memory& owner, bool directAccess) const
return NULL;
}
// Create a view on the specified device
return (gpu::Memory*)createView(owner, *devParent);
gpuImage = (gpu::Memory*)createView(owner, *devParent);
if (heap()->isVirtual() && (NULL != gpuImage) && (gpuImage->owner() != NULL)) {
gpuImage->owner()->setHostMem((address)(owner.parent()->getHostMem()) + gpuImage->owner()->getOrigin());
}
return gpuImage ;
}
gpuImage = new gpu::Image(*this, owner,