[Mesa-dev] [PATCH 3/3] mesa/bindless: reorder gl_bindless_image gl_bindless_sampler.
Dave Airlie
airlied at gmail.com
Sun Sep 3 10:06:03 UTC 2017
From: Dave Airlie <airlied at redhat.com>
This makes these use 16-bytes instead of 24-bytes.
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
src/mesa/main/mtypes.h | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index 1913567..ac75ee5 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -2000,12 +2000,12 @@ struct gl_bindless_sampler
/** Texture unit (set by glUniform1()). */
GLubyte unit;
- /** Texture Target (TEXTURE_1D/2D/3D/etc_INDEX). */
- gl_texture_index target;
-
/** Whether this bindless sampler is bound to a unit. */
GLboolean bound;
+ /** Texture Target (TEXTURE_1D/2D/3D/etc_INDEX). */
+ gl_texture_index target;
+
/** Pointer to the base of the data. */
GLvoid *data;
};
@@ -2018,12 +2018,12 @@ struct gl_bindless_image
/** Image unit (set by glUniform1()). */
GLubyte unit;
- /** Access qualifier (GL_READ_WRITE, GL_READ_ONLY, GL_WRITE_ONLY) */
- GLenum access;
-
/** Whether this bindless image is bound to a unit. */
GLboolean bound;
+ /** Access qualifier (GL_READ_WRITE, GL_READ_ONLY, GL_WRITE_ONLY) */
+ GLenum access;
+
/** Pointer to the base of the data. */
GLvoid *data;
};
--
2.9.5
More information about the mesa-dev
mailing list