glsl: Include main/core.h.

Make glsl include only main/core.h from core mesa.
This commit is contained in:
Chia-I Wu
2010-08-23 17:51:42 +08:00
parent f90b5936d0
commit bfd7c9ac22
18 changed files with 16 additions and 30 deletions

View 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);

View 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"

View 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"

View 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;

View File

@@ -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"

View File

@@ -100,7 +100,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, ...) \

View 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, ...) \

View File

@@ -27,7 +27,7 @@
extern "C" {
#include <talloc.h>
#include "main/mtypes.h"
#include "main/core.h" /* for struct __GLcontextRec */
}
#include "ast.h"

View File

@@ -23,13 +23,12 @@
#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"
}

View 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"

View 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"

View 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"

View 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"

View 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"

View 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"

View 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"

View 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"

View File

@@ -21,13 +21,7 @@
* 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);