nil: Don't use Fermi bits in the Maxwell null descriptor

Fixes: c8d8e2249a ("nil: Add a helper for populating the null descriptor")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35475>
This commit is contained in:
Faith Ekstrand 2025-06-13 15:42:28 -04:00 committed by Marge Bot
parent 40b59a5c26
commit bbc6f50963

View file

@ -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.