mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
gallium: Add support for SWR compilation
Include swr library and include -DHAVE_SWR in the compile line. v3: split to a separate commit Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
parent
5b4d1500dd
commit
9aae167e94
3 changed files with 12 additions and 0 deletions
|
|
@ -30,6 +30,10 @@ if env['llvm']:
|
|||
env.Append(CPPDEFINES = 'HAVE_LLVMPIPE')
|
||||
drivers += [llvmpipe]
|
||||
|
||||
if env['swr']:
|
||||
env.Append(CPPDEFINES = 'HAVE_SWR')
|
||||
drivers += [swr]
|
||||
|
||||
if env['gcc'] and env['machine'] != 'x86_64':
|
||||
# DEF parser in certain versions of MinGW is busted, as does not behave as
|
||||
# MSVC. mingw-w64 works fine.
|
||||
|
|
|
|||
|
|
@ -48,6 +48,10 @@ if env['llvm']:
|
|||
env.Append(CPPDEFINES = ['GALLIUM_LLVMPIPE'])
|
||||
env.Prepend(LIBS = [llvmpipe])
|
||||
|
||||
if env['swr']:
|
||||
env.Append(CPPDEFINES = 'HAVE_SWR')
|
||||
env.Prepend(LIBS = [swr])
|
||||
|
||||
if env['platform'] != 'darwin':
|
||||
# Disallow undefined symbols, except with Address Sanitizer, since libasan
|
||||
# is not linked on shared libs, as it should be LD_PRELOAD'ed instead
|
||||
|
|
|
|||
|
|
@ -30,6 +30,10 @@ if env['llvm']:
|
|||
env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
|
||||
env.Prepend(LIBS = [llvmpipe])
|
||||
|
||||
if env['swr']:
|
||||
env.Append(CPPDEFINES = 'HAVE_SWR')
|
||||
env.Prepend(LIBS = [swr])
|
||||
|
||||
if env['platform'] == 'windows':
|
||||
if env['gcc'] and env['machine'] != 'x86_64':
|
||||
sources += ['osmesa.mingw.def']
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue