This won't actually do anything because the compiler still rounds the size of the structure upto a multiple of sizeof(int) for alignment purposes. With your v2 patch applied, I still get
(gdb) print sizeof(ir_state_slot) $1 = 24 which is 6*sizeof(int). On 05/27/2014 10:09 PM, Tapani Pälli wrote: > Signed-off-by: Tapani Pälli <[email protected]> > --- > src/glsl/ir.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/glsl/ir.h b/src/glsl/ir.h > index ef4a12d..bc19208 100644 > --- a/src/glsl/ir.h > +++ b/src/glsl/ir.h > @@ -357,7 +357,7 @@ depth_layout_string(ir_depth_layout layout); > */ > struct ir_state_slot { > int tokens[5]; > - int swizzle; > + uint8_t swizzle; > }; > > > _______________________________________________ mesa-dev mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-dev
