[PATCH] glamor: fix build when DRI3 is not defined

Kenneth Graunke kenneth at whitecape.org
Tue Apr 21 23:56:40 PDT 2015


On Wednesday, April 15, 2015 09:29:58 PM Jonathan Gray wrote:
> Signed-off-by: Jonathan Gray <jsg at jsg.id.au>
> ---
>  glamor/glamor_egl.c | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/glamor/glamor_egl.c b/glamor/glamor_egl.c
> index 6033780..dc54561 100644
> --- a/glamor/glamor_egl.c
> +++ b/glamor/glamor_egl.c
> @@ -595,6 +595,7 @@ glamor_egl_close_screen(ScreenPtr screen)
>      return screen->CloseScreen(screen);
>  }
>  
> +#ifdef DRI3
>  static int
>  glamor_dri3_open_client(ClientPtr client,
>                          ScreenPtr screen,
> @@ -651,12 +652,12 @@ static dri3_screen_info_rec glamor_dri3_info = {
>      .pixmap_from_fd = glamor_pixmap_from_fd,
>      .fd_from_pixmap = glamor_fd_from_pixmap,
>  };
> +#endif /* DRI3 */
>  
>  void
>  glamor_egl_screen_init(ScreenPtr screen, struct glamor_context *glamor_ctx)
>  {
>      ScrnInfoPtr scrn = xf86ScreenToScrn(screen);
> -    glamor_screen_private *glamor_priv = glamor_get_screen_private(screen);
>      struct glamor_egl_screen_private *glamor_egl =
>          glamor_egl_get_screen_private(scrn);
>  
> @@ -668,7 +669,9 @@ glamor_egl_screen_init(ScreenPtr screen, struct glamor_context *glamor_ctx)
>  
>      glamor_ctx->make_current = glamor_egl_make_current;
>  
> +#ifdef DRI3
>      if (glamor_egl->dri3_capable) {
> +    	glamor_screen_private *glamor_priv = glamor_get_screen_private(screen);
>          /* Tell the core that we have the interfaces for import/export
>           * of pixmaps.
>           */
> @@ -691,6 +694,7 @@ glamor_egl_screen_init(ScreenPtr screen, struct glamor_context *glamor_ctx)
>              }
>          }
>      }
> +#endif
>  }
>  
>  static void
> 

Looks reasonable to me...

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.x.org/archives/xorg-devel/attachments/20150421/bb8ac455/attachment.sig>


More information about the xorg-devel mailing list