diff options
author | Leo Liu <[email protected]> | 2017-05-05 10:54:01 -0400 |
---|---|---|
committer | Leo Liu <[email protected]> | 2017-05-25 11:40:20 -0400 |
commit | 50d322be2f30bb935ee52b3b3649785975771110 (patch) | |
tree | 1c51663958b2ccb87b45ffdcdeb71c2763c6b6d7 /src/amd/common/ac_gpu_info.c | |
parent | 524d4fff9e0e58e812e71bc5ba2c92ffa73bee16 (diff) |
amd/common: set vcn dec as hw decode as well
Signed-off-by: Leo Liu <[email protected]>
Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src/amd/common/ac_gpu_info.c')
-rw-r--r-- | src/amd/common/ac_gpu_info.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common/ac_gpu_info.c index a23b9bbd4c5..7f2506066a8 100644 --- a/src/amd/common/ac_gpu_info.c +++ b/src/amd/common/ac_gpu_info.c @@ -248,6 +248,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 = |