[Mesa-dev] [PATCH 02/16] targets/pipe-loader: drop driver_descriptor symbol from swrast

Francisco Jerez currojerez at riseup.net
Sat Apr 5 03:14:55 PDT 2014


Emil Velikov <emil.l.velikov at gmail.com> writes:

> The symbol is used for hardware only drivers. For swrast the
> loader uses swrast_create_screen. Add VISIBILITY_CFLAGS while
> we're here.
>
> Cc: Francisco Jerez <currojerez at riseup.net>
> Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>

Reviewed-by: Francisco Jerez <currojerez at riseup.net>

> ---
>  src/gallium/targets/pipe-loader/Makefile.am   | 3 ++-
>  src/gallium/targets/pipe-loader/pipe_swrast.c | 3 ---
>  2 files changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/src/gallium/targets/pipe-loader/Makefile.am b/src/gallium/targets/pipe-loader/Makefile.am
> index a35ef35..cdeb4b1 100644
> --- a/src/gallium/targets/pipe-loader/Makefile.am
> +++ b/src/gallium/targets/pipe-loader/Makefile.am
> @@ -27,7 +27,8 @@ AM_CPPFLAGS = \
>  	-I$(top_srcdir)/include \
>  	-I$(top_srcdir)/src/gallium/drivers \
>  	-I$(top_srcdir)/src/gallium/winsys \
> -	 $(LIBDRM_CFLAGS) \
> +	$(LIBDRM_CFLAGS) \
> +	$(VISIBILITY_CFLAGS) \
>  	-DGALLIUM_RBUG \
>  	-DGALLIUM_TRACE \
>  	-DGALLIUM_GALAHAD
> diff --git a/src/gallium/targets/pipe-loader/pipe_swrast.c b/src/gallium/targets/pipe-loader/pipe_swrast.c
> index 092abf0..f7f354a 100644
> --- a/src/gallium/targets/pipe-loader/pipe_swrast.c
> +++ b/src/gallium/targets/pipe-loader/pipe_swrast.c
> @@ -6,9 +6,6 @@
>  PUBLIC struct pipe_screen *
>  swrast_create_screen(struct sw_winsys *ws);
>  
> -PUBLIC
> -DRM_DRIVER_DESCRIPTOR("swrast", NULL, NULL, NULL)
> -
>  struct pipe_screen *
>  swrast_create_screen(struct sw_winsys *ws)
>  {
> -- 
> 1.9.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 229 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140405/5a699607/attachment.sig>


More information about the mesa-dev mailing list