diff options
author | Maciej Cencora <m.cencora@gmail.com> | 2010-01-19 23:34:56 +0100 |
---|---|---|
committer | Maciej Cencora <m.cencora@gmail.com> | 2010-01-19 23:38:34 +0100 |
commit | 8a4d7393bd8a752eba2ee687c1c3e2df5c82745d (patch) | |
tree | 84feaf9404112966496da8d8c38aaac0d6711fc9 /src/mesa/drivers/dri/r600/r600_blit.c | |
parent | 0aed44f8a36d4974d42f643c5065f2a4d96fc619 (diff) |
radeon/r300/r600: share common glCopyTex(Sub)Image code
Diffstat (limited to 'src/mesa/drivers/dri/r600/r600_blit.c')
-rw-r--r-- | src/mesa/drivers/dri/r600/r600_blit.c | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/src/mesa/drivers/dri/r600/r600_blit.c b/src/mesa/drivers/dri/r600/r600_blit.c index 0205a438cc..d7cd59ade6 100644 --- a/src/mesa/drivers/dri/r600/r600_blit.c +++ b/src/mesa/drivers/dri/r600/r600_blit.c @@ -1556,32 +1556,32 @@ static GLboolean validate_buffers(context_t *rmesa, return GL_TRUE; } -GLboolean r600_blit(GLcontext *ctx, - struct radeon_bo *src_bo, - intptr_t src_offset, - gl_format src_mesaformat, - unsigned src_pitch, - unsigned src_width, - unsigned src_height, - unsigned src_x, - unsigned src_y, - struct radeon_bo *dst_bo, - intptr_t dst_offset, - gl_format dst_mesaformat, - unsigned dst_pitch, - unsigned dst_width, - unsigned dst_height, - unsigned dst_x, - unsigned dst_y, - unsigned w, - unsigned h, - unsigned flip_y) +unsigned r600_blit(GLcontext *ctx, + struct radeon_bo *src_bo, + intptr_t src_offset, + gl_format src_mesaformat, + unsigned src_pitch, + unsigned src_width, + unsigned src_height, + unsigned src_x, + unsigned src_y, + struct radeon_bo *dst_bo, + intptr_t dst_offset, + gl_format dst_mesaformat, + unsigned dst_pitch, + unsigned dst_width, + unsigned dst_height, + unsigned dst_x, + unsigned dst_y, + unsigned w, + unsigned h, + unsigned flip_y) { context_t *context = R700_CONTEXT(ctx); int id = 0; if (!is_blit_supported(dst_mesaformat)) - return GL_FALSE; + return GL_FALSE; if (src_bo == dst_bo) { return GL_FALSE; @@ -1603,7 +1603,7 @@ GLboolean r600_blit(GLcontext *ctx, } /* Flush is needed to make sure that source buffer has correct data */ - radeonFlush(context->radeon.glCtx); + radeonFlush(ctx); rcommonEnsureCmdBufSpace(&context->radeon, 304, __FUNCTION__); @@ -1654,7 +1654,7 @@ GLboolean r600_blit(GLcontext *ctx, /* 5 */ r700WaitForIdleClean(context); - radeonFlush(context->radeon.glCtx); + radeonFlush(ctx); return GL_TRUE; } |