mesa: reorder gl_texture_unit
authorDave Airlie <airlied@redhat.com>
Fri, 20 Mar 2015 06:00:10 +0000 (16:00 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 20 Mar 2015 22:13:51 +0000 (08:13 +1000)
drops size from 520 -> 512 bytes,
which then makes gl_texture_attrib go from 99984 to 98440.

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 d9f008641fc2d7a87bdc4cab7985a85c38b655de..9a52b2ffb4260e3adeefff6e0e4849c649ad412f 100644 (file)
@@ -1349,6 +1349,9 @@ struct gl_texture_unit
 
    GLfloat LodBias;            /**< for biasing mipmap levels */
 
+   /** Texture targets that have a non-default texture bound */
+   GLbitfield _BoundTextures;
+
    /** Current sampler object (GL_ARB_sampler_objects) */
    struct gl_sampler_object *Sampler;
 
@@ -1375,8 +1378,6 @@ struct gl_texture_unit
    /** Points to highest priority, complete and enabled texture object */
    struct gl_texture_object *_Current;
 
-   /** Texture targets that have a non-default texture bound */
-   GLbitfield _BoundTextures;
 };