From 73c87dbc0c447ed8f1b3e4f1fbd19608e3a4baaa Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Fri, 3 May 2024 15:35:36 -0500 Subject: [PATCH] nil: Use the right PTE kind for Z32 pre-Turing This got lost in the Rust rewrite. Fixes: 426553d61d16 ("nil: Re-implement nil_image in Rust") Reviewed-by: Dave Airlie Part-of: --- src/nouveau/nil/image.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/nouveau/nil/image.rs b/src/nouveau/nil/image.rs index f5e3364e101..1b37fe4197c 100644 --- a/src/nouveau/nil/image.rs +++ b/src/nouveau/nil/image.rs @@ -578,6 +578,13 @@ impl Image { NV_MMU_PTE_KIND_S8Z24 } } + PIPE_FORMAT_Z32_FLOAT => { + if compressed { + NV_MMU_PTE_KIND_ZF32_2CZ + ms + } else { + NV_MMU_PTE_KIND_ZF32 + } + } PIPE_FORMAT_X32_S8X24_UINT | PIPE_FORMAT_Z32_FLOAT_S8X24_UINT => { if compressed { NV_MMU_PTE_KIND_ZF32_X24S8_2CSZV + ms