diff options
author | Jakob Bornecrantz <[email protected]> | 2009-03-13 10:38:41 +0000 |
---|---|---|
committer | Jakob Bornecrantz <[email protected]> | 2009-03-13 01:38:20 +0100 |
commit | f500f3a72c6be61ff9b8e1166f734e408d00aded (patch) | |
tree | d299b32bba7cc7d2d06380a5ef72d17269da1137 /src/gallium/drivers/i965simple/brw_surface.c | |
parent | f786e46cf4fbf50a1cacfb81e22ee155ffe6edd3 (diff) |
gallium: Remove do_flip argument from surface_copy
I should have gotten most uses and implementation
correctly fixed, but things might break.
Feel free to blame me.
Diffstat (limited to 'src/gallium/drivers/i965simple/brw_surface.c')
-rw-r--r-- | src/gallium/drivers/i965simple/brw_surface.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/gallium/drivers/i965simple/brw_surface.c b/src/gallium/drivers/i965simple/brw_surface.c index 0a95dce1940..511779dbfa0 100644 --- a/src/gallium/drivers/i965simple/brw_surface.c +++ b/src/gallium/drivers/i965simple/brw_surface.c @@ -41,7 +41,6 @@ */ static void brw_surface_copy(struct pipe_context *pipe, - boolean do_flip, struct pipe_surface *dst, unsigned dstx, unsigned dsty, struct pipe_surface *src, @@ -64,11 +63,11 @@ brw_surface_copy(struct pipe_context *pipe, pipe_copy_rect(dst_map, &dst->block, dst->stride, - dstx, dsty, - width, height, - src_map, - do_flip ? -(int) src->stride : src->stride, - srcx, do_flip ? height - 1 - srcy : srcy); + dstx, dsty, + width, height, + src_map, + src->stride, + srcx, srcy); pipe->screen->surface_unmap(pipe->screen, src); pipe->screen->surface_unmap(pipe->screen, dst); @@ -79,7 +78,7 @@ brw_surface_copy(struct pipe_context *pipe, assert(dst->block.width == 1); assert(dst->block.height == 1); brw_copy_blit(brw_context(pipe), - do_flip, + FALSE, dst->block.size, (short) src->stride/src->block.size, src_tex->buffer, src->offset, FALSE, (short) dst->stride/dst->block.size, dst_tex->buffer, dst->offset, FALSE, |