X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=tests%2Famdgpu%2Fvcn_tests.c;h=77ceeb14b47c35da10ad7361197ed3ade758f9a1;hb=fd7f3746e3e69470207c4ff2d777c3d23be610f4;hp=ad438f35cad7a1769b943696c24dee6d321c8c68;hpb=0eaf5df5535e2d7125cf6d8eae04058b2dd2d294;p=android-x86%2Fexternal-libdrm.git diff --git a/tests/amdgpu/vcn_tests.c b/tests/amdgpu/vcn_tests.c index ad438f35..77ceeb14 100644 --- a/tests/amdgpu/vcn_tests.c +++ b/tests/amdgpu/vcn_tests.c @@ -56,6 +56,7 @@ static amdgpu_device_handle device_handle; static uint32_t major_version; static uint32_t minor_version; static uint32_t family_id; +static uint32_t asic_id; static amdgpu_context_handle context_handle; static amdgpu_bo_handle ib_handle; @@ -95,6 +96,7 @@ CU_BOOL suite_vcn_tests_enable(void) return CU_FALSE; family_id = device_handle->info.family_id; + asic_id = device_handle->info.asic_id; if (amdgpu_device_deinitialize(device_handle)) return CU_FALSE; @@ -106,11 +108,19 @@ CU_BOOL suite_vcn_tests_enable(void) } if (family_id == AMDGPU_FAMILY_RV) { - reg.data0 = 0x81c4; - reg.data1 = 0x81c5; - reg.cmd = 0x81c3; - reg.nop = 0x81ff; - reg.cntl = 0x81c6; + if (asic_id == 0x1636) { + reg.data0 = 0x504; + reg.data1 = 0x505; + reg.cmd = 0x503; + reg.nop = 0x53f; + reg.cntl = 0x506; + } else { + reg.data0 = 0x81c4; + reg.data1 = 0x81c5; + reg.cmd = 0x81c3; + reg.nop = 0x81ff; + reg.cntl = 0x81c6; + } } else if (family_id == AMDGPU_FAMILY_NV) { reg.data0 = 0x504; reg.data1 = 0x505; @@ -333,6 +343,7 @@ static void amdgpu_cs_vcn_dec_decode(void) avc_decode_msg, sizeof(avc_decode_msg)); dec += 4*1024; + memcpy(dec, feedback_msg, sizeof(feedback_msg)); dec += 4*1024; memcpy(dec, uvd_it_scaling_table, sizeof(uvd_it_scaling_table));