SWDEV-364236 - Add layered texture object tests

Add layered array and texture object tests for all
types.

Change-Id: Ifb4d085a526c1ff7d1b7afe528c194d536b99db8
Este commit está contenido en:
taosang2
2023-09-25 22:27:26 -04:00
cometido por Tao Sang
padre f425bee1dc
commit a79d6f8361
Se han modificado 7 ficheros con 597 adiciones y 52 borrados
+4 -3
Ver fichero
@@ -22,6 +22,7 @@ THE SOFTWARE.
#pragma once
#include "hip_test_common.hh"
#include "hip_array_common.hh"
#include <iostream>
#include <fstream>
#include <regex>
@@ -79,9 +80,9 @@ bool checkArray(T* hData, T* hOutputData, size_t width, size_t height, size_t de
for (size_t j = 0; j < height; j++) {
for (size_t k = 0; k < width; k++) {
int offset = i * width * height + j * width + k;
if (hData[offset] != hOutputData[offset]) {
INFO("Mismatch at [" << i << "," << j << "," << k << "]:" << hData[offset] << "----"
<< hOutputData[offset]);
if (!isEqual(hData[offset], hOutputData[offset])) {
INFO("Mismatch at [" << i << "," << j << "," << k << "]:" << getString(hData[offset])
<< "----" << getString(hOutputData[offset]));
CHECK(false);
return false;
}