nv30/40: Switch to using NIR-to-TGSI by default.
authorEmma Anholt <emma@anholt.net>
Wed, 8 Dec 2021 22:56:54 +0000 (14:56 -0800)
committerMarge Bot <emma+marge@anholt.net>
Wed, 16 Feb 2022 17:22:40 +0000 (17:22 +0000)
commitca1ec7272685bdadd4e339cb989ac503db0abd18
treefca0d1f8ffa2279991034ae361c132721548ee0d
parent80716b6f7e9fe0c93e6a244d23689b0ff81c2927
nv30/40: Switch to using NIR-to-TGSI by default.

shader-db results (note that we expect many more loops unrolled, so instr
count is probably understating the win):

nv30:
total instructions in shared programs: 16535069 -> 14299105 (-13.52%)
instructions in affected programs: 16377286 -> 14141322 (-13.65%)
total gpr in shared programs: 81255 -> 67268 (-17.21%)
gpr in affected programs: 56714 -> 42727 (-24.66%)
LOST:   0
GAINED: 824

nv40:
total instructions in shared programs: 20907673 -> 18428749 (-11.86%)
instructions in affected programs: 20755510 -> 18276586 (-11.94%)
total gpr in shared programs: 104200 -> 82831 (-20.51%)
gpr in affected programs: 80278 -> 58909 (-26.62%)

14130

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14130>
src/gallium/drivers/nouveau/nouveau_debug.h
src/gallium/drivers/nouveau/nv30/nv30_fragprog.c
src/gallium/drivers/nouveau/nv30/nv30_screen.c
src/gallium/drivers/nouveau/nv30/nv30_screen.h
src/gallium/drivers/nouveau/nv30/nv30_vertprog.c