summaryrefslogtreecommitdiff
path: root/src/gallium/winsys
diff options
context:
space:
mode:
authorLeo Liu <leo.liu@amd.com>2021-06-05 18:46:58 -0400
committerLeo Liu <leo.liu@amd.com>2021-06-08 09:32:48 -0400
commit43c04ab2b436ae330a2ad634a4881e53bb9ae49b (patch)
tree34c4af072f086de324e3508e462c4c417c20ea4c /src/gallium/winsys
parent8ddba3b5eade790d6a9d5faeecb0f83b93cdbd3f (diff)
radeonsi: separate video hw info based on HW engine individually
This removes previous "has_hw_decode" and "uvd_enc_supported" and makes information more accuate for cases where HW decode, HW encode, and HW JPEG decode might partially available. Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: James Zhu <James.Zhu@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11201>
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r--src/gallium/winsys/radeon/drm/radeon_drm_winsys.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c
index 08ee7e7e5cf..d06394e0b0b 100644
--- a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c
+++ b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c
@@ -314,13 +314,13 @@ static bool do_winsys_init(struct radeon_drm_winsys *ws)
}
/* Check for UVD and VCE */
- ws->info.has_hw_decode = false;
+ ws->info.has_video_hw.uvd_decode = false;
ws->info.vce_fw_version = 0x00000000;
if (ws->info.drm_minor >= 32) {
uint32_t value = RADEON_CS_RING_UVD;
if (radeon_get_drm_value(ws->fd, RADEON_INFO_RING_WORKING,
"UVD Ring working", &value)) {
- ws->info.has_hw_decode = value;
+ ws->info.has_video_hw.uvd_decode = value;
ws->info.num_rings[RING_UVD] = 1;
}