From 54d844897fe0afea4b5ddf08565af49a8191d808 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Mon, 22 Jan 2018 17:52:49 +0000 Subject: [PATCH] swr: don't export swr_create_screen_internal With earlier rework the user and provider of the symbol are within the same binary. Thus there's no point in exporting the function. Spotted while reviewing patch from Chuck, that nearly added another unneeded PUBLIC function. Cc: Chuck Atkins Cc: Tim Rowley Fixes: f50aa21456d "(swr: build driver proper separate from rasterizer") Signed-off-by: Emil Velikov Tested-by: Chuck Atkins Reviewed-By: George Kyriazis > Tested-by: Chuck Atkins > --- src/gallium/drivers/swr/swr_public.h | 2 +- src/gallium/drivers/swr/swr_screen.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gallium/drivers/swr/swr_public.h b/src/gallium/drivers/swr/swr_public.h index 07ea6280cd6..b32f41fdf7b 100644 --- a/src/gallium/drivers/swr/swr_public.h +++ b/src/gallium/drivers/swr/swr_public.h @@ -37,7 +37,7 @@ extern "C" { struct pipe_screen *swr_create_screen(struct sw_winsys *winsys); // arch-specific dll entry point -PUBLIC struct pipe_screen *swr_create_screen_internal(struct sw_winsys *winsys); +struct pipe_screen *swr_create_screen_internal(struct sw_winsys *winsys); // cleanup for failed screen creation void swr_destroy_screen_internal(struct swr_screen **screen); diff --git a/src/gallium/drivers/swr/swr_screen.cpp b/src/gallium/drivers/swr/swr_screen.cpp index 67085444f84..084f55dab99 100644 --- a/src/gallium/drivers/swr/swr_screen.cpp +++ b/src/gallium/drivers/swr/swr_screen.cpp @@ -1143,7 +1143,6 @@ swr_validate_env_options(struct swr_screen *screen) } -PUBLIC struct pipe_screen * swr_create_screen_internal(struct sw_winsys *winsys) { -- 2.30.2