diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-11-22 02:45:43 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-11-22 02:45:43 +0000 |
commit | 2ba37c52131b39d6d0ec2452a95ea7a9d7ea6b8f (patch) | |
tree | 2da543a02115219d34deffe911226f3f85f443ac /lib/mesa/src/gallium/auxiliary/draw/draw_pt.c | |
parent | e7a2786346bc6e40b27248cf122036d8c701fa22 (diff) |
import Mesa 11.0.6
Diffstat (limited to 'lib/mesa/src/gallium/auxiliary/draw/draw_pt.c')
-rw-r--r-- | lib/mesa/src/gallium/auxiliary/draw/draw_pt.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/mesa/src/gallium/auxiliary/draw/draw_pt.c b/lib/mesa/src/gallium/auxiliary/draw/draw_pt.c index be76a30f9..3236e523a 100644 --- a/lib/mesa/src/gallium/auxiliary/draw/draw_pt.c +++ b/lib/mesa/src/gallium/auxiliary/draw/draw_pt.c @@ -109,7 +109,7 @@ draw_pt_arrays(struct draw_context *draw, frontend = draw->pt.frontend; - if (frontend) { + if (frontend ) { if (draw->pt.prim != prim || draw->pt.opt != opt) { /* In certain conditions switching primitives requires us to flush * and validate the different stages. One example is when smooth @@ -443,7 +443,7 @@ resolve_draw_info(const struct pipe_draw_info *raw_info, info->count = target->internal_offset / vertex_buffer->stride; /* Stream output draw can not be indexed */ - debug_assert(!info->index_size); + debug_assert(!info->indexed); info->max_index = info->count - 1; } } @@ -473,7 +473,7 @@ draw_vbo(struct draw_context *draw, info = &resolved_info; assert(info->instance_count > 0); - if (info->index_size) + if (info->indexed) assert(draw->pt.user.elts); count = info->count; @@ -481,7 +481,7 @@ draw_vbo(struct draw_context *draw, draw->pt.user.eltBias = info->index_bias; draw->pt.user.min_index = info->min_index; draw->pt.user.max_index = info->max_index; - draw->pt.user.eltSize = info->index_size ? draw->pt.user.eltSizeIB : 0; + draw->pt.user.eltSize = info->indexed ? draw->pt.user.eltSizeIB : 0; if (0) debug_printf("draw_vbo(mode=%u start=%u count=%u):\n", @@ -524,7 +524,7 @@ draw_vbo(struct draw_context *draw, #endif { if (index_limit == 0) { - /* one of the buffers is too small to do any valid drawing */ + /* one of the buffers is too small to do any valid drawing */ debug_warning("draw: VBO too small to draw anything\n"); util_fpstate_set(fpstate); return; |