summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r300/r300_blit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_blit.c')
-rw-r--r--src/mesa/drivers/dri/r300/r300_blit.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_blit.c b/src/mesa/drivers/dri/r300/r300_blit.c
index 7cb6f36c02..515a85caa2 100644
--- a/src/mesa/drivers/dri/r300/r300_blit.c
+++ b/src/mesa/drivers/dri/r300/r300_blit.c
@@ -424,10 +424,16 @@ GLboolean r300_blit(struct r300_context *r300,
unsigned dst_width,
unsigned dst_height)
{
- assert(src_width == dst_width);
- assert(src_height == dst_height);
+ //assert(src_width == dst_width);
+ //assert(src_height == dst_height);
- if (0) {
+ if (src_bo == dst_bo) {
+ return GL_FALSE;
+ }
+
+ //return GL_FALSE;
+
+ if (1) {
fprintf(stderr, "src: width %d, height %d, pitch %d vs %d, format %s\n",
src_width, src_height, src_pitch,
_mesa_format_row_stride(src_mesaformat, src_width),
@@ -441,6 +447,8 @@ GLboolean r300_blit(struct r300_context *r300,
if (!validate_buffers(r300, src_bo, dst_bo))
return GL_FALSE;
+ rcommonEnsureCmdBufSpace(&r300->radeon, 200, __FUNCTION__);
+
other_stuff(r300);
r300_emit_tx_setup(r300, src_mesaformat, src_bo, src_offset, src_width, src_height, src_pitch);
@@ -463,6 +471,7 @@ GLboolean r300_blit(struct r300_context *r300,
r300EmitCacheFlush(r300);
radeonFlush(r300->radeon.glCtx);
+ //r300ResetHwState(r300);
return GL_TRUE;
} \ No newline at end of file