glsl: Include main/core.h.
authorChia-I Wu <olv@lunarg.com>
Mon, 23 Aug 2010 09:51:42 +0000 (17:51 +0800)
committerChia-I Wu <olv@lunarg.com>
Tue, 24 Aug 2010 03:27:29 +0000 (11:27 +0800)
Make glsl include only main/core.h from core mesa.

18 files changed:
src/glsl/ast_function.cpp
src/glsl/ast_to_hir.cpp
src/glsl/builtin_function.cpp
src/glsl/builtin_variables.h
src/glsl/builtins/tools/generate_builtins.py
src/glsl/glcpp/glcpp-parse.c
src/glsl/glcpp/glcpp-parse.y
src/glsl/glsl_parser_extras.cpp
src/glsl/glsl_types.cpp
src/glsl/hir_field_selection.cpp
src/glsl/ir.cpp
src/glsl/ir_constant_expression.cpp
src/glsl/ir_explog_to_explog2.cpp
src/glsl/ir_set_program_inouts.cpp
src/glsl/ir_variable.cpp
src/glsl/link_functions.cpp
src/glsl/linker.cpp
src/glsl/program.h

index f85b308c1bf6d337f3e8ad143ded3b22a5f39ea8..34b0f70d41e55243ea2faa6d0d7b0ea92a9f4eee 100644 (file)
@@ -25,7 +25,7 @@
 #include "ast.h"
 #include "glsl_types.h"
 #include "ir.h"
-#include "main/macros.h"
+#include "main/core.h" /* for MIN2 */
 
 static ir_rvalue *
 convert_component(ir_rvalue *src, const glsl_type *desired_type);
index 57e331742ea27802e771e558e5bae648b060de4b..64b142fa35d777244879787bd0f30c26ec7ea626 100644 (file)
@@ -49,8 +49,7 @@
  * parser (and lexer) sources.
  */
 
-#include "main/imports.h"
-#include "main/extensions.h"
+#include "main/core.h" /* for struct gl_extensions */
 #include "glsl_symbol_table.h"
 #include "glsl_parser_extras.h"
 #include "ast.h"
index 5471ba6020f0a743ab38e3de73e1e872b48f2130..a277ed6e8d9780940cc94dc8752cb4c1d08cffaf 100644 (file)
@@ -23,7 +23,7 @@
  */
 
 #include <stdio.h>
-#include "main/compiler.h"
+#include "main/core.h" /* for struct gl_shader */
 #include "glsl_parser_extras.h"
 #include "ir_reader.h"
 #include "program.h"
index 2ec7d621bbf53486bf9efdf54fb4401e6e9032dd..a7dbe480e96fe9d9dde9a418a641322f118ad2fa 100644 (file)
@@ -21,7 +21,7 @@
  * DEALINGS IN THE SOFTWARE.
  */
 
