From bbc6f509639205642ea1dc46fc2a8cefdfa8d6dd Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Fri, 13 Jun 2025 15:42:28 -0400 Subject: [PATCH] nil: Don't use Fermi bits in the Maxwell null descriptor Fixes: c8d8e2249a73 ("nil: Add a helper for populating the null descriptor") Part-of: --- src/nouveau/nil/descriptor.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nouveau/nil/descriptor.rs b/src/nouveau/nil/descriptor.rs index 63372d86b6d..902f5c63745 100644 --- a/src/nouveau/nil/descriptor.rs +++ b/src/nouveau/nil/descriptor.rs @@ -636,10 +636,10 @@ fn nvb097_fill_null_desc(zero_page_address: u64, desc_out: &mut [u32; 8]) { set_enum!(th, clb097, TEXHEAD_BL_TEXTURE_TYPE, TWO_D_ARRAY); set_enum!(th, clb097, TEXHEAD_BL_BORDER_SIZE, BORDER_SAMPLER_COLOR); - th.set_field(cl9097::TEXHEADV2_NORMALIZED_COORDS, true); + th.set_field(clb097::TEXHEAD_BL_NORMALIZED_COORDS, true); - th.set_field(cl9097::TEXHEADV2_RES_VIEW_MIN_MIP_LEVEL, 1_u8); - th.set_field(cl9097::TEXHEADV2_RES_VIEW_MAX_MIP_LEVEL, 0_u8); + th.set_field(clb097::TEXHEAD_BL_RES_VIEW_MIN_MIP_LEVEL, 1_u8); + th.set_field(clb097::TEXHEAD_BL_RES_VIEW_MAX_MIP_LEVEL, 0_u8); // This is copied from the D3D12 driver. I have no idea what these bits do // or if they even do anything.