mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
nil: Fix a couple of clippy lints
Reviewed-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36849>
This commit is contained in:
parent
e6c32c7b92
commit
02f509a9d0
2 changed files with 2 additions and 2 deletions
|
|
@ -589,7 +589,7 @@ fn nvcb97_fill_image_view_desc(
|
|||
view.base_array_layer + view.array_len <= image.extent_px.array_len
|
||||
);
|
||||
layer_address +=
|
||||
u64::from(view.base_array_layer) * u64::from(image.array_stride_B);
|
||||
u64::from(view.base_array_layer) * image.array_stride_B;
|
||||
}
|
||||
|
||||
if tiling.is_tiled() {
|
||||
|
|
|
|||
|
|
@ -755,7 +755,7 @@ impl Image {
|
|||
|
||||
fn gb202_choose_pte_kind(_format: Format, _compressed: bool) -> u8 {
|
||||
use nvidia_headers::hwref::tu102::mmu::*;
|
||||
return NV_MMU_PTE_KIND_GENERIC_MEMORY.try_into().unwrap();
|
||||
NV_MMU_PTE_KIND_GENERIC_MEMORY.try_into().unwrap()
|
||||
}
|
||||
|
||||
fn tu102_choose_pte_kind(format: Format, compressed: bool) -> u8 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue