diff options
author | Kenneth Graunke <[email protected]> | 2019-05-21 16:10:21 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-05-21 16:58:54 -0700 |
commit | 6dc1c2d8bdbcb75795e73ee08e56a2d9c4a6b784 (patch) | |
tree | 0f441ba227e5dfd9876069e61e73769bb5864a3f /src/gallium/drivers/iris/iris_context.h | |
parent | d6053bf2a170a0fec6d232fda097d2f35f0e9eae (diff) |
iris: Fix ALT mode regressions from shader cache
We were checking this based on nir->info.name, but with the shader
cache enabled, nir_strip throws out the name, causing us to use IEEE
mode for ARB programs.
gl-1.0-spot-light regressed because it wants ALT mode for 0^0 behavior.
Fixes: dc5dc727d59 iris: Serialize the NIR to a blob we can use for shader cache purposes.
Diffstat (limited to 'src/gallium/drivers/iris/iris_context.h')
-rw-r--r-- | src/gallium/drivers/iris/iris_context.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/iris/iris_context.h b/src/gallium/drivers/iris/iris_context.h index add6a9a9e34..75e13778631 100644 --- a/src/gallium/drivers/iris/iris_context.h +++ b/src/gallium/drivers/iris/iris_context.h @@ -271,6 +271,9 @@ struct iris_uncompiled_shader { /** Have any shader variants been compiled yet? */ bool compiled_once; + + /** Should we use ALT mode for math? Useful for ARB programs. */ + bool use_alt_mode; }; /** |