[Mesa-dev] [PATCH] i965/fs: Use NIR by default for fragment shaders

Jason Ekstrand jason at jlekstrand.net
Tue Mar 24 10:53:19 PDT 2015


shader-db results for fragment shaders on i965:

   total instructions in shared programs: 2908521 -> 2921865 (0.46%)
   instructions in affected programs:     2203215 -> 2216559 (0.61%)
   helped:                                2637
   HURT:                                  5084

shader-db results for fragment shaders on g4x:

   total instructions in shared programs: 2565728 -> 2575036 (0.36%)
   instructions in affected programs:     1798342 -> 1807650 (0.52%)
   helped:                                1693
   HURT:                                  4822

shader-db results for fragment shaders on Iron Lake:

   total instructions in shared programs: 4081505 -> 4099772 (0.45%)
   instructions in affected programs:     2616538 -> 2634805 (0.70%)
   helped:                                1947
   HURT:                                  8222
   GAINED:                                817
   LOST:                                  55

shader-db results for fragment shaders on Sandy Bridge:

   total instructions in shared programs: 5322203 -> 5283959 (-0.72%)
   instructions in affected programs:     3121485 -> 3083241 (-1.23%)
   helped:                                8685
   HURT:                                  6229
   GAINED:                                147
   LOST:                                  11

shader-db results for fragment shaders on Ivy Bridge:

   total instructions in shared programs: 4938162 -> 4899197 (-0.79%)
   instructions in affected programs:     2845664 -> 2806699 (-1.37%)
   helped:                                8639
   HURT:                                  5116
   GAINED:                                145
   LOST:                                  13

shader-db results for fragment shaders on Bay Trail:

   total instructions in shared programs: 4938162 -> 4899197 (-0.79%)
   instructions in affected programs:     2845664 -> 2806699 (-1.37%)
   helped:                                8639
   HURT:                                  5116
   GAINED:                                145
   LOST:                                  13

shader-db results for fragment shaders on Haswell:

   total instructions in shared programs: 4400090 -> 4350596 (-1.12%)
   instructions in affected programs:     2536991 -> 2487497 (-1.95%)
   helped:                                9624
   HURT:                                  4136
   GAINED:                                145
   LOST:                                  13

shader-db results for fragment shaders on Broadwell:

   total instructions in shared programs: 4387200 -> 4339681 (-1.08%)
   instructions in affected programs:     2479350 -> 2431831 (-1.92%)
   helped:                                9053
   HURT:                                  4362
   GAINED:                                92
   LOST:                                  13
---

The shader-db results reported above are based off the series I sent
yesterday for better handling of ffma.

 src/mesa/drivers/dri/i965/brw_fs.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index a57f501..019bfc7 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -3955,7 +3955,7 @@ fs_visitor::run_fs()
        * functions called "main").
        */
       if (shader) {
-         if (env_var_as_boolean("INTEL_USE_NIR", false)) {
+         if (env_var_as_boolean("INTEL_USE_NIR", true)) {
             emit_nir_code();
          } else {
             foreach_in_list(ir_instruction, ir, shader->base.ir) {
-- 
2.3.3



More information about the mesa-dev mailing list