ac: add ac_choose_spi_color_formats() to common code
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 11 Jun 2020 20:25:53 +0000 (22:25 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 15 Jun 2020 06:16:07 +0000 (08:16 +0200)
commit013d096d15bef44594475812a0e5b12b729939bc
treef761a1c35dc2703a325d583a04d19a10c2288770
parent1d9e6e456ad60f4c995c24c5cde6d73943141e6c
ac: add ac_choose_spi_color_formats() to common code

It's similar between RADV and RadeonSI.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5436>
src/amd/common/ac_shader_util.c
src/amd/common/ac_shader_util.h
src/amd/vulkan/radv_pipeline.c
src/gallium/drivers/radeonsi/si_state.c