diff options
author | Brian Paul <[email protected]> | 2008-06-23 08:51:00 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-06-23 08:51:00 -0600 |
commit | f1601c2b75ca4c2223079f676cf796843b284df2 (patch) | |
tree | 18b75644778306deef7627da9df143d8a292a5f0 /src/gallium/drivers/cell/ppu/cell_surface.c | |
parent | 92d48a4cb9481adc7abd7cdf9550fbf5a9c9613d (diff) |
gallium: fix bad srcy coord if do_flip
Diffstat (limited to 'src/gallium/drivers/cell/ppu/cell_surface.c')
-rw-r--r-- | src/gallium/drivers/cell/ppu/cell_surface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/cell/ppu/cell_surface.c b/src/gallium/drivers/cell/ppu/cell_surface.c index a35db0ef991..4a098101e19 100644 --- a/src/gallium/drivers/cell/ppu/cell_surface.c +++ b/src/gallium/drivers/cell/ppu/cell_surface.c @@ -76,7 +76,7 @@ cell_surface_copy(struct pipe_context *pipe, width, height, pipe_surface_map(src), do_flip ? -src->pitch : src->pitch, - srcx, do_flip ? 1 - srcy - height : srcy); + srcx, do_flip ? height - 1 - srcy : srcy); pipe_surface_unmap(src); pipe_surface_unmap(dst); |