mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
i965: Add a comment explaining one of the brw_draw_upload.c loops.
Reviewed-and-tested-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
0334e8dc25
commit
7f9e1a7720
1 changed files with 4 additions and 0 deletions
|
|
@ -411,6 +411,10 @@ static void brw_prepare_vertices(struct brw_context *brw)
|
|||
intel_buffer_object(glarray->BufferObj);
|
||||
int k;
|
||||
|
||||
/* If we have a VB set to be uploaded for this buffer object
|
||||
* already, reuse that VB state so that we emit fewer
|
||||
* relocations.
|
||||
*/
|
||||
for (k = 0; k < i; k++) {
|
||||
const struct gl_client_array *other = brw->vb.enabled[k]->glarray;
|
||||
if (glarray->BufferObj == other->BufferObj &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue