[Mesa-dev] [PATCH 3/9] st/mesa: make user index buffers optional
Marek Olšák
maraeo at gmail.com
Mon Apr 30 15:25:08 PDT 2012
On Mon, Apr 30, 2012 at 11:31 PM, Brian Paul <brianp at vmware.com> wrote:
> On 04/30/2012 02:37 PM, Marek Olšák wrote:
>> One of the codepaths in u_vbuf uses the translate module, which
>> usually takes a new vertex buffer slot. If you receive this in
>> set_vertex_buffers: count=4, buffers={NULL, NULL, NULL, buffer}, it
>> means the last buffer probably comes from translate and the other 3
>> were originally user buffers or buffers with an unaligned offset or
>> stride, which u_vbuf never lets through, so they end up being NULL.
>> The NULL buffers are never used by the vertex element state.
>
>
> OK, in this particular case, the arrays are in user memory.
FYI, I just committed another fix in the branch which might help.
Marek
More information about the mesa-dev
mailing list