i915g: Move cbuf color swizzle lookup to CSO creation time.
authorEmma Anholt <emma@anholt.net>
Sun, 20 Jun 2021 16:19:59 +0000 (09:19 -0700)
committerEmma Anholt <emma@anholt.net>
Tue, 22 Jun 2021 18:06:37 +0000 (11:06 -0700)
commitbd4121fe0430e41d7c929fb843a27bc16e355ef5
tree529a82d1ee4bf2fbe08e5d353c1a8f6a6e995e0b
parent5b3840d9613928b97beb26c18d2ca60471c9516f
i915g: Move cbuf color swizzle lookup to CSO creation time.

Saves walking the loop, and makes a nice place to store a swizzle for use
in other atoms.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11512>
src/gallium/drivers/i915/i915_clear.c
src/gallium/drivers/i915/i915_context.h
src/gallium/drivers/i915/i915_state_emit.c
src/gallium/drivers/i915/i915_state_static.c
src/gallium/drivers/i915/i915_surface.c