projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbb14e5
)
nil: Add a PTE kind for Z32_FLOAT
author
Faith Ekstrand
<faith.ekstrand@collabora.com>
Tue, 31 Jan 2023 02:11:55 +0000
(20:11 -0600)
committer
Marge Bot
<emma+marge@anholt.net>
Fri, 4 Aug 2023 21:31:58 +0000
(21:31 +0000)
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: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
src/nouveau/nil/nil_image.c
patch
|
blob
|
history
diff --git
a/src/nouveau/nil/nil_image.c
b/src/nouveau/nil/nil_image.c
index
8b4acd3
..
ca573d2
100644
(file)
--- 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;
}