diff options
author | Jason Ekstrand <[email protected]> | 2014-11-12 19:18:05 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-01-15 07:20:20 -0800 |
commit | 919426631b7bd32f012eb9b6ffd8a9aff74788e1 (patch) | |
tree | e4f15312b68c6baea92c238d4db748f220dcf397 /src/mesa/drivers | |
parent | 1d83a8eb7af0c4b2cf71642cd901686d508a3aa1 (diff) |
nir: Add a lowering pass for adding source modifiers where possible
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 5 |
1 files changed, 5 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 f3cea550114..1a1be97cf1d 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp @@ -66,6 +66,11 @@ fs_visitor::emit_nir_code() nir_remove_dead_variables(nir); nir_validate_shader(nir); + + nir_lower_to_source_mods(nir); + nir_validate_shader(nir); + nir_copy_prop(nir); + nir_validate_shader(nir); nir_convert_from_ssa(nir); nir_validate_shader(nir); nir_lower_vec_to_movs(nir); |