diff options
author | Kenneth Graunke <[email protected]> | 2015-01-30 01:16:49 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2015-03-27 21:16:34 -0700 |
commit | 826d3afb8f421a62020308813397e541e672381e (patch) | |
tree | 141f78590b6de732c142d6ca91bcbb154835eace /Makefile.am | |
parent | bf2c3bc316cbfcc19d1bb65ab7410784ed7a3dac (diff) |
i965/fs: Add ARB_fragment_program support to the NIR backend.
Use prog_to_nir where we would normally call glsl_to_nir, handle program
parameter lists, and skip a few things that don't exist.
Using NIR generates much better shader code than Mesa IR, since we get
real optimizations, as opposed to prog_optimize:
total instructions in shared programs: 314007 -> 279892 (-10.86%)
instructions in affected programs: 285173 -> 251058 (-11.96%)
helped: 2001
HURT: 67
GAINED: 4
LOST: 7
v2: Change early return in nir_setup_uniforms to if/else (Jordan).
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Jordan Justen <[email protected]>
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'Makefile.am')
0 files changed, 0 insertions, 0 deletions