ir3: Add helper to determine when variant exceeds safe constlen
authorConnor Abbott <cwabbott0@gmail.com>
Wed, 17 May 2023 13:02:09 +0000 (15:02 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 11 Sep 2023 10:34:11 +0000 (10:34 +0000)
commita80f02607382fc71b721f4d9d838eecd6e148bf5
tree6c8a5b99cbaa4eebf6b9da127370dc1e6c21e988
parent252aee26346ee2f45dd009332d8997975bf7a2cf
ir3: Add helper to determine when variant exceeds safe constlen

This will help us not compile extra variants as often in the unlinked
case, which will become the only case on turnip.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25076>
src/freedreno/ir3/ir3_shader.h