diff options
author | Jason Ekstrand <[email protected]> | 2014-11-14 21:35:25 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-01-15 07:20:20 -0800 |
commit | f77f4c00ce4834ca14dd27bed28949dc012e7daf (patch) | |
tree | d9a0afe8e46e6a384d5c3f12810e0ad3a12e0c06 /src/mesa/drivers | |
parent | d5410bd8f65b8d0f845dc8beccd498b6fa098660 (diff) |
nir: Add a basic constant folding pass
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp index 120bd5c6d8b..b7120859324 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp @@ -55,6 +55,8 @@ fs_visitor::emit_nir_code() nir_validate_shader(nir); progress |= nir_opt_algebraic(nir); nir_validate_shader(nir); + progress |= nir_opt_constant_folding(nir); + nir_validate_shader(nir); } while (progress); /* Lower a bunch of stuff */ |