draw: add a max stage define and use it in a few places
authorDave Airlie <airlied@redhat.com>
Wed, 7 Jun 2023 05:33:34 +0000 (15:33 +1000)
committerMarge Bot <emma+marge@anholt.net>
Thu, 8 Jun 2023 02:10:54 +0000 (02:10 +0000)
commit73f7948298611d4c15e74799a832d6b0c0f114a0
treee758b8469d791aaf3a5322348b64931dfb5332b5
parentf922f1f902b7d4dbb44bd55335ccd5b75bf97a9d
draw: add a max stage define and use it in a few places

This should decrease the size of some memory allocations.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23487>
src/gallium/auxiliary/draw/draw_context.c
src/gallium/auxiliary/draw/draw_llvm.c
src/gallium/auxiliary/draw/draw_llvm.h
src/gallium/auxiliary/draw/draw_private.h