From: Ian Romanick Date: Mon, 31 Oct 2011 21:04:10 +0000 (-0700) Subject: glsl: Put all bitfields in ir_variable together for better packing X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=22af08b410f47227ea27b06cce097ccbe0130540;p=mesa.git glsl: Put all bitfields in ir_variable together for better packing The diff looks weird because ir_variable::depth_layout was between the last two bitfields in the structure. Signed-off-by: Ian Romanick Reviewed-by: Kenneth Graunke Acked-by: Paul Berry --- diff --git a/src/glsl/ir.h b/src/glsl/ir.h index 404d4cffa91..abbf4556978 100644 --- a/src/glsl/ir.h +++ b/src/glsl/ir.h @@ -355,14 +355,6 @@ public: unsigned pixel_center_integer:1; /*@}*/ - /** - * \brief Layout qualifier for gl_FragDepth. - * - * This is not equal to \c ir_depth_layout_none if and only if this - * variable is \c gl_FragDepth and a layout qualifier is specified. - */ - ir_depth_layout depth_layout; - /** * Was the location explicitly set in the shader? * @@ -372,6 +364,14 @@ public: */ unsigned explicit_location:1; + /** + * \brief Layout qualifier for gl_FragDepth. + * + * This is not equal to \c ir_depth_layout_none if and only if this + * variable is \c gl_FragDepth and a layout qualifier is specified. + */ + ir_depth_layout depth_layout; + /** * Storage location of the base of this variable *