nil: Use D3D sample modes by default

Only the D3D modes work with RASTER_SAMPLES_MODE or with variable
shading rates.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31585>
This commit is contained in:
Faith Ekstrand 2024-10-09 11:46:32 -05:00 committed by Marge Bot
parent e14b4bcb88
commit 8f1697b12d

View File

@ -49,9 +49,9 @@ impl SampleLayout {
pub fn choose_sample_layout(samples: u32) -> SampleLayout {
match samples {
1 => SampleLayout::_1x1,
2 => SampleLayout::_2x1,
2 => SampleLayout::_2x1D3d,
4 => SampleLayout::_2x2,
8 => SampleLayout::_4x2,
8 => SampleLayout::_4x2D3d,
16 => SampleLayout::_4x4,
_ => SampleLayout::Invalid,
}