*/
#include "nir.h"
-#include "GL/gl.h"
#include "linker_util.h"
#include "gl_nir_linker.h"
#include "compiler/glsl/ir_uniform.h" /* for gl_uniform_storage */
#include "main/consts_exts.h"
#include "main/shader_types.h"
+#include "util/glheader.h"
/**
* This file do the common link for GLSL atomic counter uniforms, using NIR,
*/
#include "nir.h"
-#include "GL/gl.h"
#include "gl_nir.h"
#include "gl_nir_linker.h"
#include "linker_util.h"
#include "main/consts_exts.h"
#include "main/shaderobj.h"
#include "ir_uniform.h" /* for gl_uniform_storage */
+#include "util/glheader.h"
/**
* This file included general link methods, using NIR, instead of IR as
#define GLSL_LINKER_UTIL_H
#include "util/bitset.h"
+#include "util/glheader.h"
#include "compiler/glsl/list.h"
struct gl_constants;
#ifdef __cplusplus
#include "mesa/main/config.h"
+#include "mesa/main/menums.h" /* for gl_texture_index, C++'s enum rules are broken */
+#include "util/glheader.h"
+#include "util/ralloc.h"
#endif
struct glsl_type;
#ifdef __cplusplus
} /* extern "C" */
+#endif
-#include "GL/gl.h"
-#include "util/ralloc.h"
-#include "mesa/main/menums.h" /* for gl_texture_index, C++'s enum rules are broken */
+/* C++ struct types for glsl */
+#ifdef __cplusplus
struct glsl_type {
GLenum gl_type;
#ifndef NIR_GL_TYPES_H
#define NIR_GL_TYPES_H
-#include "GL/gl.h"
+#include "util/glheader.h"
#ifdef __cplusplus
extern "C" {
#include "tgsi/tgsi_info.h"
#include "tgsi/tgsi_dump.h"
#include "tgsi/tgsi_sanity.h"
+#include "util/glheader.h"
#include "util/u_debug.h"
#include "util/u_inlines.h"
#include "util/u_memory.h"
#include "util/u_math.h"
#include "util/u_prim.h"
#include "util/u_bitmask.h"
-#include "GL/gl.h"
#include "compiler/shader_info.h"
union tgsi_any_token {
* IN THE SOFTWARE.
*/
+#include "state_tracker/st_interop.h"
#include "stw_ext_interop.h"
#include "stw_context.h"
#include "stw_device.h"
-#include "state_tracker/st_interop.h"
-
int
wglMesaGLInteropQueryDeviceInfo(HDC dpy, HGLRC context,
struct mesa_glinterop_device_info *out)
* IN THE SOFTWARE.
*/
-#include "stw_image.h"
#include <pipe/p_state.h>
#include <util/u_inlines.h>
#include <frontend/api.h>
#include <state_tracker/st_context.h>
#include <state_tracker/st_texture.h>
+#include "stw_image.h"
+
struct stw_image *
stw_create_image_from_texture(struct stw_context *ctx, GLenum gl_target, GLuint texture,
GLuint depth, GLint level, enum stw_image_error *error)
#define _WINSYS_HANDLE_H_
#ifdef _WIN32
-#include <windows.h>
+typedef void *HANDLE;
#endif
#ifdef __cplusplus
}
-void APIENTRY
+void GLAPIENTRY
_mesa_EndConditionalRender_no_error(void)
{
GET_CURRENT_CONTEXT(ctx);
}
-void APIENTRY
+void GLAPIENTRY
_mesa_EndConditionalRender(void)
{
GET_CURRENT_CONTEXT(ctx);
#include "menums.h"
#include "compiler/shader_enums.h"
-/* Windows winnt.h defines MemoryBarrier as a macro on some platforms,
- * including as a function-like macro in some cases. That either causes
- * the table entry below to have a weird name, or fail to compile.
- */
-#ifdef MemoryBarrier
-#undef MemoryBarrier
+#if defined(_WIN32) && defined(_WINDOWS_)
+#error "Should not include <windows.h> here"
#endif
struct gl_buffer_object;
#define FORMATS_H
-#include <GL/gl.h>
#include <stdbool.h>
#include <stdint.h>
+
+#include "util/glheader.h"
#include "gallium/include/pipe/p_format.h"
#include "util/u_endian.h"
#include <stdbool.h>
#include <stdint.h>
-#include <GL/gl.h>
+#include "util/glheader.h"
#ifdef __cplusplus
extern "C" {
#include <inttypes.h>
#include <stdbool.h>
#include "util/u_queue.h"
-#include "GL/gl.h"
#include "compiler/shader_enums.h"
#include "main/config.h"
#include "util/glheader.h"
*/
#include <gtest/gtest.h>
-#include <GL/gl.h>
#include "main/enums.h"
#include <gtest/gtest.h>
-#include "GL/gl.h"
-#include "GL/glext.h"
-
#include "program/prog_statevars.h"
TEST(program_state_string, depth_range)
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
-#include <GL/gl.h>
#include "main/errors.h"
extern "C" {
#ifndef TEXCOMPRESS_S3TC_TMP_H
#define TEXCOMPRESS_S3TC_TMP_H
-#ifdef __APPLE__
-#include <OpenGL/gl.h>
-#else
-#include <GL/gl.h>
-#endif
+#include "util/glheader.h"
typedef GLubyte GLchan;
#define UBYTE_TO_CHAN(b) (b)
#define PROGRAM_PARSER_H
#include "main/config.h"
+#include "program/prog_instruction.h"
#include "program/prog_parameter.h"
struct gl_context;
#ifndef VBO_SAVE_H
#define VBO_SAVE_H
-#include "dlist.h"
+#include "mesa/main/dlist.h"
#include "vbo.h"
#include "vbo_attrib.h"