[Mesa-dev] [PATCH 1/4] shader_info: repack to avoid holes.
Dave Airlie
airlied at gmail.com
Tue Jan 30 23:41:56 UTC 2018
From: Dave Airlie <airlied at redhat.com>
This makes this got from 136->128 bytes.
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
src/compiler/shader_info.h | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/compiler/shader_info.h b/src/compiler/shader_info.h
index f6dedb8d624..2edf8220bdd 100644
--- a/src/compiler/shader_info.h
+++ b/src/compiler/shader_info.h
@@ -84,9 +84,6 @@ typedef struct shader_info {
/* Whether or not this shader ever uses textureGather() */
bool uses_texture_gather;
- /** Bitfield of which textures are used by texelFetch() */
- uint32_t textures_used_by_txf;
-
/**
* True if this shader uses the fddx/fddy opcodes.
*
@@ -94,18 +91,21 @@ typedef struct shader_info {
*/
bool uses_fddx_fddy;
+ /* Whether or not separate shader objects were used */
+ bool separate_shader;
+
+ /** Was this shader linked with any transform feedback varyings? */
+ bool has_transform_feedback_varyings;
+
+ /** Bitfield of which textures are used by texelFetch() */
+ uint32_t textures_used_by_txf;
+
/* The size of the gl_ClipDistance[] array, if declared. */
unsigned clip_distance_array_size;
/* The size of the gl_CullDistance[] array, if declared. */
unsigned cull_distance_array_size;
- /* Whether or not separate shader objects were used */
- bool separate_shader;
-
- /** Was this shader linked with any transform feedback varyings? */
- bool has_transform_feedback_varyings;
-
union {
struct {
/* Which inputs are doubles */
--
2.14.3
More information about the mesa-dev
mailing list