mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 05:10:11 +01:00
radeonsi: Respect if rbplus is allowed when choosing color formats
For consistency with RADV. Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38304>
This commit is contained in:
parent
4f793d2515
commit
35b376b942
1 changed files with 2 additions and 1 deletions
|
|
@ -2464,7 +2464,8 @@ static void si_initialize_color_surface(struct si_context *sctx, struct si_surfa
|
|||
|
||||
/* Determine pixel shader export format */
|
||||
struct ac_spi_color_formats formats = {};
|
||||
ac_choose_spi_color_formats(format, swap, ntype, tex->is_depth, true, &formats);
|
||||
const bool rbplus = sctx->screen->info.rbplus_allowed;
|
||||
ac_choose_spi_color_formats(format, swap, ntype, tex->is_depth, rbplus, &formats);
|
||||
|
||||
surf->spi_shader_col_format = formats.normal;
|
||||
surf->spi_shader_col_format_alpha = formats.alpha;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue