[Mesa-dev] [PATCH] mesa/vbo: reduce prim array size
Nicolai Hähnle
nhaehnle at gmail.com
Tue May 2 11:03:14 UTC 2017
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)) {
>
--
Lerne, wie die Welt wirklich ist,
Aber vergiss niemals, wie sie sein sollte.
More information about the mesa-dev
mailing list