}
-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)
{
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__);
}
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: