From 8f1697b12d469dcbf72bc0fd1c7bda4063bf01e2 Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Wed, 9 Oct 2024 11:46:32 -0500 Subject: [PATCH] nil: Use D3D sample modes by default Only the D3D modes work with RASTER_SAMPLES_MODE or with variable shading rates. Part-of: --- src/nouveau/nil/image.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nouveau/nil/image.rs b/src/nouveau/nil/image.rs index afd259364d7..706cf8529b1 100644 --- a/src/nouveau/nil/image.rs +++ b/src/nouveau/nil/image.rs @@ -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, }