SWDEV-294597 - Add more hipNormalizedFloatValueTex cases (#2310)

Add test cases for filter modes: hipFilterModePoint and hipFilterModeLinear

Change-Id: I3fe6dbc35a7b14aab12adf297b7885df83d28056
Этот коммит содержится в:
TomSang
2021-08-19 00:58:14 -04:00
коммит произвёл GitHub
родитель 7eaa45d2d5
Коммит 48d8040b06
3 изменённых файлов: 94 добавлений и 23 удалений
+7 -1
Просмотреть файл
@@ -37,6 +37,7 @@ char memsetD8val = 0xDE;
int iterations = 1;
unsigned blocksPerCU = 6; // to hide latency
unsigned threadsPerBlock = 256;
int textureFilterMode = 0; // 0: hipFilterModePoint; 1: hipFilterModeLinear
int p_gpuDevice = 0;
unsigned p_verbose = 0;
int p_tests = -1; /*which tests to run. Interpretation is left to each test. default:all*/
@@ -176,11 +177,16 @@ int parseStandardArguments(int argc, char* argv[], bool failOnUndefinedArg) {
failed("Bad memsetD8val argument");
}
memsetD8val = ex;
} else if (!strcmp(arg, "--textureFilterMode")) {
int mode;
if (++i >= argc || !HipTest::parseInt(argv[i], &mode)) {
failed("Bad textureFilterMode argument");
}
textureFilterMode = mode;
} else if (!strcmp(arg, "--iterations") || (!strcmp(arg, "-i"))) {
if (++i >= argc || !HipTest::parseInt(argv[i], &iterations)) {
failed("Bad iterations argument");
}
} else if (!strcmp(arg, "--gpu") || (!strcmp(arg, "-gpuDevice")) || (!strcmp(arg, "-g"))) {
if (++i >= argc || !HipTest::parseInt(argv[i], &p_gpuDevice)) {
failed("Bad gpuDevice argument");