ac/surface: overlap color and Z/S fields using a union in gfx9_surf_layout
authorMarek Olšák <marek.olsak@amd.com>
Fri, 2 Apr 2021 20:12:43 +0000 (16:12 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 12 Apr 2021 20:53:45 +0000 (20:53 +0000)
commit988f148db3c9163246e1260750c8e6e43f6bbd5b
tree5423efb120bdcd74a90400c19da2dc4eddb37f81
parentab00557685355346897bb31b923240b33ff633a8
ac/surface: overlap color and Z/S fields using a union in gfx9_surf_layout

to save space

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10083>
src/amd/common/ac_surface.c
src/amd/common/ac_surface.h