SWDEV-370742 - Check image support before using image APIs. (#3143)
Change-Id: I2fc086256bca605385f2f6a94119b46741020afa
This commit is contained in:
gecommit door
GitHub
bovenliggende
802e3f4397
commit
24cc1bc2bb
@@ -315,6 +315,7 @@ bool Memcpy2D::Memcpy2D_NegativeTest_SizeCheck() {
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
bool TestPassed = true;
|
||||
checkImageSupport();
|
||||
Memcpy2D Memcpy2DObj;
|
||||
HipTest::parseStandardArguments(argc, argv, false);
|
||||
if (p_tests == 1) {
|
||||
|
||||
@@ -100,6 +100,7 @@ void runTest(int width,int height,int depth, hipChannelFormatKind formatKind)
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
checkImageSupport();
|
||||
for(int i=1;i<25;i++)
|
||||
{
|
||||
runTest<float>(i,i,i, hipChannelFormatKindFloat);
|
||||
|
||||
@@ -202,6 +202,7 @@ bool MemcpyAtoH<T>::hipMemcpyAtoH_NegativeTests() {
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
bool TestPassed = true;
|
||||
checkImageSupport();
|
||||
HipTest::parseStandardArguments(argc, argv, false);
|
||||
MemcpyAtoH<float> AtoH_obj;
|
||||
if (p_tests == 1) {
|
||||
|
||||
@@ -214,6 +214,7 @@ bool MemcpyHtoA<T>::hipMemcpyHtoA_NegativeTests() {
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
bool TestPassed = true;
|
||||
checkImageSupport();
|
||||
HipTest::parseStandardArguments(argc, argv, false);
|
||||
MemcpyHtoA<float> HtoA_obj;
|
||||
if (p_tests == 1) {
|
||||
|
||||
@@ -204,6 +204,7 @@ int main(int argc, char *argv[]) {
|
||||
int extraArgs = 0;
|
||||
bool testResult = true;
|
||||
|
||||
checkImageSupport();
|
||||
HIPCHECK(hipSetDevice(p_gpuDevice));
|
||||
extraArgs = HipTest::parseStandardArguments(argc, argv, false);
|
||||
parseExtraArguments(extraArgs, argv);
|
||||
|
||||
@@ -132,6 +132,7 @@ bool testhipMemset3DAsync(int memsetval,int p_gpuDevice)
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
checkImageSupport();
|
||||
HipTest::parseStandardArguments(argc, argv, true);
|
||||
HIPCHECK(hipSetDevice(p_gpuDevice));
|
||||
bool testResult = true;
|
||||
|
||||
Verwijs in nieuw issue
Block a user