mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-27 07:58:14 +02:00
This is a port of the old radeonsi code to be used for llvmpipe NIR support. Once we remove TGSI support from llvmpipe (I can dream? :-), then we should be able to refine most of this down and remove it. v2: port to later radeonsi code for vertex inputs and sampler/io parsing. Acked-by: Roland Scheidegger <sroland@vmware.com>
50 lines
929 B
Python
50 lines
929 B
Python
Import('*')
|
|
|
|
from sys import executable as python_cmd
|
|
|
|
env.Append(CPPPATH = [
|
|
'#src',
|
|
'indices',
|
|
'util',
|
|
'#src/compiler/nir',
|
|
'../../compiler/nir',
|
|
])
|
|
|
|
env = env.Clone()
|
|
|
|
env.MSVC2013Compat()
|
|
|
|
env.CodeGenerate(
|
|
target = 'indices/u_indices_gen.c',
|
|
script = 'indices/u_indices_gen.py',
|
|
source = [],
|
|
command = python_cmd + ' $SCRIPT > $TARGET'
|
|
)
|
|
|
|
env.CodeGenerate(
|
|
target = 'indices/u_unfilled_gen.c',
|
|
script = 'indices/u_unfilled_gen.py',
|
|
source = [],
|
|
command = python_cmd + ' $SCRIPT > $TARGET'
|
|
)
|
|
|
|
source = env.ParseSourceList('Makefile.sources', [
|
|
'C_SOURCES',
|
|
'VL_STUB_SOURCES',
|
|
'GENERATED_SOURCES'
|
|
])
|
|
|
|
if env['llvm']:
|
|
source += env.ParseSourceList('Makefile.sources', [
|
|
'NIR_SOURCES',
|
|
'GALLIVM_SOURCES',
|
|
])
|
|
|
|
gallium = env.ConvenienceLibrary(
|
|
target = 'gallium',
|
|
source = source,
|
|
)
|
|
|
|
env.Alias('gallium', gallium)
|
|
|
|
Export('gallium')
|