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:
@@ -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),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user