Mesa (7.8): radeon: don' t attempt to use alternate blit formats for depth buffers

Alex Deucher agd5f at kemper.freedesktop.org
Mon Mar 8 14:41:04 PST 2010


Module: Mesa
Branch: 7.8
Commit: ffd625d4aaf145eb28fc76617e95ffc3fdfd54cc
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ffd625d4aaf145eb28fc76617e95ffc3fdfd54cc

Author: Alex Deucher <alexdeucher at gmail.com>
Date:   Mon Mar  8 17:38:39 2010 -0500

radeon: don't attempt to use alternate blit formats for depth buffers

noticed by fredrikh on IRC.

---

 src/mesa/drivers/dri/radeon/radeon_tex_copy.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/radeon/radeon_tex_copy.c b/src/mesa/drivers/dri/radeon/radeon_tex_copy.c
index a4bb03d..5cfad6f 100644
--- a/src/mesa/drivers/dri/radeon/radeon_tex_copy.c
+++ b/src/mesa/drivers/dri/radeon/radeon_tex_copy.c
@@ -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;
 



More information about the mesa-commit mailing list