mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-05 21:10:43 +02:00
agx: add more asserts
sigh, C Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28483>
This commit is contained in:
parent
c0d47d827a
commit
da18ac5dfa
1 changed files with 2 additions and 0 deletions
|
|
@ -1287,6 +1287,7 @@ agx_ra(agx_context *ctx)
|
|||
continue;
|
||||
assert(ins->src[i].size == ins->src[0].size);
|
||||
|
||||
assert(n < ins->nr_srcs);
|
||||
copies[n++] = (struct agx_copy){
|
||||
.dest = base + (i * width),
|
||||
.src = ins->src[i],
|
||||
|
|
@ -1318,6 +1319,7 @@ agx_ra(agx_context *ctx)
|
|||
src.channels_m1 = 0;
|
||||
src.value += (i * width);
|
||||
|
||||
assert(n < ARRAY_SIZE(copies));
|
||||
copies[n++] = (struct agx_copy){
|
||||
.dest = ins->dest[i].value,
|
||||
.src = src,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue