summaryrefslogtreecommitdiff
path: root/src/mesa/main
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2022-08-21 18:27:08 -0400
committerMarge Bot <emma+marge@anholt.net>2022-10-19 04:23:05 +0000
commit5679ef99b82b7ae8803b91f6dcde19e53c223c5e (patch)
treed60d5ab2b49f2f433e59df219432ffc3e5aa0746 /src/mesa/main
parent58f738bf5ecbb6eeb7c84954edd0fff5af8ff192 (diff)
glapi: remove EXT and ARB suffixes from Draw functions
This swaps the function names with aliased names that don't have those suffixes. Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Acked-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18199>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/dlist.c18
-rw-r--r--src/mesa/main/draw.c12
-rw-r--r--src/mesa/main/glthread_draw.c56
3 files changed, 43 insertions, 43 deletions
diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c
index 0d92edf328b..148e3b6368c 100644
--- a/src/mesa/main/dlist.c
+++ b/src/mesa/main/dlist.c
@@ -1532,10 +1532,10 @@ save_BlendEquationSeparateiARB(GLuint buf, GLenum modeRGB, GLenum modeA)
/* GL_ARB_draw_instanced. */
void GLAPIENTRY
-save_DrawArraysInstancedARB(UNUSED GLenum mode,
- UNUSED GLint first,
- UNUSED GLsizei count,
- UNUSED GLsizei primcount)
+save_DrawArraysInstanced(UNUSED GLenum mode,
+ UNUSED GLint first,
+ UNUSED GLsizei count,
+ UNUSED GLsizei primcount)
{
GET_CURRENT_CONTEXT(ctx);
_mesa_error(ctx, GL_INVALID_OPERATION,
@@ -1543,11 +1543,11 @@ save_DrawArraysInstancedARB(UNUSED GLenum mode,
}
void GLAPIENTRY
-save_DrawElementsInstancedARB(UNUSED GLenum mode,
- UNUSED GLsizei count,
- UNUSED GLenum type,
- UNUSED const GLvoid *indices,
- UNUSED GLsizei primcount)
+save_DrawElementsInstanced(UNUSED GLenum mode,
+ UNUSED GLsizei count,
+ UNUSED GLenum type,
+ UNUSED const GLvoid *indices,
+ UNUSED GLsizei primcount)
{
GET_CURRENT_CONTEXT(ctx);
_mesa_error(ctx, GL_INVALID_OPERATION,
diff --git a/src/mesa/main/draw.c b/src/mesa/main/draw.c
index 8843dceb6df..87d88a81cb8 100644
--- a/src/mesa/main/draw.c
+++ b/src/mesa/main/draw.c
@@ -1393,8 +1393,8 @@ _mesa_DrawArrays(GLenum mode, GLint start, GLsizei count)
* display list mode).
*/
void GLAPIENTRY
-_mesa_DrawArraysInstancedARB(GLenum mode, GLint start, GLsizei count,
- GLsizei numInstances)
+_mesa_DrawArraysInstanced(GLenum mode, GLint start, GLsizei count,
+ GLsizei numInstances)
{
GET_CURRENT_CONTEXT(ctx);
FLUSH_FOR_DRAW(ctx);
@@ -1835,8 +1835,8 @@ _mesa_DrawElementsBaseVertex(GLenum mode, GLsizei count, GLenum type,
* Called by glDrawElementsInstanced() in immediate mode.
*/
void GLAPIENTRY
-_mesa_DrawElementsInstancedARB(GLenum mode, GLsizei count, GLenum type,
- const GLvoid * indices, GLsizei numInstances)
+_mesa_DrawElementsInstanced(GLenum mode, GLsizei count, GLenum type,
+ const GLvoid * indices, GLsizei numInstances)
{
GET_CURRENT_CONTEXT(ctx);
FLUSH_FOR_DRAW(ctx);
@@ -2076,8 +2076,8 @@ _mesa_validated_multidrawelements(struct gl_context *ctx, GLenum mode,
void GLAPIENTRY
-_mesa_MultiDrawElementsEXT(GLenum mode, const GLsizei *count, GLenum type,
- const GLvoid * const *indices, GLsizei primcount)
+_mesa_MultiDrawElements(GLenum mode, const GLsizei *count, GLenum type,
+ const GLvoid * const *indices, GLsizei primcount)
{
GET_CURRENT_CONTEXT(ctx);
FLUSH_FOR_DRAW(ctx);
diff --git a/src/mesa/main/glthread_draw.c b/src/mesa/main/glthread_draw.c
index a7bb30d4030..fc6cd3c5784 100644
--- a/src/mesa/main/glthread_draw.c
+++ b/src/mesa/main/glthread_draw.c
@@ -292,7 +292,7 @@ _mesa_unmarshal_DrawArrays(struct gl_context *ctx,
}
/* DrawArraysInstancedBaseInstance and NOT supporting user buffers. Ignore the name. */
-struct marshal_cmd_DrawArraysInstancedARB
+struct marshal_cmd_DrawArraysInstanced
{
struct marshal_cmd_base cmd_base;
GLenum mode;
@@ -303,9 +303,9 @@ struct marshal_cmd_DrawArraysInstancedARB
};
uint32_t
-_mesa_unmarshal_DrawArraysInstancedARB(struct gl_context *ctx,
- const struct marshal_cmd_DrawArraysInstancedARB *cmd,
- const uint64_t *last)
+_mesa_unmarshal_DrawArraysInstanced(struct gl_context *ctx,
+ const struct marshal_cmd_DrawArraysInstanced *cmd,
+ const uint64_t *last)
{
/* Ignore the function name. We use DISPATCH_CMD_DrawArrays{Instanced}
* for all DrawArrays variants without user buffers, and
@@ -339,9 +339,9 @@ draw_arrays_async(struct gl_context *ctx, GLenum mode, GLint first,
cmd->first = first;
cmd->count = count;
} else {
- int cmd_size = sizeof(struct marshal_cmd_DrawArraysInstancedARB);
- struct marshal_cmd_DrawArraysInstancedARB *cmd =
- _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DrawArraysInstancedARB, cmd_size);
+ int cmd_size = sizeof(struct marshal_cmd_DrawArraysInstanced);
+ struct marshal_cmd_DrawArraysInstanced *cmd =
+ _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DrawArraysInstanced, cmd_size);
cmd->mode = mode;
cmd->first = first;
@@ -613,7 +613,7 @@ sync:
}
/* DrawElementsInstanced not supporting user buffers. */
-struct marshal_cmd_DrawElementsInstancedARB
+struct marshal_cmd_DrawElementsInstanced
{
struct marshal_cmd_base cmd_base;
GLenum16 mode;
@@ -628,9 +628,9 @@ struct marshal_cmd_DrawElementsInstancedARB
*/
uint32_t
-_mesa_unmarshal_DrawElementsInstancedARB(struct gl_context *ctx,
- const struct marshal_cmd_DrawElementsInstancedARB *cmd,
- const uint64_t *last)
+_mesa_unmarshal_DrawElementsInstanced(struct gl_context *ctx,
+ const struct marshal_cmd_DrawElementsInstanced *cmd,
+ const uint64_t *last)
{
/* Ignore the function name. We use DISPATCH_CMD_DrawElementsInstanced-
* BaseVertexBaseInstance for all DrawElements variants with user buffers,
@@ -644,8 +644,8 @@ _mesa_unmarshal_DrawElementsInstancedARB(struct gl_context *ctx,
const GLvoid *indices = cmd->indices;
const GLsizei instance_count = cmd->instance_count;
- CALL_DrawElementsInstancedARB(ctx->CurrentServerDispatch,
- (mode, count, type, indices, instance_count));
+ CALL_DrawElementsInstanced(ctx->CurrentServerDispatch,
+ (mode, count, type, indices, instance_count));
const unsigned cmd_size = align(sizeof(*cmd), 8) / 8;
assert(cmd_size == cmd->cmd_base.cmd_size);
return cmd_size;
@@ -794,9 +794,9 @@ draw_elements_async(struct gl_context *ctx, GLenum mode, GLsizei count,
}
} else {
if (basevertex == 0 && baseinstance == 0) {
- int cmd_size = sizeof(struct marshal_cmd_DrawElementsInstancedARB);
- struct marshal_cmd_DrawElementsInstancedARB *cmd =
- _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DrawElementsInstancedARB, cmd_size);
+ int cmd_size = sizeof(struct marshal_cmd_DrawElementsInstanced);
+ struct marshal_cmd_DrawElementsInstanced *cmd =
+ _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DrawElementsInstanced, cmd_size);
cmd->mode = MIN2(mode, 0xffff);
cmd->type = MIN2(type, 0xffff);
@@ -1086,8 +1086,8 @@ _mesa_unmarshal_MultiDrawElementsBaseVertex(struct gl_context *ctx,
(mode, count, type, indices, draw_count,
basevertex));
} else {
- CALL_MultiDrawElementsEXT(ctx->CurrentServerDispatch,
- (mode, count, type, indices, draw_count));
+ CALL_MultiDrawElements(ctx->CurrentServerDispatch,
+ (mode, count, type, indices, draw_count));
}
/* Restore states. */
@@ -1294,8 +1294,8 @@ sync:
(mode, count, type, indices, draw_count,
basevertex));
} else {
- CALL_MultiDrawElementsEXT(ctx->CurrentServerDispatch,
- (mode, count, type, indices, draw_count));
+ CALL_MultiDrawElements(ctx->CurrentServerDispatch,
+ (mode, count, type, indices, draw_count));
}
}
@@ -1306,8 +1306,8 @@ _mesa_marshal_DrawArrays(GLenum mode, GLint first, GLsizei count)
}
void GLAPIENTRY
-_mesa_marshal_DrawArraysInstancedARB(GLenum mode, GLint first, GLsizei count,
- GLsizei instance_count)
+_mesa_marshal_DrawArraysInstanced(GLenum mode, GLint first, GLsizei count,
+ GLsizei instance_count)
{
draw_arrays(mode, first, count, instance_count, 0, false);
}
@@ -1336,8 +1336,8 @@ _mesa_marshal_DrawRangeElements(GLenum mode, GLuint start, GLuint end,
}
void GLAPIENTRY
-_mesa_marshal_DrawElementsInstancedARB(GLenum mode, GLsizei count, GLenum type,
- const GLvoid *indices, GLsizei instance_count)
+_mesa_marshal_DrawElementsInstanced(GLenum mode, GLsizei count, GLenum type,
+ const GLvoid *indices, GLsizei instance_count)
{
draw_elements(mode, count, type, indices, instance_count, 0, 0, false, 0, 0, false);
}
@@ -1383,9 +1383,9 @@ _mesa_marshal_DrawElementsInstancedBaseVertexBaseInstance(GLenum mode, GLsizei c
}
void GLAPIENTRY
-_mesa_marshal_MultiDrawElementsEXT(GLenum mode, const GLsizei *count,
- GLenum type, const GLvoid *const *indices,
- GLsizei draw_count)
+_mesa_marshal_MultiDrawElements(GLenum mode, const GLsizei *count,
+ GLenum type, const GLvoid *const *indices,
+ GLsizei draw_count)
{
_mesa_marshal_MultiDrawElementsBaseVertex(mode, count, type, indices,
draw_count, NULL);
@@ -1413,7 +1413,7 @@ _mesa_unmarshal_DrawElementsInstancedBaseInstance(struct gl_context *ctx, const
}
uint32_t
-_mesa_unmarshal_MultiDrawElementsEXT(struct gl_context *ctx, const struct marshal_cmd_MultiDrawElementsEXT *cmd, const uint64_t *last)
+_mesa_unmarshal_MultiDrawElements(struct gl_context *ctx, const struct marshal_cmd_MultiDrawElements *cmd, const uint64_t *last)
{
unreachable("never used - MultiDrawElementsBaseVertex is used instead");
return 0;