radeonsi/nir: Use nir stripping pass
authorConnor Abbott <cwabbott0@gmail.com>
Mon, 4 Mar 2019 17:00:30 +0000 (18:00 +0100)
committerConnor Abbott <cwabbott0@gmail.com>
Tue, 12 Mar 2019 09:49:48 +0000 (10:49 +0100)
commit1bbe58c214b4ff7f614bfadb5c8691a2fe47ab51
tree97f387234fd95fb8ca7a5bf2c9ba05a39294ac62
parent5b2ec9c81e1abafd19f1efbbe499df03ae4aa37e
radeonsi/nir: Use nir stripping pass

This reduces compilation time for my shader-db collection from around 40
seconds to 30, vs. 19 seconds for TGSI. There are still some shaders
that TGSI caches but NIR doesn't, partly because of more aggressive
cross-stage optimizations with NIR.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/gallium/drivers/radeonsi/si_shader_nir.c