summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHawking Zhang <Hawking.Zhang@amd.com>2017-05-27 14:13:51 +0800
committerHawking Zhang <Hawking.Zhang@amd.com>2017-06-06 13:43:00 +0800
commit7e33c8dda3d0d3ed889944b816cfd321f8c59f33 (patch)
treeb6b99b3a129a8d2f46e48440f03b94dc48cacb21
parentef7724d037649a4ecd757ef0d33d0fe568876371 (diff)
tests/amdgpu: bypass UVD ENC tests on raven
raven doesn't support UVD encode Change-Id: Ib880f767ead72b8c7f392c20c01b756600c5eee7 Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com> Reviewed-by: Xiaojie Yuan <Xiaojie.Yuan@amd.com>
-rw-r--r--tests/amdgpu/uvd_enc_tests.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/tests/amdgpu/uvd_enc_tests.c b/tests/amdgpu/uvd_enc_tests.c
index fee01127..f9764434 100644
--- a/tests/amdgpu/uvd_enc_tests.c
+++ b/tests/amdgpu/uvd_enc_tests.c
@@ -98,10 +98,8 @@ int suite_uvd_enc_tests_init(void)
family_id = device_handle->info.family_id;
- if (family_id < AMDGPU_FAMILY_AI) {
-
+ if (family_id < AMDGPU_FAMILY_AI || family_id >= AMDGPU_FAMILY_RV) {
printf("\n\nThe ASIC NOT support UVD ENC, all sub-tests will pass\n");
-
return CUE_SUCCESS;
}
@@ -123,7 +121,7 @@ int suite_uvd_enc_tests_clean(void)
{
int r;
- if (family_id < AMDGPU_FAMILY_AI) {
+ if (family_id < AMDGPU_FAMILY_AI || family_id >= AMDGPU_FAMILY_RV) {
r = amdgpu_device_deinitialize(device_handle);
if (r)
@@ -244,7 +242,7 @@ static void amdgpu_cs_uvd_enc_create(void)
{
int len, r;
- if (family_id < AMDGPU_FAMILY_AI)
+ if (family_id < AMDGPU_FAMILY_AI || family_id >= AMDGPU_FAMILY_RV)
return;
enc.width = 160;
@@ -301,7 +299,7 @@ static void amdgpu_cs_uvd_enc_session_init(void)
{
int len, r;
- if (family_id < AMDGPU_FAMILY_AI)
+ if (family_id < AMDGPU_FAMILY_AI || family_id >= AMDGPU_FAMILY_RV)
return;
num_resources = 0;
@@ -372,7 +370,7 @@ static void amdgpu_cs_uvd_enc_encode(void)
vbuf_size = ALIGN(enc.width, align) * ALIGN(enc.height, 16) * 1.5;
cpb_size = vbuf_size * 10;
- if (family_id < AMDGPU_FAMILY_AI)
+ if (family_id < AMDGPU_FAMILY_AI || family_id >= AMDGPU_FAMILY_RV)
return;
num_resources = 0;
@@ -478,7 +476,7 @@ static void amdgpu_cs_uvd_enc_destroy(void)
struct amdgpu_uvd_enc_bo sw_ctx;
int len, r;
- if (family_id < AMDGPU_FAMILY_AI)
+ if (family_id < AMDGPU_FAMILY_AI || family_id >= AMDGPU_FAMILY_RV)
return;
num_resources = 0;