From 3ea3f757237d977adfb69293654522647d1812b3 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Wed, 23 Aug 2017 09:10:27 +1000 Subject: [PATCH] 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 --- 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 a67084156dd..38413940d67 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 */ -- 2.30.2