amd/common: set vcn dec as hw decode as well
authorLeo Liu <leo.liu@amd.com>
Fri, 5 May 2017 14:54:01 +0000 (10:54 -0400)
committerLeo Liu <leo.liu@amd.com>
Mon, 29 May 2017 18:32:29 +0000 (14:32 -0400)
Recommit after issue resolved by the previous patch.

Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/amd/common/ac_gpu_info.c

index 3dae2bd14c014f2fd0767f65a25cd116ff18cb58..dc3ae25acf626fdaf0fc1b1b3e65b8bc43671bc8 100644 (file)
@@ -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 =