summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-08-10 13:02:51 -0600
committerBrian <[email protected]>2007-08-10 13:03:57 -0600
commit9cf9aa1ea2c3f40a09316975410a4b0e202e82ba (patch)
tree09f7ee25537697a5cb726a5121f9c38705e36e26
parent24e510ea3796d3136c5eacf2c96a1dddded12aa2 (diff)
use st_mesa_format_to_pipe_format()
-rw-r--r--src/mesa/state_tracker/st_cb_texture.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c
index 22c1b4baffc..f633bd328f9 100644
--- a/src/mesa/state_tracker/st_cb_texture.c
+++ b/src/mesa/state_tracker/st_cb_texture.c
@@ -114,21 +114,6 @@ st_get_texobj_mipmap_tree(struct gl_texture_object *texObj)
}
-static GLuint
-mesa_format_to_pipe_format(GLuint mesaFormat)
-{
- switch (mesaFormat) {
- /* fix this */
- case MESA_FORMAT_ARGB8888_REV:
- case MESA_FORMAT_ARGB8888:
- return PIPE_FORMAT_U_A8_R8_G8_B8;
- default:
- assert(0);
- return 0;
- }
-}
-
-
static int
compressed_num_bytes(GLuint mesaFormat)
{
@@ -386,7 +371,7 @@ guess_and_alloc_mipmap_tree(struct pipe_context *pipe,
comp_byte);
stObj->mt->format
- = mesa_format_to_pipe_format(stImage->base.TexFormat->MesaFormat);
+ = st_mesa_format_to_pipe_format(stImage->base.TexFormat->MesaFormat);
DBG("%s - success\n", __FUNCTION__);
}
@@ -1519,7 +1504,7 @@ st_finalize_mipmap_tree(GLcontext *ctx,
comp_byte);
stObj->mt->format
- = mesa_format_to_pipe_format(firstImage->base.TexFormat->MesaFormat);
+ = st_mesa_format_to_pipe_format(firstImage->base.TexFormat->MesaFormat);
}
/* Pull in any images not in the object's tree: