diff options
author | Marek Olšák <[email protected]> | 2012-11-01 02:00:37 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-11-01 03:17:58 +0100 |
commit | 1eedebc65b02130ef7a27062a1ed67972a317a08 (patch) | |
tree | b5994b2c8624e671efeb2d69823b96db7f572949 /src | |
parent | fa58644855e44830e0b91dc627703c236fa6712a (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')
-rw-r--r-- | src/gallium/drivers/r600/r600_buffer.c | 2 |
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) { |