Mesa (master): mesa: reorder gl_texture_unit
Dave Airlie
airlied at kemper.freedesktop.org
Fri Mar 20 22:15:03 UTC 2015
Module: Mesa
Branch: master
Commit: cbaff50828205188d738f5727261b8a95861ef38
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=cbaff50828205188d738f5727261b8a95861ef38
Author: Dave Airlie <airlied at redhat.com>
Date: Fri Mar 20 16:00:10 2015 +1000
mesa: reorder gl_texture_unit
drops size from 520 -> 512 bytes,
which then makes gl_texture_attrib go from 99984 to 98440.
Acked-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Alex Deucher alexander.deucher at amd.com>
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
src/mesa/main/mtypes.h | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index d9f0086..9a52b2f 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -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;
};
More information about the mesa-commit
mailing list