amd/common: check DRM version 3.27 for JPEG decode
authorLeo Liu <leo.liu@amd.com>
Tue, 23 Oct 2018 16:57:31 +0000 (12:57 -0400)
committerLeo Liu <leo.liu@amd.com>
Tue, 23 Oct 2018 17:12:05 +0000 (13:12 -0400)
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>
src/amd/common/ac_gpu_info.c

index ed08b500c637584d74c6c1a1bc8b65092b8470af..2c70fb2c721891a8c3d03d63cc17764c8f676b1b 100644 (file)
@@ -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");