P4 to Git Change 2005731 by vsytchen@vsytchen-hip-win10 on 2019/09/27 16:34:38

SWDEV-192384 - [HIP CQE][HIPonPAL][19.40] hipBindTexRef1DFetch, hipTextureRef2D are failed on all ASICs for both Win/Lnx

	1. Correctly set the image type for textures created from arrays.
	2. Allow creating any kind of image from a buffer.

	ReviewBoardURL = http://ocltc.amd.com/reviews/r/18051/diff/

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_texture.cpp#19 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#166 edit
This commit is contained in:
foreman
2019-09-27 16:44:50 -04:00
orang tua 87e901fcdc
melakukan 34af69a76e
+2 -2
Melihat File
@@ -463,10 +463,10 @@ hipError_t ihipBindTextureToArrayImpl(TlsData* tls, int dim, enum hipTextureRead
switch (dim) {
case 1:
clType = CL_MEM_OBJECT_IMAGE1D_ARRAY;
clType = CL_MEM_OBJECT_IMAGE1D;
break;
case 2:
clType = CL_MEM_OBJECT_IMAGE2D_ARRAY;
clType = CL_MEM_OBJECT_IMAGE2D;
break;
default:
HIP_RETURN(hipErrorInvalidValue);