Use the correct return type in runTest in 11_texture_driver sample. (#1546)

Fixes SWDEV-203394.
Currently in runTest() returns true, even if the texture reference copy does not happen. Using the existing testResult Flag to return from runTest().

[ROCm/hip commit: fbb98f4950]
Tento commit je obsažen v:
kjayapra-amd
2019-10-16 01:22:15 -04:00
odevzdal Maneesh Gupta
rodič eaa616bf6d
revize c6fd681dd5
+2 -2
Zobrazit soubor
@@ -30,7 +30,7 @@ THE SOFTWARE.
#define fileName "tex2dKernel.code"
texture<float, 2, hipReadModeElementType> tex;
bool testResult = false;
bool testResult = true;
#define HIP_CHECK(cmd) \
{ \
@@ -126,7 +126,7 @@ bool runTest(int argc, char** argv) {
}
hipFree(dData);
hipFreeArray(array);
return true;
return testResult;
}
int main(int argc, char** argv) {