SWDEV-305992 - Improve texture tests (#2646)

Enable more texture supports for hip-rocclr.
Skip texture tests on device that doesn't support images.
SWDEV-322257 - Fix issues of image tests skipped on
NVidia devices.

Change-Id: Ia99d06b1e97fc945f1b740e47710f4dcd70f38ca


[ROCm/hip-tests commit: 70ccfa39ad]
Этот коммит содержится в:
ROCm CI Service Account authored and GitHub committed 2022-05-09 08:46:20 -07:00
1 родитель 7253d79db9
Коммит e17423a24e
8 files changed
+47

No files matched your search

+4
Просмотреть файл
@@ -23,10 +23,12 @@ THE SOFTWARE.
template <typename T>
__global__ void tex1dKernelFetch(T *val, hipTextureObject_t obj, int N) {
#if !defined(__HIP_NO_IMAGE_SUPPORT) || !__HIP_NO_IMAGE_SUPPORT
int k = blockIdx.x * blockDim.x + threadIdx.x;
if (k < N) {
val[k] = tex1Dfetch<T>(obj, k);
}
#endif
}
template <typename T>
@@ -203,6 +205,8 @@ bool runTest(const char *description) {
}
TEST_CASE("Unit_hipTextureFetch_vector") {
checkImageSupport();
// test for char
runTest<char1>("char1");
runTest<char2>("char2");