[Mesa-dev] [PATCH 1/3] gallium/util: remove unused parameter nr_vertex_buffers in util_draw_max_index

Jose Fonseca jfonseca at vmware.com
Sat May 12 11:31:44 PDT 2012



----- Original Message -----
> On Sat, May 12, 2012 at 6:28 PM, Jose Fonseca <jfonseca at vmware.com>
> wrote:
> > This may come handy in the future, so instead of changing the
> > prototype, please just add a (void)nr_vertex_buffers in the body.
> 
> It doesn't produce a warning, so I'll just leave it the way it is.
> 
> FWIW, once we add the start_slot parameter into set_vertex_buffers,
> nr_vertex_buffers will very likely disappear from most places,
> because
> each vertex buffer slot will be a separate and independent state. The
> only things that will matter to drivers are:
> 1) which slots are used by the vertex element state
> 2) which slots are enabled (e.g. a non-null resource is bound)

I see. You can go ahead then.

Jose


More information about the mesa-dev mailing list