diff options
author | Marek Olšák <[email protected]> | 2019-06-11 22:49:18 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-06-14 13:31:18 -0400 |
commit | abe9a51d27049971c77a0072693511caf9b793e2 (patch) | |
tree | b020b10528853daf4b6660b89f7d973195d75226 /src/gallium/drivers/radeon/radeon_uvd.c | |
parent | bbbbea243aea8297a4b7006be9e8f8e85c493b81 (diff) |
ac: add radeon_info::is_amdgpu instead of checking drm_major == 3
and clean up
Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon/radeon_uvd.c')
-rw-r--r-- | src/gallium/drivers/radeon/radeon_uvd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/radeon_uvd.c b/src/gallium/drivers/radeon/radeon_uvd.c index ca066e89823..6c03c123293 100644 --- a/src/gallium/drivers/radeon/radeon_uvd.c +++ b/src/gallium/drivers/radeon/radeon_uvd.c @@ -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; |