[Mesa-dev] [PATCH 09/17] st/mesa: use PIPE_MAX_ATTRIBS as the max number of vertex buffers

Marek Olšák maraeo at gmail.com
Mon May 1 12:52:58 UTC 2017


From: Marek Olšák <marek.olsak at amd.com>

---
 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 92485bd..be8c13c 100644
--- a/src/mesa/state_tracker/st_atom_array.c
+++ b/src/mesa/state_tracker/st_atom_array.c
@@ -625,21 +625,21 @@ setup_non_interleaved_attribs(struct st_context *st,
 
    return TRUE;
 }
 
 void st_update_array(struct st_context *st)
 {
    struct gl_context *ctx = st->ctx;
    const struct gl_vertex_array **arrays = ctx->Array._DrawArrays;
    const struct st_vertex_program *vp;
    const struct st_vp_variant *vpv;
-   struct pipe_vertex_buffer vbuffer[PIPE_MAX_SHADER_INPUTS];
+   struct pipe_vertex_buffer vbuffer[PIPE_MAX_ATTRIBS];
    struct pipe_vertex_element velements[PIPE_MAX_ATTRIBS];
    unsigned num_vbuffers;
 
    st->vertex_array_out_of_memory = FALSE;
 
    /* No drawing has been done yet, so do nothing. */
    if (!arrays)
       return;
 
    /* vertex program validation must be done before this */
-- 
2.7.4



More information about the mesa-dev mailing list