[vdi] Fix texture reference sample.

- The driver code should not re-define `tex` again as it's already
  defined in the kernel code. Eventually, the driver code should be as
  regular C++ code instad of HIP code.

Change-Id: I8c7cab204b98990619d6e7109b990d7089ea9261


[ROCm/clr commit: b469e5c573]
This commit is contained in:
Michael LIAO
2020-04-23 23:05:28 -04:00
parent 9fb3564410
commit 5147a686ff
+1 -2
View File
@@ -27,7 +27,6 @@ THE SOFTWARE.
#define fileName "tex2dKernel.code"
texture<float, 2, hipReadModeElementType> tex;
bool testResult = true;
#define HIP_CHECK(cmd) \
@@ -122,7 +121,7 @@ bool runTest(int argc, char** argv) {
}
}
}
HIP_CHECK(hipUnbindTexture(tex));
HIP_CHECK(hipUnbindTexture(texref));
HIP_CHECK(hipFree(dData));
HIP_CHECK(hipFreeArray(array));
return testResult;