From: Dave Airlie Date: Sun, 3 Sep 2017 11:08:34 +0000 (+1000) Subject: mesa/mtypes: reorganise gl_shader X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=449ac347dd32cbe64c320c3f7e0522505235bec6;p=mesa.git mesa/mtypes: reorganise gl_shader This reduces this from 200->182 bytes. Reviewed-by: Thomas Helland Reviewed-by: Marek Olšák Reviewed-by: Timothy Arceri Reviewed-by: Samuel Pitoiset Signed-off-by: Dave Airlie --- diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 34da6b92e0b..2dab5942ca6 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -2567,9 +2567,10 @@ struct gl_shader GLchar *Label; /**< GL_KHR_debug */ unsigned char sha1[20]; /**< SHA1 hash of pre-processed source */ GLboolean DeletePending; - enum gl_compile_status CompileStatus; bool IsES; /**< True if this shader uses GLSL ES */ + enum gl_compile_status CompileStatus; + #ifdef DEBUG unsigned SourceChecksum; /**< for debug/logging purposes */ #endif @@ -2581,14 +2582,14 @@ struct gl_shader unsigned Version; /**< GLSL version used for linking */ - struct exec_list *ir; - struct glsl_symbol_table *symbols; - /** * A bitmask of gl_advanced_blend_mode values */ GLbitfield BlendSupport; + struct exec_list *ir; + struct glsl_symbol_table *symbols; + /** * Whether early fragment tests are enabled as defined by * ARB_shader_image_load_store.