pan/bi: Specialize shaders for IDVS
authorAlyssa Rosenzweig <alyssa@collabora.com>
Mon, 13 Dec 2021 20:26:13 +0000 (15:26 -0500)
committerMarge Bot <emma+marge@anholt.net>
Mon, 20 Dec 2021 18:21:41 +0000 (18:21 +0000)
commit1d21de788d3f4f7fbdcf5b57884bc149a2e219e3
treed1d72d0cc4b3f91989124cee5ba1d2c58cccd4b3
parentc59977c3bf4c0fe2340265f79b147fad77478e77
pan/bi: Specialize shaders for IDVS

We need to compile multiple variants and report them together in a
common shader info. To do so, we split off per-variant shader infos and
combine at the end.

glmark2 is very happy: https://people.collabora.com/~alyssa/idvs-g52.txt
Highlights include -bshading up 41% fps and -bbump:bump-render=high-poly
up 62% faster

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14154>
src/panfrost/bifrost/bi_opt_push_ubo.c
src/panfrost/bifrost/bi_pack.c
src/panfrost/bifrost/bi_ra.c
src/panfrost/bifrost/bifrost_compile.c
src/panfrost/bifrost/compiler.h