[Mesa-dev] [PATCH v2] gallium/radeon: use explicit drm_major, drm_minor check
Marek Olšák
maraeo at gmail.com
Tue Mar 8 11:18:44 UTC 2016
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Marek
On Tue, Mar 8, 2016 at 11:55 AM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> Just like everywhere else in the radeon codebase.
>
> v2: Don't forget about drm_major == 3 (Alex)
>
> Cc: Alex Deucher <alexander.deucher at amd.com>
> Cc: Marek Olšák <marek.olsak at amd.com>
> Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
> ---
>
> Untested, as previous version.
>
> src/gallium/drivers/radeon/radeon_vce.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/radeon/radeon_vce.c b/src/gallium/drivers/radeon/radeon_vce.c
> index 41603b3..087d942 100644
> --- a/src/gallium/drivers/radeon/radeon_vce.c
> +++ b/src/gallium/drivers/radeon/radeon_vce.c
> @@ -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)
> --
> 2.6.2
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list