diff options
author | Marek Olšák <[email protected]> | 2013-03-05 01:15:45 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-03-11 13:44:46 +0100 |
commit | e4e655fd1173fbf7f8cf734217b10e8c3695964e (patch) | |
tree | d971cd6bf88c5575ab21f7c29d952fee18ceb642 /src/gallium/drivers/r600/r600_buffer.c | |
parent | 4b69c1a92d4e1a03377a91548e0a99c3cf3dfea1 (diff) |
r600g: add debug options disabling various copy-buffer-related features
This will be invaluable for debugging and bug reports.
Diffstat (limited to 'src/gallium/drivers/r600/r600_buffer.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_buffer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_buffer.c b/src/gallium/drivers/r600/r600_buffer.c index 4dbe363da82..e46f7fd4bfc 100644 --- a/src/gallium/drivers/r600/r600_buffer.c +++ b/src/gallium/drivers/r600/r600_buffer.c @@ -150,6 +150,7 @@ static void *r600_buffer_transfer_map(struct pipe_context *ctx, } else if ((usage & PIPE_TRANSFER_DISCARD_RANGE) && !(usage & PIPE_TRANSFER_UNSYNCHRONIZED) && + !(rctx->screen->debug_flags & DBG_NO_DISCARD_RANGE) && (rctx->screen->has_cp_dma || (rctx->screen->has_streamout && /* The buffer range must be aligned to 4 with streamout. */ |