[Mesa-dev] [PATCH v5 00/11] Support windows builds for OpenSWR
George Kyriazis
george.kyriazis at intel.com
Fri Nov 18 20:38:36 UTC 2016
Changes to support Windows scons builds for OpenSWR driver, since scons
is the only supported build system for windows.
Scons swr build will not work at this point. Also, windows scons swr build
requires llvm version 3.9 (and above).
Build on windows using the following command line:
scons swr=1 libgl-gdi
Make sure you have the LLVM environment variable set, per build instructions.
This will produce 3 .dlls. The (main) opengl32.dll, and 2 swr-specific
dlls that are loaded dynamically at runtime depending on the underlying
CPU architecture (swrAVX.dll and swrAVX2.dll).
The default software renderer is still llvmpipe, and, like on linux,
you enable SWR by setting the GALLIUM_DRIVER variable to "swr".
George Kyriazis (11):
mesa: removed redundant #else
scons: ignore .hpp files in parse_source_list()
scons: add llvm 3.9 support.
gallium: Added SWR support for gdi
swr: Handle windows.h and NOMINMAX
swr: renamed duplicate swr_create_screen()
swr: Windows-related changes
scons: Add swr compile option
swr: Modify gen_knobs.{cpp|h} creation script
gallium: swr: Added swr build for windows
gallium: Add support for SWR compilation
common.py | 1 +
scons/custom.py | 2 +-
scons/llvm.py | 21 +-
src/gallium/SConscript | 1 +
src/gallium/drivers/swr/Makefile.am | 15 +-
src/gallium/drivers/swr/SConscript | 216 +++++++++++++++++++++
.../drivers/swr/rasterizer/scripts/gen_knobs.py | 51 ++---
src/gallium/drivers/swr/swr_context.cpp | 16 +-
src/gallium/drivers/swr/swr_context.h | 2 +
src/gallium/drivers/swr/swr_loader.cpp | 29 ++-
src/gallium/drivers/swr/swr_public.h | 11 +-
src/gallium/drivers/swr/swr_screen.cpp | 27 +--
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 | 1 -
17 files changed, 364 insertions(+), 69 deletions(-)
create mode 100644 src/gallium/drivers/swr/SConscript
--
2.10.0.windows.1
More information about the mesa-dev
mailing list