From ea79c0440c8de70d65fb8e72415b466f4f7a703d Mon Sep 17 00:00:00 2001 From: Leo Liu Date: Fri, 5 May 2017 10:54:01 -0400 Subject: [PATCH] amd/common: set vcn dec as hw decode as well MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Recommit after issue resolved by the previous patch. Signed-off-by: Leo Liu Reviewed-by: Christian König --- src/amd/common/ac_gpu_info.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common/ac_gpu_info.c index 3dae2bd14c0..dc3ae25acf6 100644 --- a/src/amd/common/ac_gpu_info.c +++ b/src/amd/common/ac_gpu_info.c @@ -250,6 +250,8 @@ bool ac_query_gpu_info(int fd, amdgpu_device_handle dev, info->max_se = amdinfo->num_shader_engines; info->max_sh_per_se = amdinfo->num_shader_arrays_per_engine; info->has_hw_decode = uvd.available_rings != 0; + info->has_hw_decode = + (uvd.available_rings != 0) || (vcn_dec.available_rings != 0); info->uvd_fw_version = uvd.available_rings ? uvd_version : 0; info->vce_fw_version = -- 2.30.2