From 0093f5004939efeeeff6b69e64356d01bebdbc0d Mon Sep 17 00:00:00 2001
From: foreman
Date: Thu, 5 Apr 2018 15:12:53 -0400
Subject: [PATCH] P4 to Git Change 1537232 by skudchad@skudchad_rocm on
2018/04/05 15:00:24
SWDEV-145570 - [HIP] - Fix typo and fix build.
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/hip/hip_texture.cpp#2 edit
[ROCm/hip commit: ce88da9c1b7ec98c74aa4a68a1a661f4674f734b]
---
projects/hip/api/hip/hip_texture.cpp | 13 +++++--------
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/projects/hip/api/hip/hip_texture.cpp b/projects/hip/api/hip/hip_texture.cpp
index 330f86a86f..848ec1b110 100644
--- a/projects/hip/api/hip/hip_texture.cpp
+++ b/projects/hip/api/hip/hip_texture.cpp
@@ -24,13 +24,6 @@ THE SOFTWARE.
#include
#include "hip_internal.hpp"
-struct hipTexture {
- hipResourceDesc resDesc;
- hipTextureDesc texDesc;
- hipResourceViewDesc resViewDesc;
- hsa_ext_image_t image;
- hsa_ext_sampler_t sampler;
-};
hipError_t hipCreateTextureObject(hipTextureObject_t* pTexObject, const hipResourceDesc* pResDesc,
const hipTextureDesc* pTexDesc,
@@ -164,7 +157,11 @@ hipError_t hipTexRefSetFlags(textureReference* tex, unsigned int flags) {
}
hipError_t hipTexRefSetFilterMode(textureReference* tex, hipTextureFilterMode fm) {
- HIP_INIT_API(tex, fm);
+ HIP_INIT_API(tex, fm);
+
+ assert(0 && "Unimplemented");
+
+ return hipErrorUnknown;
}
hipError_t hipTexRefSetAddressMode(textureReference* tex, int dim, hipTextureAddressMode am) {