A follow-up patch is attached. Marek
On Mon, Mar 7, 2011 at 4:45 PM, Brian Paul <bri...@vmware.com> wrote: > On 03/06/2011 08:28 PM, Marek Olšák wrote: > >> softpipe passes all tests. >> --- >> src/mesa/state_tracker/st_extensions.c | 21 ++++++++++++ >> src/mesa/state_tracker/st_format.c | 54 >> ++++++++++++++++++++++++++++++- >> src/mesa/state_tracker/st_gen_mipmap.c | 4 ++- >> 3 files changed, 76 insertions(+), 3 deletions(-) >> >> [...] > > diff --git a/src/mesa/state_tracker/st_gen_mipmap.c >> b/src/mesa/state_tracker/st_gen_mipmap.c >> index a12a32e..f8b23d1 100644 >> --- a/src/mesa/state_tracker/st_gen_mipmap.c >> +++ b/src/mesa/state_tracker/st_gen_mipmap.c >> @@ -205,7 +205,9 @@ fallback_generate_mipmap(struct gl_context *ctx, >> GLenum target, >> >> if (compressed) { >> if (texObj->Image[face][baseLevel]->TexFormat == >> MESA_FORMAT_SIGNED_RED_RGTC1 || >> - texObj->Image[face][baseLevel]->TexFormat == >> MESA_FORMAT_SIGNED_RG_RGTC2) >> + texObj->Image[face][baseLevel]->TexFormat == >> MESA_FORMAT_SIGNED_RG_RGTC2 || >> + texObj->Image[face][baseLevel]->TexFormat == >> MESA_FORMAT_SIGNED_L_LATC1 || >> + texObj->Image[face][baseLevel]->TexFormat == >> MESA_FORMAT_SIGNED_LA_LATC2) >> datatype = GL_FLOAT; >> else >> datatype = GL_UNSIGNED_BYTE; >> > > When I see a bunch of comparisons like this I suspect that a helper > function such as get_datatype_for_compressed_format(gl_format) would be > cleaner. > > -Brian >
0001-st-mesa-cleanup-checking-for-signed-compressed-forma.patch
Description: application/pgp-keys
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev