Mesa (master): mesa/main/ff_frag: Reduce the size of nr_enabled_units.
Marek Olšák
mareko at kemper.freedesktop.org
Sat Apr 8 20:08:03 UTC 2017
Module: Mesa
Branch: master
Commit: ceb5ba9d1dd3c8d9d31fd57e97f500b4a78ff7c6
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ceb5ba9d1dd3c8d9d31fd57e97f500b4a78ff7c6
Author: Gustaw Smolarczyk <wielkiegie at gmail.com>
Date: Thu Mar 30 20:09:22 2017 +0200
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 at gmail.com>
Reviewed-by: Eric Anholt <eric at anholt.net>
Signed-off-by: Marek Olšák <marek.olsak at amd.com>
---
src/mesa/main/ff_fragment_shader.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/main/ff_fragment_shader.cpp b/src/mesa/main/ff_fragment_shader.cpp
index d1e89abc08..9b00c36534 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;
More information about the mesa-commit
mailing list