Mesa (master): amd/common: check DRM version 3.27 for JPEG decode
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Oct 23 17:12:52 UTC 2018
Module: Mesa
Branch: master
Commit: b75fb8ee36e907820e23dde90f15d0774b8d1b6b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b75fb8ee36e907820e23dde90f15d0774b8d1b6b
Author: Leo Liu <leo.liu at amd.com>
Date: Tue Oct 23 12:57:31 2018 -0400
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 at amd.com>
Fixes: 4558758c51749(amd/common: add vcn jpeg ip info query)
Cc: Boyuan Zhang <boyuan.zhang at amd.com>
Cc: Alex Smith <asmith at feralinteractive.com>
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
---
src/amd/common/ac_gpu_info.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common/ac_gpu_info.c
index ed08b500c6..2c70fb2c72 100644
--- a/src/amd/common/ac_gpu_info.c
+++ b/src/amd/common/ac_gpu_info.c
@@ -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);
if (r) {
fprintf(stderr, "amdgpu: amdgpu_query_hw_ip_info(vcn_jpeg) failed.\n");
More information about the mesa-commit
mailing list