[Mesa-dev] [PATCH] mesa/vbo: reduce prim array size

Bartosz Tomczyk bartosz.tomczyk86 at gmail.com
Tue May 2 11:05:50 UTC 2017


Sure, I will send updated patch soon.


On 02.05.2017 13:03, Nicolai Hähnle wrote:
> On 02.05.2017 12:37, Bartosz Tomczyk wrote:
>> We always use only single element.
>
> Can you just change prim to not be an array at all in that case?
>
> Thanks,
> Nicolai
>
>
>> ---
>>  src/mesa/vbo/vbo_exec_array.c | 4 ++--
>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/src/mesa/vbo/vbo_exec_array.c 
>> b/src/mesa/vbo/vbo_exec_array.c
>> index 15382eaaae..cbef610d96 100644
>> --- a/src/mesa/vbo/vbo_exec_array.c
>> +++ b/src/mesa/vbo/vbo_exec_array.c
>> @@ -462,7 +462,7 @@ vbo_draw_arrays(struct gl_context *ctx, GLenum 
>> mode, GLint start,
>>                  GLuint drawID)
>>  {
>>     struct vbo_context *vbo = vbo_context(ctx);
>> -   struct _mesa_prim prim[2];
>> +   struct _mesa_prim prim[1];
>>
>>     if (skip_validated_draw(ctx))
>>        return;
>> @@ -1409,7 +1409,7 @@ vbo_draw_transform_feedback(struct gl_context 
>> *ctx, GLenum mode,
>>                              GLuint stream, GLuint numInstances)
>>  {
>>     struct vbo_context *vbo = vbo_context(ctx);
>> -   struct _mesa_prim prim[2];
>> +   struct _mesa_prim prim[1];
>>
>>     if (!_mesa_validate_DrawTransformFeedback(ctx, mode, obj, stream,
>>                                               numInstances)) {
>>
>
>



More information about the mesa-dev mailing list