Make glsl include only main/core.h from core mesa.
#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);
* 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"
*/
#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"
* DEALINGS IN THE SOFTWARE.
*/
-#include "main/mtypes.h"
+#include "main/core.h" /* for slot numbers */
struct builtin_variable {
enum ir_variable_mode mode;
*/
#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"
#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, ...) \
#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, ...) \
extern "C" {
#include <talloc.h>
-#include "main/mtypes.h"
+#include "main/core.h" /* for struct __GLcontextRec */
}
#include "ast.h"
#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"
}
*/
#include "ir.h"
-#include "main/imports.h"
#include "program/symbol_table.h"
#include "glsl_parser_extras.h"
#include "ast.h"
* 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"
*/
#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"
* and log2 operations.
*/
-#include "main/imports.h"
+#include "main/core.h" /* for log2f on MSVC */
#include "ir.h"
#include "glsl_types.h"
*/
extern "C" {
-#include "main/mtypes.h"
+#include "main/core.h" /* for struct gl_program */
#include "program/hash_table.h"
}
#include "ir.h"
* DEALINGS IN THE SOFTWARE.
*/
-#include "main/compiler.h"
#include "ir.h"
#include "glsl_parser_extras.h"
#include "glsl_symbol_table.h"
#include <talloc.h>
}
-#include "main/mtypes.h"
+#include "main/core.h"
#include "glsl_symbol_table.h"
#include "glsl_parser_extras.h"
#include "ir.h"
#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"
* 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);