summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2010-01-20 11:18:25 -0500
committerAlex Deucher <alexdeucher@gmail.com>2010-01-20 11:19:06 -0500
commit156c90e5c3289fda8290bdd04c5cb5041a65113d (patch)
treeb79e7d6f9a7bba88217b49cf6bc97521cc7fca5f /src/mesa/drivers/dri
parent05208b298d218071bae75a52a16e4483ca64c94d (diff)
r200: re-adding missing pitch alignment check in blit code
lost after switch to common code
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/r200/r200_blit.c4
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 b6fcc6e20c..e446d532cf 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",