mesa: reorder gl_array_attrib
authorDave Airlie <airlied@redhat.com>
Fri, 20 Mar 2015 06:07:24 +0000 (16:07 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 20 Mar 2015 22:14:00 +0000 (08:14 +1000)
drops 80 bytes to 72.

Acked-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Alex Deucher alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/main/mtypes.h

index 627c1447da6b1e4f5e27a8a4d512049cdca70db1..72db275a9a0135e5759e477bf43a3e1bccb1edd9 100644 (file)
@@ -1710,6 +1710,9 @@ struct gl_array_attrib
    GLuint RestartIndex;
    /*@}*/
 
+   /** One of the DRAW_xxx flags, not consumed by drivers */
+   gl_draw_method DrawMethod;
+
    /* GL_ARB_vertex_buffer_object */
    struct gl_buffer_object *ArrayBufferObj;
 
@@ -1719,9 +1722,6 @@ struct gl_array_attrib
     */
    const struct gl_client_array **_DrawArrays; /**< 0..VERT_ATTRIB_MAX-1 */
 
-   /** One of the DRAW_xxx flags, not consumed by drivers */
-   gl_draw_method DrawMethod;
-
    /** Legal array datatypes and the API for which they have been computed */
    GLbitfield LegalTypesMask;
    gl_api LegalTypesMaskAPI;