r300g: Be more specific on surface_copy fallbacks.

This commit is contained in:
Corbin Simpson 2009-06-26 17:39:34 -07:00
parent 6a926f9997
commit 00ffc90dd2

View file

@ -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: