From 156c90e5c3289fda8290bdd04c5cb5041a65113d Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Wed, 20 Jan 2010 11:18:25 -0500 Subject: [PATCH] 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 file changed, 4 insertions(+) diff --git a/src/mesa/drivers/dri/r200/r200_blit.c b/src/mesa/drivers/dri/r200/r200_blit.c index b6fcc6e20c5..e446d532cf7 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", -- 2.30.2