[Mesa-dev] [PATCH 1/3] mesa/main: Use correct constant in ff cache key.
Gustaw Smolarczyk
wielkiegie at gmail.com
Mon Mar 27 17:24:13 UTC 2017
Since fixed-function shaders are restricted to MAX_TEXTURE_COORD_UNITS
texture units, use this constant instead of MAX_TEXTURE_UNITS. This
reduces the array size from 32 to 8.
Signed-off-by: Gustaw Smolarczyk <wielkiegie at gmail.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 be382fa3ae..8af7d1cfb7 100644
--- a/src/mesa/main/ff_fragment_shader.cpp
+++ b/src/mesa/main/ff_fragment_shader.cpp
@@ -123,7 +123,7 @@ struct state_key {
struct mode_opt OptRGB[MAX_COMBINER_TERMS];
struct mode_opt OptA[MAX_COMBINER_TERMS];
- } unit[MAX_TEXTURE_UNITS];
+ } unit[MAX_TEXTURE_COORD_UNITS];
};
#define FOG_NONE 0
--
2.12.1
More information about the mesa-dev
mailing list