summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr/swr_public.h
diff options
context:
space:
mode:
authorGeorge Kyriazis <[email protected]>2016-11-17 16:21:12 -0600
committerTim Rowley <[email protected]>2016-11-21 12:44:46 -0600
commit87bd28210f2b314978989fdcecedc596d17ac856 (patch)
tree1fd97cc4495f3da34d157e5add01c191e23fb5dd /src/gallium/drivers/swr/swr_public.h
parent974d280e815727f84e799cf69058630b954dec7e (diff)
swr: renamed duplicate swr_create_screen()
There are 2 swr_create_screen() functions. One in swr_loader.cpp, which is used during driver init, and the other is hiding in swr_screen.cpp, which ends up in the arch-specific .dll/.so. Rename the second one to swr_create_screen_internal(), to avoid confusion in header files. Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/swr_public.h')
-rw-r--r--src/gallium/drivers/swr/swr_public.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/swr/swr_public.h b/src/gallium/drivers/swr/swr_public.h
index 0814c3b85d6..7ef81bf8430 100644
--- a/src/gallium/drivers/swr/swr_public.h
+++ b/src/gallium/drivers/swr/swr_public.h
@@ -32,8 +32,12 @@ struct sw_displaytarget;
extern "C" {
#endif
+// driver entry point
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 sw_winsys *swr_get_winsys(struct pipe_screen *pipe);
struct sw_displaytarget *swr_get_displaytarget(struct pipe_resource *resource);