Mesa (master): mesa: reorder gl_image_unit
Dave Airlie
airlied at kemper.freedesktop.org
Fri Mar 20 22:15:03 UTC 2015
Module: Mesa
Branch: master
Commit: 2c016ed35fff36e39a457db8efbc82ec90d4f5da
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2c016ed35fff36e39a457db8efbc82ec90d4f5da
Author: Dave Airlie <airlied at redhat.com>
Date: Fri Mar 20 17:01:55 2015 +1000
mesa: reorder gl_image_unit
reduces 40->32
but reduces use in context from 7680->6144.
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 | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index f8f21d8..42075aa 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -4167,6 +4167,13 @@ struct gl_image_unit
GLboolean Layered;
/**
+ * GL_TRUE if the state of this image unit is valid and access from
+ * the shader is allowed. Otherwise loads from this unit should
+ * return zero and stores should have no effect.
+ */
+ GLboolean _Valid;
+
+ /**
* Layer of the texture object bound to this unit, or zero if the
* whole level is bound.
*/
@@ -4190,12 +4197,6 @@ struct gl_image_unit
*/
mesa_format _ActualFormat;
- /**
- * GL_TRUE if the state of this image unit is valid and access from
- * the shader is allowed. Otherwise loads from this unit should
- * return zero and stores should have no effect.
- */
- GLboolean _Valid;
};
/**
More information about the mesa-commit
mailing list