From dc66855a4dfa84bbb7b5fd1c2b4c57669ccc0519 Mon Sep 17 00:00:00 2001
From: foreman
Date: Fri, 27 Sep 2019 16:44:50 -0400
Subject: [PATCH] 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
[ROCm/hip commit: c56d73ddd2ef84996b51834c514cbffb5a298bdd]
---
projects/hip/api/hip/hip_texture.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/projects/hip/api/hip/hip_texture.cpp b/projects/hip/api/hip/hip_texture.cpp
index c5fd87e9f6..70b11109d7 100644
--- a/projects/hip/api/hip/hip_texture.cpp
+++ b/projects/hip/api/hip/hip_texture.cpp
@@ -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);