[Mesa-dev] [PATCH 2/5] r600g: don't handle DISCARD_RANGE on r6xx

Marek Olšák maraeo at gmail.com
Tue Feb 26 13:41:06 PST 2013


It does not work with TF2.

NOTE: This is a candidate for the 9.1 branch.
---
 src/gallium/drivers/r600/r600_buffer.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/r600/r600_buffer.c b/src/gallium/drivers/r600/r600_buffer.c
index e0ac047..9f8f739 100644
--- a/src/gallium/drivers/r600/r600_buffer.c
+++ b/src/gallium/drivers/r600/r600_buffer.c
@@ -139,6 +139,7 @@ static void *r600_buffer_transfer_map(struct pipe_context *ctx,
 	}
 	else if ((usage & PIPE_TRANSFER_DISCARD_RANGE) &&
 		 !(usage & PIPE_TRANSFER_UNSYNCHRONIZED) &&
+		 rctx->chip_class != R600 &&
 		 (rctx->screen->has_cp_dma ||
 		  (rctx->screen->has_streamout &&
 		   /* The buffer range must be aligned to 4 with streamout. */
-- 
1.7.10.4



More information about the mesa-dev mailing list