ac: add radeon_info::is_amdgpu instead of checking drm_major == 3
[mesa.git] / src / gallium / drivers / radeon / radeon_uvd.c
index ca066e898234dd142aaa19dbdbf6724ff4633bcb..6c03c123293288232478df204a1b15c7eb5d4718 100644 (file)
@@ -1250,7 +1250,7 @@ struct pipe_video_codec *si_common_uvd_create_decoder(struct pipe_context *conte
        if (!dec)
                return NULL;
 
-       if (sctx->screen->info.drm_major < 3)
+       if (!sctx->screen->info.is_amdgpu)
                dec->use_legacy = true;
 
        dec->base = *templ;