From: Corbin Simpson Date: Sat, 27 Jun 2009 00:39:34 +0000 (-0700) Subject: r300g: Be more specific on surface_copy fallbacks. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=00ffc90dd25270d84002232f9929cc30abc1e7e2;p=mesa.git r300g: Be more specific on surface_copy fallbacks. --- diff --git a/src/gallium/drivers/r300/r300_surface.c b/src/gallium/drivers/r300/r300_surface.c index 75b50969190..7829e78dbf4 100644 --- a/src/gallium/drivers/r300/r300_surface.c +++ b/src/gallium/drivers/r300/r300_surface.c @@ -234,7 +234,7 @@ static void r300_surface_copy(struct pipe_context* pipe, " dimensions %dx%d (pixel pitch %d)\n", src, srcx, srcy, dest, destx, desty, w, h, pixpitch); - if ((srctex == desttex) && + if ((srctex->buffer == desttex->buffer) && ((destx < srcx + w) || (srcx < destx + w)) && ((desty < srcy + h) || (srcy < desty + h))) { fallback: