diff options
author | Eric Anholt <[email protected]> | 2015-02-02 16:13:49 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2015-02-18 14:47:50 -0800 |
commit | f90bb54734bf03be6c736812226e3f65f2e11519 (patch) | |
tree | 5ec1cc55001f020619f34184cf02811021346c1e /src/mesa | |
parent | 4a95be9772a255776309f23180519a4a8560f2dd (diff) |
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 <[email protected]> (v1)
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/mtypes.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 05e95759cd4..8d2bd74b440 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -3034,6 +3034,8 @@ struct gl_shader_compiler_options GLboolean OptimizeForAOS; struct gl_sl_pragmas DefaultPragmas; /**< Default #pragma settings */ + + struct nir_shader_compiler_options *NirOptions; }; |