Mesa (master): compiler: move pointers to the start of shader_info

Timothy Arceri tarceri at kemper.freedesktop.org
Thu Aug 24 01:22:16 UTC 2017


Module: Mesa
Branch: master
Commit: 3ea3f757237d977adfb69293654522647d1812b3
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3ea3f757237d977adfb69293654522647d1812b3

Author: Timothy Arceri <tarceri at itsqueeze.com>
Date:   Wed Aug 23 09:10:27 2017 +1000

compiler: move pointers to the start of shader_info

This will allow us to easily skip them when writting the struct
to disk cache.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>

---

 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
@@ -32,14 +32,14 @@ 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 */




More information about the mesa-commit mailing list