projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
439eca9
)
mesa/main/ff_frag: Reduce the size of nr_enabled_units.
author
Gustaw Smolarczyk
<wielkiegie@gmail.com>
Thu, 30 Mar 2017 18:09:22 +0000
(20:09 +0200)
committer
Marek Olšák
<marek.olsak@amd.com>
Sat, 8 Apr 2017 18:29:58 +0000
(20:29 +0200)
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>
src/mesa/main/ff_fragment_shader.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/main/ff_fragment_shader.cpp
b/src/mesa/main/ff_fragment_shader.cpp
index d1e89abc085a37f967b0c997c81a8c4449e8595f..9b00c36534a0a8a944dd5ae286eeedfff12b9b16 100644
(file)
--- 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;