-#include "main/mtypes.h"
+#include "main/core.h" /* for slot numbers */
 
 struct builtin_variable {
    enum ir_variable_mode mode;
index 2a763d784b4121a5d0bec364bbd99c6d53ab8f12..c72b5b3bc1c4fb54e9bcfd3d38d1aab331df2cad 100755 (executable)
@@ -116,7 +116,7 @@ if __name__ == "__main__":
  */
 
 #include <stdio.h>
-#include "main/compiler.h"
+#include "main/core.h" /* for struct gl_shader */
 #include "glsl_parser_extras.h"
 #include "ir_reader.h"
 #include "program.h"
index 2c04d7d71bd54d94db318c0c191a1154ca45695d..91eb0bf9720c23bc9d263f84c116272416b69c9f 100644 (file)
 #include <inttypes.h>
 
 #include "glcpp.h"
-#include "main/mtypes.h"
+#include "main/core.h" /* for struct gl_extensions */
 
 #define glcpp_print(stream, str) stream = talloc_strdup_append(stream, str)
 #define glcpp_printf(stream, fmt, args, ...) \
index 3275496d99acab3b66a4dedbf00ab7b027a0422e..3c28edf688bd2efef74bae4ef7e1f45a8a86da54 100644 (file)
@@ -29,7 +29,7 @@
 #include <inttypes.h>
 
 #include "glcpp.h"
-#include "main/mtypes.h"
+#include "main/core.h" /* for struct gl_extensions */
 
 #define glcpp_print(stream, str) stream = talloc_strdup_append(stream, str)
 #define glcpp_printf(stream, fmt, args, ...) \
index b864218d50d3023afe3815b32594f067a922e0f9..bc56e4fcaf54d2674926f061d777ed9369a8ade6 100644 (file)
@@ -27,7 +27,7 @@
 
 extern "C" {
 #include <talloc.h>
-#include "main/mtypes.h"
+#include "main/core.h" /* for struct __GLcontextRec */
 }
 
 #include "ast.h"
index c488f5c2715e9a35ff902f1064de281ed9cc505d..1da2fd76dee38e1d4bcce526ad58397a646285ad 100644 (file)
 
 #include <cstdio>
 #include <stdlib.h>
-#include "main/compiler.h"
+#include "main/core.h" /* for Elements */
 #include "glsl_symbol_table.h"
 #include "glsl_parser_extras.h"
 #include "glsl_types.h"
 #include "builtin_types.h"
 extern "C" {
-#include "main/imports.h"
 #include "program/hash_table.h"
 }
 
index 23045ff18278b77841f03797b18f4597136b96d4..3c33127b5f88b004ec03996fc7faa50b78abc876 100644 (file)
@@ -22,7 +22,6 @@
  */
 
 #include "ir.h"
-#include "main/imports.h"
 #include "program/symbol_table.h"
 #include "glsl_parser_extras.h"
 #include "ast.h"
index 4622a1f939b0fd1f2647b0c9a4541ab79c7c84d9..e5ed10d3e429ec070b46d639845f1c96ccd10640 100644 (file)
@@ -21,8 +21,7 @@
  * DEALINGS IN THE SOFTWARE.
  */
 #include <string.h>
-#include "main/imports.h"
-#include "main/macros.h"
+#include "main/core.h" /* for MAX2 */
 #include "ir.h"
 #include "ir_visitor.h"
 #include "glsl_types.h"
index 942f19836074e37d8f1c0855594d1a8af9401d5e..f1c175c97aaa8f1f2279fd1221d2ea4b951fe399 100644 (file)
@@ -34,7 +34,7 @@
  */
 
 #include <math.h>
-#include "main/macros.h"
+#include "main/core.h" /* for MAX2, MIN2, CLAMP */
 #include "ir.h"
 #include "ir_visitor.h"
 #include "glsl_types.h"
index 9bf827108124312e9f72a470a29de525f103d332..78694a2029d4a66b15a0dcb6d0249d2baa731f83 100644 (file)
@@ -29,7 +29,7 @@
  * and log2 operations.
  */
 
-#include "main/imports.h"
+#include "main/core.h" /* for log2f on MSVC */
 #include "ir.h"
 #include "glsl_types.h"
 
index 534f602128b5732890a9f6812367ac5f440aa5cb..b3f1cc0d8b53205972560c0b6bea5d5134d5bbea 100644 (file)
@@ -35,7 +35,7 @@
  */
 
 extern "C" {
-#include "main/mtypes.h"
+#include "main/core.h" /* for struct gl_program */
 #include "program/hash_table.h"
 }
 #include "ir.h"
index 917c06743b45b8046b0396db0d17c7abaf6cb654..e638c9602f0b46d92b2839596620f7120f09b88b 100644 (file)
@@ -21,7 +21,6 @@
  * DEALINGS IN THE SOFTWARE.
  */
 
-#include "main/compiler.h"
 #include "ir.h"
 #include "glsl_parser_extras.h"
 #include "glsl_symbol_table.h"
index dfda05fcbe508fac69e773e78923bfc9e7421ff1..6374573e6142558523eaa09d43b0e613511de580 100644 (file)
@@ -29,7 +29,7 @@ extern "C" {
 #include <talloc.h>
 }
 
-#include "main/mtypes.h"
+#include "main/core.h"
 #include "glsl_symbol_table.h"
 #include "glsl_parser_extras.h"
 #include "ir.h"
index 38d19c4c71148efb6b7c0c0e80f80ab6f7552b9f..c5c8c9cdd6382fc2b5d1eb6a2110d5353dd5b362 100644 (file)
@@ -72,10 +72,7 @@ extern "C" {
 #include <talloc.h>
 }
 
-#include "main/compiler.h"
-#include "main/mtypes.h"
-#include "main/macros.h"
-#include "main/shaderobj.h"
+#include "main/core.h"
 #include "glsl_symbol_table.h"
 #include "ir.h"
 #include "program.h"
index ea2c4ab0ddaa99c59039faa3dc55e296fbb2793d..893169b6cc279c9014693c108ac57f9dbad9a40b 100644 (file)
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 
-#include <GL/gl.h>
-#include "main/mtypes.h"
-
-extern "C" {
-#include "program/prog_parameter.h"
-#include "program/prog_uniform.h"
-}
+#include "main/core.h"
 
 extern void
 link_shaders(GLcontext *ctx, struct gl_shader_program *prog);