mesa/mtypes: repack display list structs.
authorDave Airlie <airlied@redhat.com>
Sun, 3 Sep 2017 10:37:01 +0000 (20:37 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 5 Sep 2017 20:12:53 +0000 (06:12 +1000)
This reduces each of these by 8 bytes.

Reviewed-by: Thomas Helland <thomashelland90@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/main/mtypes.h

index a72a3b2ccd578071659bcff7969c29301cc5d028..34da6b92e0ba86091bfb1eaaa8c2fdd71745f03c 100644 (file)
@@ -4342,8 +4342,8 @@ union gl_dlist_node;
 struct gl_display_list
 {
    GLuint Name;
-   GLchar *Label;     /**< GL_KHR_debug */
    GLbitfield Flags;  /**< DLIST_x flags */
+   GLchar *Label;     /**< GL_KHR_debug */
    /** The dlist commands are in a linked list of nodes */
    union gl_dlist_node *Head;
 };
@@ -4354,11 +4354,10 @@ struct gl_display_list
  */
 struct gl_dlist_state
 {
-   GLuint CallDepth;           /**< Current recursion calling depth */
-
    struct gl_display_list *CurrentList; /**< List currently being compiled */
    union gl_dlist_node *CurrentBlock; /**< Pointer to current block of nodes */
    GLuint CurrentPos;          /**< Index into current block of nodes */
+   GLuint CallDepth;           /**< Current recursion calling depth */
 
    GLvertexformat ListVtxfmt;