mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-19 02:20:27 +01:00
Modify assert to reflect rebase criteria
This commit is contained in:
parent
5368ae5ec3
commit
47d463e954
1 changed files with 9 additions and 1 deletions
|
|
@ -439,7 +439,15 @@ GLboolean brw_upload_vertices( struct brw_context *brw,
|
|||
}
|
||||
|
||||
upload[nr_uploads++] = input;
|
||||
assert(min_index == 0);
|
||||
|
||||
/* We rebase drawing to start at element zero only when
|
||||
* varyings are not in vbos, which means we can end up
|
||||
* uploading non-varying arrays (stride != 0) when min_index
|
||||
* is zero. This doesn't matter as the amount to upload is
|
||||
* the same for these arrays whether the draw call is rebased
|
||||
* or not - we just have to upload the one element.
|
||||
*/
|
||||
assert(min_index == 0 || input->glarray->StrideB == 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue