summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2019-07-01 14:29:45 -0700
committerEric Anholt <[email protected]>2019-07-16 12:51:13 -0700
commit93a7651d8d04ad2a53a4d10fb66590c85d199018 (patch)
treea66e2c130e6a2b16f177524655edfafde9672b83 /src/mesa/main
parent20ce56ad5bf88788d7ef3df0e53dda9ec72602e0 (diff)
mesa: Rename gl_pack typedefs to mesa_pack.
These are packing mesa formats, not a GL format/type. Reviewed-by: Thomas Helland <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/format_pack.h20
-rw-r--r--src/mesa/main/format_pack.py10
2 files changed, 15 insertions, 15 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) {