nil: Use the right PTE kind for Z32 pre-Turing

This got lost in the Rust rewrite.

Fixes: 426553d61d ("nil: Re-implement nil_image in Rust")
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24795>
This commit is contained in:
Faith Ekstrand 2024-05-03 15:35:36 -05:00 committed by Marge Bot
parent 71d1fa129a
commit 73c87dbc0c

View file

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