[Mesa-dev] [PATCH 1/2] glsl: reduce size of glsl_type::base_type
Tapani Pälli
tapani.palli at intel.com
Tue May 27 22:09:47 PDT 2014
Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
---
src/glsl/glsl_types.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/glsl/glsl_types.h b/src/glsl/glsl_types.h
index dca5492..e6aae26a 100644
--- a/src/glsl/glsl_types.h
+++ b/src/glsl/glsl_types.h
@@ -29,6 +29,7 @@
#include <string.h>
#include <assert.h>
#include "main/mtypes.h" /* for gl_texture_index, C++'s enum rules are broken */
+#include "main/compiler.h"
#ifdef __cplusplus
extern "C" {
@@ -47,7 +48,7 @@ _mesa_glsl_release_types(void);
}
#endif
-enum glsl_base_type {
+enum PACKED glsl_base_type {
GLSL_TYPE_UINT = 0,
GLSL_TYPE_INT,
GLSL_TYPE_FLOAT,
--
1.8.3.1
More information about the mesa-dev
mailing list