From c937bdb3c2c41c5bf914ae7ead9223b8b87e9fe2 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 7 Nov 2014 16:07:22 -0800 Subject: i965/fs_nir: Turn on the peephole select optimization Reviewed-by: Connor Abbott --- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mesa/drivers/dri') diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp index 05fe3966292..22c8c0a39f5 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp @@ -61,6 +61,8 @@ fs_visitor::emit_nir_code() nir_validate_shader(nir); nir_opt_dce(nir); nir_validate_shader(nir); + nir_opt_peephole_select(nir); + nir_validate_shader(nir); nir_print_shader(nir, stderr); nir_convert_from_ssa(nir); -- cgit v1.2.3