diff options
author | Leo Liu <[email protected]> | 2018-10-23 12:57:31 -0400 |
---|---|---|
committer | Leo Liu <[email protected]> | 2018-10-23 13:12:05 -0400 |
commit | b75fb8ee36e907820e23dde90f15d0774b8d1b6b (patch) | |
tree | 08d5e5d8b95ee833572b54e258872e1c06f3ba09 /src/amd | |
parent | a8c2a6b0ac103f571f9bc85ff4a4fadd54796c06 (diff) |
amd/common: check DRM version 3.27 for JPEG decode
JPEG was added after DRM version 3.26
Signed-off-by: Leo Liu <[email protected]>
Fixes: 4558758c51749(amd/common: add vcn jpeg ip info query)
Cc: Boyuan Zhang <[email protected]>
Cc: Alex Smith <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r-- | src/amd/common/ac_gpu_info.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common/ac_gpu_info.c index ed08b500c63..2c70fb2c721 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"); |