Mesa (master): r200: re-adding missing pitch alignment check in blit code

Alex Deucher agd5f at kemper.freedesktop.org
Wed Jan 20 16:22:11 UTC 2010


Module: Mesa
Branch: master
Commit: 156c90e5c3289fda8290bdd04c5cb5041a65113d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=156c90e5c3289fda8290bdd04c5cb5041a65113d

Author: Alex Deucher <alexdeucher at gmail.com>
Date:   Wed Jan 20 11:18:25 2010 -0500

r200: re-adding missing pitch alignment check in blit code

lost after switch to common code

---

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

diff --git a/src/mesa/drivers/dri/r200/r200_blit.c b/src/mesa/drivers/dri/r200/r200_blit.c
index b6fcc6e..e446d53 100644
--- a/src/mesa/drivers/dri/r200/r200_blit.c
+++ b/src/mesa/drivers/dri/r200/r200_blit.c
@@ -363,6 +363,10 @@ unsigned r200_blit(GLcontext *ctx,
         return GL_FALSE;
     }
 
+    if (src_offset % 32 || dst_offset % 32) {
+        return GL_FALSE;
+    }
+
     if (0) {
         fprintf(stderr, "src: size [%d x %d], pitch %d, "
                 "offset [%d x %d], format %s, bo %p\n",




More information about the mesa-commit mailing list