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 (10):
  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: Windows-related changes
  scons: Add swr compile option
  gallium: swr: Added swr build for windows
  gallium: Add support for SWR compilation
  swr: Modify gen_knobs.{cpp|h} creation script

 common.py                                          |   1 +
 scons/custom.py                                    |   2 +-
 scons/llvm.py                                      |  21 +-
 src/gallium/SConscript                             |   1 +
 src/gallium/drivers/swr/Makefile.am                |  21 +-
 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             |  28 ++-
 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                                  |   1 -
 17 files changed, 368 insertions(+), 68 deletions(-)
 mode change 100644 => 100755 src/gallium/drivers/swr/Makefile.am
 create mode 100755 src/gallium/drivers/swr/SConscript

-- 
2.10.0.windows.1

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to