nak: use std::mem::size_of_val(data) instead of open-coding it

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38807>
This commit is contained in:
Eric Engestrom 2025-12-04 17:19:31 +01:00
parent de7d3cdbda
commit eef174b56b

View file

@ -614,7 +614,7 @@ impl Runner {
data.len().try_into().unwrap(),
stride.try_into().unwrap(),
data.as_mut_ptr().cast(),
data.len() * stride,
size_of_val(data),
)
}
}