From: Gustaw Smolarczyk Date: Thu, 30 Mar 2017 18:09:22 +0000 (+0200) Subject: mesa/main/ff_frag: Reduce the size of nr_enabled_units. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ceb5ba9d1dd3c8d9d31fd57e97f500b4a78ff7c6;p=mesa.git mesa/main/ff_frag: Reduce the size of nr_enabled_units. Since it holds values from 0 to 8, 4 bits will suffice. Signed-off-by: Gustaw Smolarczyk Reviewed-by: Eric Anholt Signed-off-by: Marek Olšák --- diff --git a/src/mesa/main/ff_fragment_shader.cpp b/src/mesa/main/ff_fragment_shader.cpp index d1e89abc085..9b00c36534a 100644 --- a/src/mesa/main/ff_fragment_shader.cpp +++ b/src/mesa/main/ff_fragment_shader.cpp @@ -100,7 +100,7 @@ struct mode_opt { }; struct state_key { - GLuint nr_enabled_units:8; + GLuint nr_enabled_units:4; GLuint separate_specular:1; GLuint fog_mode:2; /**< FOG_x */ GLuint inputs_available:12;