summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i965simple
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-06-23 08:51:00 -0600
committerBrian Paul <[email protected]>2008-06-23 08:51:00 -0600
commitf1601c2b75ca4c2223079f676cf796843b284df2 (patch)
tree18b75644778306deef7627da9df143d8a292a5f0 /src/gallium/drivers/i965simple
parent92d48a4cb9481adc7abd7cdf9550fbf5a9c9613d (diff)
gallium: fix bad srcy coord if do_flip
Diffstat (limited to 'src/gallium/drivers/i965simple')
-rw-r--r--src/gallium/drivers/i965simple/brw_surface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/i965simple/brw_surface.c b/src/gallium/drivers/i965simple/brw_surface.c
index 3e3736b2806..62d75bc251e 100644
--- a/src/gallium/drivers/i965simple/brw_surface.c
+++ b/src/gallium/drivers/i965simple/brw_surface.c
@@ -66,7 +66,7 @@ brw_surface_copy(struct pipe_context *pipe,
width, height,
src_map,
do_flip ? -(int) src->pitch : src->pitch,
- srcx, do_flip ? 1 - srcy - height : srcy);
+ srcx, do_flip ? height - 1 - srcy : srcy);
pipe->screen->surface_unmap(pipe->screen, src);
pipe->screen->surface_unmap(pipe->screen, dst);