radv: keep track of SPI_SHADER_COL_FORMAT for PS epilogs

To emit the related register.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20201>
This commit is contained in:
Samuel Pitoiset 2023-01-09 16:27:54 +01:00 committed by Marge Bot
parent c9f30c4aa0
commit 7de50e4c6c
2 changed files with 3 additions and 0 deletions

View file

@ -2668,6 +2668,8 @@ radv_create_ps_epilog(struct radv_device *device, const struct radv_ps_epilog_ke
if (!epilog)
goto fail_create;
epilog->spi_shader_col_format = key->spi_shader_col_format;
/* Allocate memory and upload the epilog. */
epilog->alloc = radv_alloc_shader_memory(device, epilog->code_size, NULL);
if (!epilog->alloc)

View file

@ -516,6 +516,7 @@ struct radv_shader_part {
uint32_t rsrc1;
uint8_t num_preserved_sgprs;
bool nontrivial_divisors;
uint32_t spi_shader_col_format;
struct radv_shader_part_binary *binary;