[Mesa-stable] [Mesa-dev] [PATCH 02/13] vbo: Declare the index range invalid for DrawTransformFeedback

Marek Olšák maraeo at gmail.com
Thu May 19 11:01:19 UTC 2016


Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Thu, May 19, 2016 at 9:20 AM, Jason Ekstrand <jason at jlekstrand.net> wrote:
> Right now, we're setting the range to [0, 0] which is obviously bogus.
> Instead, we should set it to be invalid like we do for DrawIndirect.
>
> Cc: "10.2" <mesa-stable at lists.freedesktop.org>
> ---
>  src/mesa/vbo/vbo_exec_array.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/mesa/vbo/vbo_exec_array.c b/src/mesa/vbo/vbo_exec_array.c
> index 3b45eb5..87ed7f7 100644
> --- a/src/mesa/vbo/vbo_exec_array.c
> +++ b/src/mesa/vbo/vbo_exec_array.c
> @@ -1323,7 +1323,7 @@ vbo_draw_transform_feedback(struct gl_context *ctx, GLenum mode,
>      * will be rendered. */
>
>     vbo->draw_prims(ctx, prim, 1, NULL,
> -                   GL_TRUE, 0, 0, obj, stream, NULL);
> +                   GL_FALSE, ~0, ~0, obj, stream, NULL);
>
>     if (MESA_DEBUG_FLAGS & DEBUG_ALWAYS_FLUSH) {
>        _mesa_flush(ctx);
> --
> 2.5.0.400.gff86faf
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-stable mailing list