[Mesa-dev] [PATCH 0/3] swr: Support Windows builds
George Kyriazis
george.kyriazis at intel.com
Mon Nov 7 22:32:04 UTC 2016
Changes to support windows builds for OpenSWR driver.
These are divided into 3 patches:
- scons and core mesa-related changes
- a fix in macros.h to implement HAS_TRIVIAL_DESTRUCTOR
- swr-specific changes
The way to build SWR on windows is using scons. Build using the following
command line: "scons swr libgl-gdi". This will produce 3 .dlls. The
(main) opengl32.dll, and 2 swr-specific dlls that are loaded dynamically
at runtime depending on the underlying architecture (swrAVX.dll and
swrAVX2.dll).
The default software renderer is llvmpipe, and, like on linux, you
enable SWR by setting the GALLIUM_DRIVER variable to "swr".
George Kyriazis (3):
gallium/scons: OpenSWR Windows support
mesa: added msvc HAS_TRIVIAL_DESTRUCTOR implementation
swr: Support windows builds
scons/llvm.py | 21 ++-
src/gallium/SConscript | 1 +
src/gallium/drivers/swr/Makefile.am | 8 ++
src/gallium/drivers/swr/SConscript | 46 +++++++
src/gallium/drivers/swr/SConscript-arch | 175 +++++++++++++++++++++++++
src/gallium/drivers/swr/rasterizer/common/os.h | 5 +-
src/gallium/drivers/swr/swr_context.cpp | 16 +--
src/gallium/drivers/swr/swr_context.h | 2 +
src/gallium/drivers/swr/swr_loader.cpp | 37 +++++-
src/gallium/drivers/swr/swr_public.h | 11 +-
src/gallium/drivers/swr/swr_screen.cpp | 25 +---
src/gallium/targets/libgl-gdi/SConscript | 4 +
src/gallium/targets/libgl-gdi/libgl_gdi.c | 28 +++-
src/gallium/targets/libgl-xlib/SConscript | 4 +
src/gallium/targets/osmesa/SConscript | 4 +
src/util/macros.h | 5 +
16 files changed, 351 insertions(+), 41 deletions(-)
create mode 100644 src/gallium/drivers/swr/SConscript
create mode 100644 src/gallium/drivers/swr/SConscript-arch
--
2.10.0.windows.1
More information about the mesa-dev
mailing list