mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 04:20:08 +01:00
pan/bi: Assert destinations are non-NULL
All uses of null destinations have been replaced with more appropriate constructs. We can now assume this throughout. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17794>
This commit is contained in:
parent
9ec157c482
commit
e5b3faf5aa
1 changed files with 2 additions and 2 deletions
|
|
@ -171,8 +171,8 @@ bi_validate_src_dest_count(bi_context *ctx)
|
|||
}
|
||||
}
|
||||
|
||||
for (unsigned d = I->nr_dests; d < ARRAY_SIZE(I->dest); ++d) {
|
||||
if (!bi_is_null(I->dest[d])) {
|
||||
for (unsigned d = 0; d < ARRAY_SIZE(I->dest); ++d) {
|
||||
if ((d < I->nr_dests) == bi_is_null(I->dest[d])) {
|
||||
succ = false;
|
||||
fprintf(stderr,
|
||||
"unexpected dest %u, expected %u sources\n",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue