mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 12:10:09 +01:00
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:
parent
439eca951f
commit
ceb5ba9d1d
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue