radeon: don't attempt to use alternate blit formats for depth buffers
authorAlex Deucher <alexdeucher@gmail.com>
Mon, 8 Mar 2010 22:38:39 +0000 (17:38 -0500)
committerAlex Deucher <alexdeucher@gmail.com>
Mon, 8 Mar 2010 22:38:39 +0000 (17:38 -0500)
noticed by fredrikh on IRC.

src/mesa/drivers/dri/radeon/radeon_tex_copy.c

index a4bb03d5d39ad277c9189e0efbaf5c9f52261fde..5cfad6fc3c8e9498dbd4b17b8d62a3e685b5035f 100644 (file)
@@ -93,6 +93,10 @@ do_copy_texsubimage(GLcontext *ctx,
     src_bpp = _mesa_get_format_bytes(src_mesaformat);
     dst_bpp = _mesa_get_format_bytes(dst_mesaformat);
     if (!radeon->vtbl.check_blit(dst_mesaformat)) {
+           /* depth formats tend to be special */
+           if (_mesa_get_format_bits(dst_mesaformat, GL_DEPTH_BITS) > 0)
+                   return GL_FALSE;
+
            if (src_bpp != dst_bpp)
                    return GL_FALSE;