nil: Add missing compressible PTE kinds
We were missing compressible PTE kinds for generic on TU102 and GB202. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37094>
This commit is contained in:
committed by
Faith Ekstrand
parent
1b6d6f8e03
commit
af5a7b0ddf
@@ -749,9 +749,15 @@ impl Image {
|
||||
}
|
||||
}
|
||||
|
||||
fn gb202_choose_pte_kind(_format: Format, _compressed: bool) -> u8 {
|
||||
fn gb202_choose_pte_kind(_format: Format, compressed: bool) -> u8 {
|
||||
use nvidia_headers::hwref::tu102::mmu::*;
|
||||
NV_MMU_PTE_KIND_GENERIC_MEMORY.try_into().unwrap()
|
||||
if compressed {
|
||||
NV_MMU_PTE_KIND_GENERIC_MEMORY_COMPRESSIBLE_DISABLE_PLC
|
||||
} else {
|
||||
NV_MMU_PTE_KIND_GENERIC_MEMORY
|
||||
}
|
||||
.try_into()
|
||||
.unwrap()
|
||||
}
|
||||
|
||||
fn tu102_choose_pte_kind(format: Format, compressed: bool) -> u8 {
|
||||
@@ -789,7 +795,13 @@ impl Image {
|
||||
NV_MMU_PTE_KIND_ZF32_X24S8
|
||||
}
|
||||
}
|
||||
PIPE_FORMAT_Z32_FLOAT => NV_MMU_PTE_KIND_GENERIC_MEMORY,
|
||||
PIPE_FORMAT_Z32_FLOAT => {
|
||||
if compressed {
|
||||
NV_MMU_PTE_KIND_GENERIC_MEMORY_COMPRESSIBLE_DISABLE_PLC
|
||||
} else {
|
||||
NV_MMU_PTE_KIND_GENERIC_MEMORY
|
||||
}
|
||||
}
|
||||
PIPE_FORMAT_S8_UINT => {
|
||||
if compressed {
|
||||
NV_MMU_PTE_KIND_S8_COMPRESSIBLE_DISABLE_PLC
|
||||
@@ -797,7 +809,13 @@ impl Image {
|
||||
NV_MMU_PTE_KIND_S8
|
||||
}
|
||||
}
|
||||
_ => NV_MMU_PTE_KIND_GENERIC_MEMORY,
|
||||
_ => {
|
||||
if compressed {
|
||||
NV_MMU_PTE_KIND_GENERIC_MEMORY_COMPRESSIBLE_DISABLE_PLC
|
||||
} else {
|
||||
NV_MMU_PTE_KIND_GENERIC_MEMORY
|
||||
}
|
||||
}
|
||||
}
|
||||
.try_into()
|
||||
.unwrap()
|
||||
|
||||
Reference in New Issue
Block a user