[PATCH xf86-video-amdgpu] Use plain glamor_egl_create_textured_screen().

Deucher, Alexander Alexander.Deucher at amd.com
Tue May 23 15:31:33 UTC 2017


> -----Original Message-----
> From: amd-gfx [mailto:amd-gfx-bounces at lists.freedesktop.org] On Behalf
> Of Michel Dänzer
> Sent: Wednesday, May 17, 2017 3:16 AM
> To: amd-gfx at lists.freedesktop.org
> Subject: [PATCH xf86-video-amdgpu] Use plain
> glamor_egl_create_textured_screen().
> 
> From: Eric Anholt <eric at anholt.net>
> 
> Since 5064ffab631 (2014), glamor's implementation of _ext just drops the
> back_pixmap arg, which we were passing NULL (the default) to anyway.
> 
> Signed-off-by: Eric Anholt <eric at anholt.net>
> (Ported from radeon commit 2b7d77b90108911777a11ecaa63435552000c958)
> 
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  src/amdgpu_glamor.c | 7 +++----
>  1 file changed, 3 insertions(+), 4 deletions(-)
> 
> diff --git a/src/amdgpu_glamor.c b/src/amdgpu_glamor.c
> index 1c5dfc2d1..5583cd382 100644
> --- a/src/amdgpu_glamor.c
> +++ b/src/amdgpu_glamor.c
> @@ -66,10 +66,9 @@ Bool
> amdgpu_glamor_create_screen_resources(ScreenPtr screen)
>  #endif
> 
>  	if (!amdgpu_bo_get_handle(info->front_buffer, &bo_handle) ||
> -	    !glamor_egl_create_textured_screen_ext(screen,
> -						   bo_handle,
> -						   scrn->displayWidth *
> -						   info->pixel_bytes, NULL)) {
> +	    !glamor_egl_create_textured_screen(screen, bo_handle,
> +					       scrn->displayWidth *
> +					       info->pixel_bytes)) {
>  		return FALSE;
>  	}
> 
> --
> 2.11.0
> 
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


More information about the amd-gfx mailing list