From 93a7651d8d04ad2a53a4d10fb66590c85d199018 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 1 Jul 2019 14:29:45 -0700 Subject: [PATCH] mesa: Rename gl_pack typedefs to mesa_pack. These are packing mesa formats, not a GL format/type. Reviewed-by: Thomas Helland Reviewed-by: Kristian H. Kristensen --- src/mesa/main/format_pack.h | 20 ++++++++++---------- src/mesa/main/format_pack.py | 10 +++++----- src/mesa/swrast/s_depth.c | 4 ++-- src/mesa/swrast/s_span.c | 4 ++-- src/mesa/swrast/s_stencil.c | 2 +- 5 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/mesa/main/format_pack.h b/src/mesa/main/format_pack.h index aa7113e9b27..95dd0fc0142 100644 --- a/src/mesa/main/format_pack.h +++ b/src/mesa/main/format_pack.h @@ -31,40 +31,40 @@ /** Pack a GLubyte rgba[4] color to dest address */ -typedef void (*gl_pack_ubyte_rgba_func)(const GLubyte src[4], void *dst); +typedef void (*mesa_pack_ubyte_rgba_func)(const GLubyte src[4], void *dst); /** Pack a GLfloat rgba[4] color to dest address */ -typedef void (*gl_pack_float_rgba_func)(const GLfloat src[4], void *dst); +typedef void (*mesa_pack_float_rgba_func)(const GLfloat src[4], void *dst); /** Pack a GLfloat Z value to dest address */ -typedef void (*gl_pack_float_z_func)(const GLfloat *src, void *dst); +typedef void (*mesa_pack_float_z_func)(const GLfloat *src, void *dst); /** Pack a GLuint Z value to dest address */ -typedef void (*gl_pack_uint_z_func)(const GLuint *src, void *dst); +typedef void (*mesa_pack_uint_z_func)(const GLuint *src, void *dst); /** Pack a GLubyte stencil value to dest address */ -typedef void (*gl_pack_ubyte_stencil_func)(const GLubyte *src, void *dst); +typedef void (*mesa_pack_ubyte_stencil_func)(const GLubyte *src, void *dst); -extern gl_pack_ubyte_rgba_func +extern mesa_pack_ubyte_rgba_func _mesa_get_pack_ubyte_rgba_function(mesa_format format); -extern gl_pack_float_rgba_func +extern mesa_pack_float_rgba_func _mesa_get_pack_float_rgba_function(mesa_format format); -extern gl_pack_float_z_func +extern mesa_pack_float_z_func _mesa_get_pack_float_z_func(mesa_format format); -extern gl_pack_uint_z_func +extern mesa_pack_uint_z_func _mesa_get_pack_uint_z_func(mesa_format format); -extern gl_pack_ubyte_stencil_func +extern mesa_pack_ubyte_stencil_func _mesa_get_pack_ubyte_stencil_func(mesa_format format); diff --git a/src/mesa/main/format_pack.py b/src/mesa/main/format_pack.py index 9fa4f412d4c..19cec2032b8 100644 --- a/src/mesa/main/format_pack.py +++ b/src/mesa/main/format_pack.py @@ -298,7 +298,7 @@ pack_float_r11g11b10_float(const GLfloat src[4], void *dst) /** * Return a function that can pack a GLubyte rgba[4] color. */ -gl_pack_ubyte_rgba_func +mesa_pack_ubyte_rgba_func _mesa_get_pack_ubyte_rgba_function(mesa_format format) { switch (format) { @@ -318,7 +318,7 @@ _mesa_get_pack_ubyte_rgba_function(mesa_format format) /** * Return a function that can pack a GLfloat rgba[4] color. */ -gl_pack_float_rgba_func +mesa_pack_float_rgba_func _mesa_get_pack_float_rgba_function(mesa_format format) { switch (format) { @@ -521,7 +521,7 @@ pack_float_Z_FLOAT32(const GLfloat *src, void *dst) *d = *src; } -gl_pack_float_z_func +mesa_pack_float_z_func _mesa_get_pack_float_z_func(mesa_format format) { switch (format) { @@ -600,7 +600,7 @@ pack_uint_Z_FLOAT32(const GLuint *src, void *dst) assert(*d <= 1.0f); } -gl_pack_uint_z_func +mesa_pack_uint_z_func _mesa_get_pack_uint_z_func(mesa_format format) { switch (format) { @@ -663,7 +663,7 @@ pack_ubyte_stencil_Z32_FLOAT_X24S8(const GLubyte *src, void *dst) } -gl_pack_ubyte_stencil_func +mesa_pack_ubyte_stencil_func _mesa_get_pack_ubyte_stencil_func(mesa_format format) { switch (format) { diff --git a/src/mesa/swrast/s_depth.c b/src/mesa/swrast/s_depth.c index de7f14a4fc8..6bc737c7956 100644 --- a/src/mesa/swrast/s_depth.c +++ b/src/mesa/swrast/s_depth.c @@ -262,7 +262,7 @@ put_z32_values(struct gl_context *ctx, struct gl_renderbuffer *rb, } } else { - gl_pack_uint_z_func packZ = _mesa_get_pack_uint_z_func(rb->Format); + mesa_pack_uint_z_func packZ = _mesa_get_pack_uint_z_func(rb->Format); const GLint bpp = _mesa_get_format_bytes(rb->Format); const GLint rowStride = srb->RowStride; for (i = 0; i < count; i++) { @@ -379,7 +379,7 @@ _swrast_depth_test_span(struct gl_context *ctx, SWspan *span) } else { /* horizontal row */ - gl_pack_uint_z_func packZ = _mesa_get_pack_uint_z_func(rb->Format); + mesa_pack_uint_z_func packZ = _mesa_get_pack_uint_z_func(rb->Format); GLubyte *dst = zStart; GLuint i; for (i = 0; i < count; i++) { diff --git a/src/mesa/swrast/s_span.c b/src/mesa/swrast/s_span.c index 184a37c99b8..16b5c61480c 100644 --- a/src/mesa/swrast/s_span.c +++ b/src/mesa/swrast/s_span.c @@ -1041,8 +1041,8 @@ put_values(struct gl_context *ctx, struct gl_renderbuffer *rb, GLuint count, const GLint x[], const GLint y[], const void *values, const GLubyte *mask) { - gl_pack_ubyte_rgba_func pack_ubyte = NULL; - gl_pack_float_rgba_func pack_float = NULL; + mesa_pack_ubyte_rgba_func pack_ubyte = NULL; + mesa_pack_float_rgba_func pack_float = NULL; GLuint i; if (datatype == GL_UNSIGNED_BYTE) diff --git a/src/mesa/swrast/s_stencil.c b/src/mesa/swrast/s_stencil.c index 8ccd5a16442..ce3d77c79a9 100644 --- a/src/mesa/swrast/s_stencil.c +++ b/src/mesa/swrast/s_stencil.c @@ -329,7 +329,7 @@ put_s8_values(struct gl_context *ctx, struct gl_renderbuffer *rb, const GLubyte stencil[]) { const GLint w = rb->Width, h = rb->Height; - gl_pack_ubyte_stencil_func pack_stencil = + mesa_pack_ubyte_stencil_func pack_stencil = _mesa_get_pack_ubyte_stencil_func(rb->Format); GLuint i; -- 2.30.2