draw: refactor resources to use arrays instead of explicit structs.
authorDave Airlie <airlied@redhat.com>
Wed, 7 Jun 2023 05:16:47 +0000 (15:16 +1000)
committerMarge Bot <emma+marge@anholt.net>
Thu, 8 Jun 2023 02:10:54 +0000 (02:10 +0000)
commitf922f1f902b7d4dbb44bd55335ccd5b75bf97a9d
tree260c13cb2765fd900446344006975085e13d194e
parentd1cdf0d91a1d3a5cc92f2c4c53f287cf497d0eb4
draw: refactor resources to use arrays instead of explicit structs.

This should simplify the code and make it easier to refactor later.

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_gs.c
src/gallium/auxiliary/draw/draw_llvm.c
src/gallium/auxiliary/draw/draw_llvm.h
src/gallium/auxiliary/draw/draw_private.h
src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c
src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c
src/gallium/auxiliary/draw/draw_tess.c
src/gallium/auxiliary/draw/draw_vs_variant.c