From 1410100ebe530cd7f6b686c1ee63bc46cae8d65a Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Mon, 30 Jan 2023 20:11:55 -0600 Subject: [PATCH] nil: Add a PTE kind for Z32_FLOAT This values was found by trial-and-error poking at the hardware until it stopped complaining. It's not clear if we need separate values for compressed vs. not. This appears to work on Turing regardless of what we set for SET_Z_COMPRESSION. Part-of: --- src/nouveau/nil/nil_image.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nouveau/nil/nil_image.c b/src/nouveau/nil/nil_image.c index 8b4acd3..ca573d2 100644 --- a/src/nouveau/nil/nil_image.c +++ b/src/nouveau/nil/nil_image.c @@ -177,6 +177,7 @@ tu102_choose_pte_kind(enum pipe_format format, bool compressed) else return 0x04; // NV_MMU_PTE_KIND_ZF32_X24S8 case PIPE_FORMAT_Z32_FLOAT: + return 0x06; default: return 0; } -- 2.7.4