mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 15:40:11 +01:00
amd/common: check DRM version 3.27 for JPEG decode
JPEG was added after DRM version 3.26 Signed-off-by: Leo Liu <leo.liu@amd.com> Fixes: 4558758c51749(amd/common: add vcn jpeg ip info query) Cc: Boyuan Zhang <boyuan.zhang@amd.com> Cc: Alex Smith <asmith@feralinteractive.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
a8c2a6b0ac
commit
b75fb8ee36
1 changed files with 1 additions and 1 deletions
|
|
@ -186,7 +186,7 @@ bool ac_query_gpu_info(int fd, amdgpu_device_handle dev,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (info->drm_major == 3 && info->drm_minor >= 17) {
|
if (info->drm_major == 3 && info->drm_minor >= 27) {
|
||||||
r = amdgpu_query_hw_ip_info(dev, AMDGPU_HW_IP_VCN_JPEG, 0, &vcn_jpeg);
|
r = amdgpu_query_hw_ip_info(dev, AMDGPU_HW_IP_VCN_JPEG, 0, &vcn_jpeg);
|
||||||
if (r) {
|
if (r) {
|
||||||
fprintf(stderr, "amdgpu: amdgpu_query_hw_ip_info(vcn_jpeg) failed.\n");
|
fprintf(stderr, "amdgpu: amdgpu_query_hw_ip_info(vcn_jpeg) failed.\n");
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue