[Mesa-dev] [PATCH 6.5/8] compiler: move pointers to the start of shader_info

Timothy Arceri tarceri at itsqueeze.com
Tue Aug 22 23:13:28 UTC 2017


This will allow us to easily skip them when writting the struct
to disk cache.
---
 src/compiler/shader_info.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/compiler/shader_info.h b/src/compiler/shader_info.h
index a67084156d..38413940d6 100644
--- a/src/compiler/shader_info.h
+++ b/src/compiler/shader_info.h
@@ -25,28 +25,28 @@
 #ifndef SHADER_INFO_H
 #define SHADER_INFO_H
 
 #include "shader_enums.h"
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
 typedef struct shader_info {
-   /** The shader stage, such as MESA_SHADER_VERTEX. */
-   gl_shader_stage stage;
-
    const char *name;
 
    /* Descriptive name provided by the client; may be NULL */
    const char *label;
 
+   /** The shader stage, such as MESA_SHADER_VERTEX. */
+   gl_shader_stage stage;
+
    /* Number of textures used by this shader */
    unsigned num_textures;
    /* Number of uniform buffers used by this shader */
    unsigned num_ubos;
    /* Number of atomic buffers used by this shader */
    unsigned num_abos;
    /* Number of shader storage buffers used by this shader */
    unsigned num_ssbos;
    /* Number of images used by this shader */
    unsigned num_images;
-- 
2.13.4



More information about the mesa-dev mailing list