radv: store cb_shader_mask for fragment shaders and epilogs

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28976>
This commit is contained in:
Samuel Pitoiset
2024-04-30 08:50:38 +02:00
committed by Marge Bot
parent 0ce1bfc040
commit 66d4188ec5
6 changed files with 9 additions and 3 deletions

View File

@@ -917,6 +917,8 @@ gather_shader_info_fs(const struct radv_device *device, const nir_shader *nir,
/* Clear color attachments that aren't exported by the FS to match IO shader arguments. */
info->ps.spi_shader_col_format &= info->ps.colors_written;
info->ps.cb_shader_mask = ac_get_cb_shader_mask(info->ps.spi_shader_col_format);
}
const bool export_alpha_and_mrtz =