summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_buffer.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-11-01 02:00:37 +0100
committerMarek Olšák <[email protected]>2012-11-01 03:17:58 +0100
commit1eedebc65b02130ef7a27062a1ed67972a317a08 (patch)
treeb5994b2c8624e671efeb2d69823b96db7f572949 /src/gallium/drivers/r600/r600_buffer.c
parentfa58644855e44830e0b91dc627703c236fa6712a (diff)
r600g: re-enable handling of DISCARD_RANGE, improving performance
It seems to work for me now. Even the graphics corruption is gone. This also boosts performance in Reaction Quake.
Diffstat (limited to 'src/gallium/drivers/r600/r600_buffer.c')
-rw-r--r--src/gallium/drivers/r600/r600_buffer.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gallium/drivers/r600/r600_buffer.c b/src/gallium/drivers/r600/r600_buffer.c
index 116ab51196f..968824ea1bb 100644
--- a/src/gallium/drivers/r600/r600_buffer.c
+++ b/src/gallium/drivers/r600/r600_buffer.c
@@ -136,7 +136,6 @@ static void *r600_buffer_transfer_map(struct pipe_context *ctx,
r600_set_constants_dirty_if_bound(rctx, rbuffer);
}
}
-#if 0 /* this is broken (see Bug 53130) */
else if ((usage & PIPE_TRANSFER_DISCARD_RANGE) &&
!(usage & PIPE_TRANSFER_UNSYNCHRONIZED) &&
rctx->screen->has_streamout &&
@@ -159,7 +158,6 @@ static void *r600_buffer_transfer_map(struct pipe_context *ctx,
ptransfer, data, staging);
}
}
-#endif
data = rctx->ws->buffer_map(rbuffer->cs_buf, rctx->cs, usage);
if (!data) {