From 78506ad2466563d9ec3f8d09a746a069e6cab6b5 Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Thu, 9 Jun 2016 22:10:10 -0400 Subject: [PATCH] glapi: add GL_EXT_window_rectangles entrypoints Signed-off-by: Ilia Mirkin Reviewed-by: Brian Paul --- src/mapi/glapi/gen/EXT_window_rectangles.xml | 29 ++++++++++++++++++++ src/mapi/glapi/gen/Makefile.am | 1 + src/mapi/glapi/gen/gl_API.xml | 2 ++ src/mesa/main/scissor.c | 7 +++++ src/mesa/main/scissor.h | 3 ++ src/mesa/main/tests/dispatch_sanity.cpp | 6 ++++ 6 files changed, 48 insertions(+) create mode 100644 src/mapi/glapi/gen/EXT_window_rectangles.xml diff --git a/src/mapi/glapi/gen/EXT_window_rectangles.xml b/src/mapi/glapi/gen/EXT_window_rectangles.xml new file mode 100644 index 00000000000..7c85e55cf29 --- /dev/null +++ b/src/mapi/glapi/gen/EXT_window_rectangles.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/mapi/glapi/gen/Makefile.am b/src/mapi/glapi/gen/Makefile.am index c511de932eb..0d7c3385d2e 100644 --- a/src/mapi/glapi/gen/Makefile.am +++ b/src/mapi/glapi/gen/Makefile.am @@ -188,6 +188,7 @@ API_XML = \ EXT_texture_array.xml \ EXT_texture_integer.xml \ EXT_transform_feedback.xml \ + EXT_window_rectangles.xml \ GREMEDY_string_marker.xml \ INTEL_performance_query.xml \ KHR_debug.xml \ diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml index 766fe3c8098..79e1ba17c31 100644 --- a/src/mapi/glapi/gen/gl_API.xml +++ b/src/mapi/glapi/gen/gl_API.xml @@ -12758,6 +12758,8 @@ + + diff --git a/src/mesa/main/scissor.c b/src/mesa/main/scissor.c index bc8224c7d23..2b568e4926b 100644 --- a/src/mesa/main/scissor.c +++ b/src/mesa/main/scissor.c @@ -210,6 +210,13 @@ _mesa_ScissorIndexedv(GLuint index, const GLint *v) ScissorIndexed(index, v[0], v[1], v[2], v[3], "glScissorIndexedv"); } +void GLAPIENTRY +_mesa_WindowRectanglesEXT(GLenum mode, GLsizei count, const GLint *box) +{ + +} + + /** * Initialize the context's scissor state. * \param ctx the GL context. diff --git a/src/mesa/main/scissor.h b/src/mesa/main/scissor.h index 5f9a9945a99..1d0fac877b3 100644 --- a/src/mesa/main/scissor.h +++ b/src/mesa/main/scissor.h @@ -43,6 +43,9 @@ _mesa_ScissorIndexed(GLuint index, GLint left, GLint bottom, GLsizei width, GLsi extern void GLAPIENTRY _mesa_ScissorIndexedv(GLuint index, const GLint * v); +extern void GLAPIENTRY +_mesa_WindowRectanglesEXT(GLenum mode, GLsizei count, const GLint *box); + extern void _mesa_set_scissor(struct gl_context *ctx, unsigned idx, GLint x, GLint y, GLsizei width, GLsizei height); diff --git a/src/mesa/main/tests/dispatch_sanity.cpp b/src/mesa/main/tests/dispatch_sanity.cpp index e81aaa26064..ee3c3d4abe7 100644 --- a/src/mesa/main/tests/dispatch_sanity.cpp +++ b/src/mesa/main/tests/dispatch_sanity.cpp @@ -952,6 +952,9 @@ const struct function common_desktop_functions_possible[] = { /* GL_GREMEDY_string_marker */ { "glStringMarkerGREMEDY", 15, -1 }, + /* GL_EXT_window_rectangles */ + { "glWindowRectanglesEXT", 30, -1 }, + { NULL, 0, -1 } }; @@ -2494,6 +2497,9 @@ const struct function gles3_functions_possible[] = { { "glDrawElementsInstancedBaseInstanceEXT", 30, -1 }, { "glDrawElementsInstancedBaseVertexBaseInstanceEXT", 30, -1 }, + /* GL_EXT_window_rectangles */ + { "glWindowRectanglesEXT", 30, -1 }, + { NULL, 0, -1 } }; -- 2.30.2