gallium: fix do_flip bug in sp_surface_copy()
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 19 Aug 2008 23:41:34 +0000 (17:41 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 19 Aug 2008 23:41:34 +0000 (17:41 -0600)
commit7f9959ae8394f8e52a180f5e261b0f9470f6c5bc
tree1adf4da9f2b8a01a5884cd9f51c5e69f86aa113c
parent63c0970dca9c13ab83ea24f108b41f75f2a290a7
gallium: fix do_flip bug in sp_surface_copy()

Surfaces are always in y=0=top raster order so the caller should invert
the Y coordinate if needed; don't do it in sp_surface_copy().

Fixes a glCopyTexture regression.
src/gallium/drivers/softpipe/sp_surface.c