[Mesa-dev] [PATCH 4/4] vbo: Eliminate short-circuiting in invalid-start case.
Brian Paul
brianp at vmware.com
Wed Feb 8 07:00:18 PST 2012
On 02/08/2012 06:08 AM, Kenneth Graunke wrote:
> Now that we have a index_range_invalid flag, we can just use that rather
> than calling vbo_validated_drawrangeelements directly and returning.
>
> NOTE: This is a candidate for release branches.
>
> Signed-off-by: Kenneth Graunke<kenneth at whitecape.org>
> ---
> src/mesa/vbo/vbo_exec_array.c | 6 +-----
> 1 files changed, 1 insertions(+), 5 deletions(-)
>
> diff --git a/src/mesa/vbo/vbo_exec_array.c b/src/mesa/vbo/vbo_exec_array.c
> index 67073df..1a16c07 100644
> --- a/src/mesa/vbo/vbo_exec_array.c
> +++ b/src/mesa/vbo/vbo_exec_array.c
> @@ -889,11 +889,7 @@ vbo_exec_DrawRangeElementsBaseVertex(GLenum mode,
> start, end, basevertex, count, type, indices,
> ctx->Array.ArrayObj->_MaxElement - 1);
> }
> -
> - /* Just do an ordinary glDrawElementsBaseVertex(). */
> - vbo_validated_drawrangeelements(ctx, mode, GL_FALSE, ~0, ~0,
> - count, type, indices, basevertex, 1);
> - return;
> + index_bounds_valid = GL_FALSE;
> }
>
> /* NOTE: It's important that 'end' is a reasonable value.
Reviewed-by: Brian Paul <brianp at vmware.com>
BTW, do we have any piglit tests that exercise these cases?
-Brian
More information about the mesa-dev
mailing list