summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2011-04-15 11:13:44 -0700
committerEric Anholt <eric@anholt.net>2011-04-18 11:19:53 -0700
commit348ea34d0310cc862ad3c078d8703c6c1f0b602f (patch)
tree4675d42da7fccbd5dc86e89a07a16c6e123a20cc
parent91226ce6487e9ea9c21f5a269f63cf98affa8ef4 (diff)
mesa: Repack single-byte fields in gl_renderbuffer.
Cuts 8 out of 120 bytes in the struct. Reviewed-by: Brian Paul <brianp@vmware.com>
-rw-r--r--src/mesa/main/mtypes.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index 6ca7405b5c..39fde0a38d 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -2413,18 +2413,18 @@ struct gl_renderbuffer
GLuint Width, Height;
GLboolean Purgeable; /**< Is the buffer purgeable under memory pressure? */
+ GLboolean AttachedAnytime; /**< TRUE if it was attached to a framebuffer */
+
+ GLubyte NumSamples;
+
GLenum InternalFormat; /**< The user-specified format */
GLenum _BaseFormat; /**< Either GL_RGB, GL_RGBA, GL_DEPTH_COMPONENT or
GL_STENCIL_INDEX. */
gl_format Format; /**< The actual renderbuffer memory format */
- GLubyte NumSamples;
-
GLenum DataType; /**< Type of values passed to the Get/Put functions */
GLvoid *Data; /**< This may not be used by some kinds of RBs */
- GLboolean AttachedAnytime; /**< TRUE if it was attached to a framebuffer */
-
/* Used to wrap one renderbuffer around another: */
struct gl_renderbuffer *Wrapped;