ntt: Switch to new-style registers and modifiers
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Tue, 30 May 2023 15:41:12 +0000 (11:41 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 13 Jul 2023 22:43:36 +0000 (22:43 +0000)
commit5f5be9e4e10a487e60dc7a04affa5405e51c06bd
treeae196271f8f1e0b23d36e82709e501fb6b4bb0b6
parentd54aa28b970ab09302cba67d5502cb0b4b702a79
ntt: Switch to new-style registers and modifiers

Use all the nir_legacy.h features to transition away from the deprecated
structures. shader-db is quite happy. I assume that's a mix of more aggressive
source mod usage and better coalescing (nir-to-tgsi doesn't copyprop).

   total instructions in shared programs: 900179 -> 887156 (-1.45%)
   instructions in affected programs: 562077 -> 549054 (-2.32%)
   helped: 5198
   HURT: 470
   Instructions are helped.

   total temps in shared programs: 91165 -> 91162 (<.01%)
   temps in affected programs: 398 -> 395 (-0.75%)
   helped: 21
   HURT: 18
   Inconclusive result (value mean confidence interval includes 0).

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Tested-by: Pavel Ondračka <pavel.ondracka@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24116>
src/gallium/auxiliary/nir/nir_to_tgsi.c