[Mesa-dev] [PATCH] st/mesa: update arrays when the current attrib has been updated

Marek Olšák maraeo at gmail.com
Thu Mar 26 13:27:35 PDT 2015


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

Marek

On Thu, Mar 26, 2015 at 8:14 PM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
> Fixes the recently-sent gl-2.0-vertex-const-attr piglit test. Makes sure
> to revalidate arrays when only the current attribute has been updated
> via glVertexAttrib*.
>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89754
> Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
> ---
>  src/mesa/state_tracker/st_atom_array.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/mesa/state_tracker/st_atom_array.c b/src/mesa/state_tracker/st_atom_array.c
> index 9b52f97..d4fb8b8 100644
> --- a/src/mesa/state_tracker/st_atom_array.c
> +++ b/src/mesa/state_tracker/st_atom_array.c
> @@ -598,7 +598,7 @@ static void update_array(struct st_context *st)
>  const struct st_tracked_state st_update_array = {
>     "st_update_array",                                  /* name */
>     {                                                   /* dirty */
> -      0,                                                /* mesa */
> +      _NEW_CURRENT_ATTRIB,                              /* mesa */
>        ST_NEW_VERTEX_ARRAYS | ST_NEW_VERTEX_PROGRAM,     /* st */
>     },
>     update_array                                                /* update */
> --
> 2.0.5
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list