"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/mesa/state_tracker/st_draw.c" between
mesa-21.2.0-rc1.tar.xz and mesa-21.2.0-rc2.tar.xz

About: Mesa is an open-source implementation of the OpenGL specification - a system for rendering interactive 3D graphics (main library code). Release candidate.

st_draw.c  (mesa-21.2.0-rc1.tar.xz):st_draw.c  (mesa-21.2.0-rc2.tar.xz)
skipping to change at line 206 skipping to change at line 206
struct st_context *st = st_context(ctx); struct st_context *st = st_context(ctx);
prepare_draw(st, ctx); prepare_draw(st, ctx);
if (!prepare_indexed_draw(st, ctx, info, draws, num_draws)) if (!prepare_indexed_draw(st, ctx, info, draws, num_draws))
return; return;
unsigned i, first; unsigned i, first;
struct cso_context *cso = st->cso_context; struct cso_context *cso = st->cso_context;
/* Find consecutive draws where mode and base_vertex don't vary. */ /* Find consecutive draws where mode doesn't vary. */
for (i = 0, first = 0; i <= num_draws; i++) { for (i = 0, first = 0; i <= num_draws; i++) {
if (i == num_draws || mode[i] != mode[first]) { if (i == num_draws || mode[i] != mode[first]) {
info->mode = mode[first]; info->mode = mode[first];
cso_multi_draw(cso, info, drawid_offset, &draws[first], i - first); cso_multi_draw(cso, info, drawid_offset, &draws[first], i - first);
first = i; first = i;
/* We can pass the reference only once. st_buffer_object keeps /* We can pass the reference only once. st_buffer_object keeps
* the reference alive for later draws. * the reference alive for later draws.
*/ */
info->take_index_buffer_ownership = false; info->take_index_buffer_ownership = false;
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)