From: Alex Deucher Date: Wed, 20 Jan 2010 16:18:25 +0000 (-0500) Subject: r200: re-adding missing pitch alignment check in blit code X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=156c90e5c3289fda8290bdd04c5cb5041a65113d;p=mesa.git r200: re-adding missing pitch alignment check in blit code lost after switch to common code --- 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",