mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 11:30:21 +01:00
radeonsi/gfx11: limit MSAA color buffers to the RGBA channel order
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16328>
This commit is contained in:
parent
6531ec8922
commit
54d85700a1
1 changed files with 10 additions and 0 deletions
|
|
@ -2432,6 +2432,16 @@ static bool si_is_format_supported(struct pipe_screen *screen, enum pipe_format
|
|||
if (sample_count > max_eqaa_samples || storage_sample_count > max_samples)
|
||||
return false;
|
||||
}
|
||||
|
||||
/* Gfx11: BGRA doesn't work with samples >= 4. Only allow R/0/1 to be the first
|
||||
* component for simplicity.
|
||||
*/
|
||||
if (sscreen->info.chip_class >= GFX11 &&
|
||||
!util_format_is_depth_or_stencil(format) &&
|
||||
util_format_description(format)->swizzle[0] != PIPE_SWIZZLE_X &&
|
||||
util_format_description(format)->swizzle[0] != PIPE_SWIZZLE_0 &&
|
||||
util_format_description(format)->swizzle[0] != PIPE_SWIZZLE_1)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (usage & (PIPE_BIND_SAMPLER_VIEW | PIPE_BIND_SHADER_IMAGE)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue