[Mesa-dev] [PATCH 15/17] amdgpu/winsys: set vcn dec as hw decode as well

Leo Liu leo.liu at amd.com
Wed May 10 20:15:49 UTC 2017


Signed-off-by: Leo Liu <leo.liu at amd.com>
Reviewed-by: Christian König <christian.koenig at amd.com>
---
 src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c b/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c
index 3e92fff..97804e1 100644
--- a/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c
+++ b/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c
@@ -352,7 +352,8 @@ static bool do_winsys_init(struct amdgpu_winsys *ws, int fd)
    ws->info.max_shader_clock = ws->amdinfo.max_engine_clk / 1000;
    ws->info.max_se = ws->amdinfo.num_shader_engines;
    ws->info.max_sh_per_se = ws->amdinfo.num_shader_arrays_per_engine;
-   ws->info.has_hw_decode = uvd.available_rings != 0;
+   ws->info.has_hw_decode =
+         (uvd.available_rings != 0) || (vcn_dec.available_rings != 0);
    ws->info.uvd_fw_version =
          uvd.available_rings ? uvd_version : 0;
    ws->info.vce_fw_version =
-- 
2.7.4



More information about the mesa-dev mailing list