swr: don't export swr_create_screen_internal
authorEmil Velikov <emil.velikov@collabora.com>
Mon, 22 Jan 2018 17:52:49 +0000 (17:52 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 7 Aug 2018 16:23:17 +0000 (17:23 +0100)
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 <chuck.atkins@kitware.com>
Cc: Tim Rowley <timothy.o.rowley@intel.com>
Fixes: f50aa21456d "(swr: build driver proper separate from rasterizer")
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Tested-by: Chuck Atkins <chuck.atkins@kitware.com>
Reviewed-By: George Kyriazis <george.kyriazis@intel.com<mailto:george.kyriazis@intel.com>>
Tested-by: Chuck Atkins <chuck.atkins@kitware.com<mailto:chuck.atkins@kitware.com>>
src/gallium/drivers/swr/swr_public.h
src/gallium/drivers/swr/swr_screen.cpp

index 07ea6280cd68a37c5bc485590168353c92bbf387..b32f41fdf7b08e45306432cde7b4c1ed289cf31e 100644 (file)
@@ -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);
index 67085444f845879d624762a43afb55599a10f464..084f55dab997c3096b390113bd8d61ced3afc259 100644 (file)
@@ -1143,7 +1143,6 @@ swr_validate_env_options(struct swr_screen *screen)
 }
 
 
-PUBLIC
 struct pipe_screen *
 swr_create_screen_internal(struct sw_winsys *winsys)
 {