agx: Add schedule-specialized get_sr variants
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Thu, 24 Aug 2023 23:19:07 +0000 (19:19 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 5 Sep 2023 18:50:34 +0000 (18:50 +0000)
commit0ea47d86c7c8a1513ffd98976beeb2e97958fc99
tree4555397bef14c929b224b56fabebe7d62f706814
parentf6df092925c2f06efe5e10280bb16676fa49b73c
agx: Add schedule-specialized get_sr variants

Some special registers imply scheduling constraints. We want to have a single
scheduling class per instruction in the IR, so fork off various get_sr variants
depending on what kind of SR we're reading, and validate that we use the right
kind.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25052>
src/asahi/compiler/agx_compile.c
src/asahi/compiler/agx_opcodes.py
src/asahi/compiler/agx_validate.c