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 <wielkiegie@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
Gustaw Smolarczyk 2017-03-30 20:09:22 +02:00 committed by Marek Olšák
parent 439eca951f
commit ceb5ba9d1d

View file

@ -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;