mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 12:40:09 +01:00
gallium/radeon: use explicit drm_major, drm_minor check
Just like everywhere else in the radeon codebase. v2: Don't forget about drm_major == 3 (Alex) Cc: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
b9c5c4af6d
commit
3dc2630e45
1 changed files with 2 additions and 1 deletions
|
|
@ -404,7 +404,8 @@ struct pipe_video_codec *rvce_create_encoder(struct pipe_context *context,
|
|||
|
||||
if (rscreen->info.drm_major == 3)
|
||||
enc->use_vm = true;
|
||||
if ((rscreen->info.drm_major > 2) || (rscreen->info.drm_minor >= 42))
|
||||
if ((rscreen->info.drm_major == 2 && rscreen->info.drm_minor >= 42) ||
|
||||
rscreen->info.drm_major == 3)
|
||||
enc->use_vui = true;
|
||||
if (rscreen->info.family >= CHIP_TONGA &&
|
||||
rscreen->info.family != CHIP_STONEY)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue