Mesa (master): swr/rast: make SWR_VISIBLE attribute work for windows

Tim Rowley torowley at kemper.freedesktop.org
Tue Jul 11 18:43:47 UTC 2017


Module: Mesa
Branch: master
Commit: 27c5568de3674ec95f02816a06b13180bad0838b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=27c5568de3674ec95f02816a06b13180bad0838b

Author: George Kyriazis <george.kyriazis at intel.com>
Date:   Tue Jul 11 08:13:49 2017 -0600

swr/rast: make SWR_VISIBLE attribute work for windows

Needed to expose SwrGetInterface

Reviewed-by: Bruce Cherniak <bruce.cherniak at intel.com>

---

 src/gallium/drivers/swr/rasterizer/common/os.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/swr/rasterizer/common/os.h b/src/gallium/drivers/swr/rasterizer/common/os.h
index 8657709405..a16f5779d8 100644
--- a/src/gallium/drivers/swr/rasterizer/common/os.h
+++ b/src/gallium/drivers/swr/rasterizer/common/os.h
@@ -30,7 +30,7 @@
 #if (defined(FORCE_WINDOWS) || defined(_WIN32)) && !defined(FORCE_LINUX)
 
 #define SWR_API __cdecl
-#define SWR_VISIBLE
+#define SWR_VISIBLE  __declspec(dllexport)
 
 #ifndef NOMINMAX
 #define NOMINMAX




More information about the mesa-commit mailing list