nir: Add a nir_shader_compiler_options struct pointed to by the shaders.
authorEric Anholt <eric@anholt.net>
Tue, 3 Feb 2015 00:13:49 +0000 (16:13 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 18 Feb 2015 22:47:50 +0000 (14:47 -0800)
commitf90bb54734bf03be6c736812226e3f65f2e11519
tree5ec1cc55001f020619f34184cf02811021346c1e
parent4a95be9772a255776309f23180519a4a8560f2dd
nir: Add a nir_shader_compiler_options struct pointed to by the shaders.

This will be used to give the optimization passes a chance to customize
behavior for the particular target device.

v2: Rebase to master (no TGSI->NIR present)

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> (v1)
src/glsl/nir/glsl_to_nir.cpp
src/glsl/nir/nir.c
src/glsl/nir/nir.h
src/mesa/main/mtypes.h