aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/ff_fragment_shader.cpp
diff options
context:
space:
mode:
authorGustaw Smolarczyk <[email protected]>2017-03-30 20:09:22 +0200
committerMarek Olšák <[email protected]>2017-04-08 20:29:58 +0200
commitceb5ba9d1dd3c8d9d31fd57e97f500b4a78ff7c6 (patch)
tree07918d6e8baf2f5ae910279499b7443b4c4223bb /src/mesa/main/ff_fragment_shader.cpp
parent439eca951f7d4e58caa76e9f89d57733a6dfa470 (diff)
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 <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Signed-off-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/main/ff_fragment_shader.cpp')
-rw-r--r--src/mesa/main/ff_fragment_shader.cpp2
1 files changed, 1 insertions, 1 deletions
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;