radeonsi: store si_context::xxx_shader members in union
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Fri, 12 Feb 2021 13:42:10 +0000 (14:42 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 17 Feb 2021 09:11:46 +0000 (09:11 +0000)
commita8373b3d3876afa960ead3378adacc43afcec6ed
treed9b649531e823d777f73ac8b7637668a844d4b6b
parent47ed0091943871a6370a3ad5a0c5f510da272c45
radeonsi: store si_context::xxx_shader members in union

This allows to access them individually (sctx->shader.ps) or
using array indexing (sctx->shaders[PIPE_SHADER_FRAGMENT]).

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8869>
src/gallium/drivers/radeonsi/si_blit.c
src/gallium/drivers/radeonsi/si_compute_prim_discard.c
src/gallium/drivers/radeonsi/si_debug.c
src/gallium/drivers/radeonsi/si_descriptors.c
src/gallium/drivers/radeonsi/si_pipe.h
src/gallium/drivers/radeonsi/si_state.c
src/gallium/drivers/radeonsi/si_state_draw.cpp
src/gallium/drivers/radeonsi/si_state_shaders.c