• Timothy Arceri's avatar
    nir: allow nir_intrinsic_load_ubo in opt_peephole_select · 2f80a54f
    Timothy Arceri authored
    This makes this opt behave more like the GLSL IR opt
    lower_if_to_cond_assign(). With this we can disable that GLSL IR
    opt on drivers with a NIR backend without causing spill
    regressions.
    
    shader-db results for radeonsi (RX580):
    
    Totals from affected shaders:
    SGPRS: 12200 -> 13072 (7.15 %)
    VGPRS: 13496 -> 11840 (-12.27 %)
    Spilled SGPRs: 285 -> 290 (1.75 %)
    Spilled VGPRs: 115 -> 0 (-100.00 %)
    Private memory VGPRs: 0 -> 0 (0.00 %)
    Scratch size: 116 -> 0 (-100.00 %) dwords per thread
    Code Size: 781304 -> 770168 (-1.43 %) bytes
    LDS: 0 -> 0 (0.00 %) blocks
    Max Waves: 1558 -> 1586 (1.80 %)
    Wait states: 0 -> 0 (0.00 %)
    
    Cc: Eric Anholt <eric@anholt.net>
    2f80a54f
Name
Last commit
Last update
bin Loading commit data...
build-support Loading commit data...
docs Loading commit data...
doxygen Loading commit data...
include Loading commit data...
m4 Loading commit data...
scons Loading commit data...
scripts Loading commit data...
src Loading commit data...
.dir-locals.el Loading commit data...
.editorconfig Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
Android.common.mk Loading commit data...
Android.mk Loading commit data...
CleanSpec.mk Loading commit data...
Makefile.am Loading commit data...
README.rst Loading commit data...
REVIEWERS Loading commit data...
SConstruct Loading commit data...
VERSION Loading commit data...
appveyor.yml Loading commit data...
autogen.sh Loading commit data...
common.py Loading commit data...
configure.ac Loading commit data...
install-gallium-links.mk Loading commit data...
install-lib-links.mk Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...