mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
jay: Assert that source is not null in jay_copy_strided
Catch bugs earlier. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40960>
This commit is contained in:
parent
e84cba531b
commit
a79931421c
1 changed files with 2 additions and 0 deletions
|
|
@ -603,6 +603,8 @@ _jay_SEND(jay_builder *b, const struct jayb_send_params p)
|
|||
static inline void
|
||||
jay_copy_strided(jay_builder *b, jay_def dst, jay_def src, bool src_strided)
|
||||
{
|
||||
assert(!jay_is_null(src));
|
||||
|
||||
unsigned src_stride = src_strided ? jay_ugpr_per_grf(b->shader) : 1;
|
||||
uint32_t n = MIN2(jay_num_values(dst), jay_num_values(src) / src_stride);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue