st/mesa: use _mesa_format_matches_format_and_type() in decompress_with_blit()
authorBrian Paul <brianp@vmware.com>
Tue, 14 Feb 2012 15:46:03 +0000 (08:46 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 15 Feb 2012 21:09:01 +0000 (14:09 -0700)
st_equal_formats() is no longer used now.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/mesa/state_tracker/st_cb_texture.c

index d66791e71e0cb8fe826627faf2901fd25f2f3384..74ae2d11db6ff22c622bd190b78e19f003cdcd87 100644 (file)
@@ -673,7 +673,9 @@ decompress_with_blit(struct gl_context * ctx,
    pixels = _mesa_map_pbo_dest(ctx, &ctx->Pack, pixels);
 
    /* copy/pack data into user buffer */
-   if (st_equal_formats(stImage->pt->format, format, type)) {
+   if (_mesa_format_matches_format_and_type(stImage->base.TexFormat,
+                                            format, type,
+                                            ctx->Pack.SwapBytes)) {
       /* memcpy */
       const uint bytesPerRow = width * util_format_get_blocksize(stImage->pt->format);
       ubyte *map = pipe_transfer_map(pipe, tex_xfer);