"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/mesa/main/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.

draw.c  (mesa-21.2.0-rc1.tar.xz):draw.c  (mesa-21.2.0-rc2.tar.xz)
skipping to change at line 1061 skipping to change at line 1061
void void
_mesa_draw_gallium_multimode_fallback(struct gl_context *ctx, _mesa_draw_gallium_multimode_fallback(struct gl_context *ctx,
struct pipe_draw_info *info, struct pipe_draw_info *info,
unsigned drawid_offset, unsigned drawid_offset,
const struct pipe_draw_start_count_bias *dra ws, const struct pipe_draw_start_count_bias *dra ws,
const unsigned char *mode, const unsigned char *mode,
unsigned num_draws) unsigned num_draws)
{ {
unsigned i, first; unsigned i, first;
/* 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];
ctx->Driver.DrawGallium(ctx, info, drawid_offset, &draws[first], i - fi rst); ctx->Driver.DrawGallium(ctx, info, drawid_offset, &draws[first], i - fi rst);
first = i; first = i;
} }
} }
} }
/** /**
 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)