draw/i915: move hwfmt array to i915 specific struct
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 23 Jun 2023 13:49:38 +0000 (15:49 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 28 Jun 2023 13:42:44 +0000 (13:42 +0000)
commitbbcda63564478533ce33a924421a75ab1d042f6e
treeede044a40e0544d7804df14bea1067be8224792d
parent3f7ea95bc9ed21588876ff166d4bfa94bf0c4230
draw/i915: move hwfmt array to i915 specific struct

There's no point in bloating the vertex_info struct everywhere with
information that's only used by i915 in a single place. Let's explicitly
store the hwinfo when needed, instead of piggy-backing on vertex_info.

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23851>
src/gallium/auxiliary/draw/draw_vertex.h
src/gallium/drivers/i915/i915_context.h
src/gallium/drivers/i915/i915_prim_emit.c
src/gallium/drivers/i915/i915_prim_vbuf.c
src/gallium/drivers/i915/i915_state_derived.c
src/gallium/drivers/i915/i915_state_immediate.c