[PATCH libdrm] tests/amdgpu: enable dispatch/draw tests for Renoir

Zhu, Changfeng Changfeng.Zhu at amd.com
Tue Nov 5 05:56:27 UTC 2019


From: changzhu <Changfeng.Zhu at amd.com>

It can run dispatch/draw tests on new renoir chips. So it needs to
enable dispatch/draw tests for Renoir again.

Change-Id: I3a72a4bbfe0fc663ee0e3e58d8e9c304f513e568
Signed-off-by: changzhu <Changfeng.Zhu at amd.com>
Reviewed-by: Flora Cui <flora.cui at amd.com>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Reviewed-by: Huang Rui <ray.huang at amd.com>
---
 tests/amdgpu/basic_tests.c | 16 +---------------
 1 file changed, 1 insertion(+), 15 deletions(-)

diff --git a/tests/amdgpu/basic_tests.c b/tests/amdgpu/basic_tests.c
index e75b9d0d..a57dcbb4 100644
--- a/tests/amdgpu/basic_tests.c
+++ b/tests/amdgpu/basic_tests.c
@@ -592,20 +592,6 @@ int suite_basic_tests_init(void)
 
 	family_id = gpu_info.family_id;
 
-	if (gpu_info.asic_id == 0x1636) {
-		if (amdgpu_set_test_active("Basic Tests",
-					   "Dispatch Test",
-					   CU_FALSE))
-			fprintf(stderr, "test deactivation failed - %s\n",
-				CU_get_error_msg());
-
-		if (amdgpu_set_test_active("Basic Tests",
-					   "Draw Test",
-					   CU_FALSE))
-			fprintf(stderr, "test deactivation failed - %s\n",
-				CU_get_error_msg());
-	}
-
 	return CUE_SUCCESS;
 }
 
@@ -2992,7 +2978,7 @@ void amdgpu_memset_draw(amdgpu_device_handle device_handle,
 	resources[1] = bo_shader_ps;
 	resources[2] = bo_shader_vs;
 	resources[3] = bo_cmd;
-	r = amdgpu_bo_list_create(device_handle, 3, resources, NULL, &bo_list);
+	r = amdgpu_bo_list_create(device_handle, 4, resources, NULL, &bo_list);
 	CU_ASSERT_EQUAL(r, 0);
 
 	ib_info.ib_mc_address = mc_address_cmd;
-- 
2.17.1



More information about the amd-gfx mailing list