[Mesa-dev] [PATCH 1/4] gallium/radeon: don't re-set BO metadata after CMASK deallocation

Marek Olšák maraeo at gmail.com
Fri Jun 3 10:52:11 UTC 2016


From: Marek Olšák <marek.olsak at amd.com>

CMASK has no effect on metadata, because it's not sharable.
---
 src/gallium/drivers/radeon/r600_texture.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c
index bf6cfe8..71758c4 100644
--- a/src/gallium/drivers/radeon/r600_texture.c
+++ b/src/gallium/drivers/radeon/r600_texture.c
@@ -510,7 +510,6 @@ static boolean r600_texture_get_handle(struct pipe_screen* screen,
 			 * to be called.
 			 */
 			r600_texture_discard_cmask(rscreen, rtex);
-			update_metadata = true;
 		}
 
 		/* Set metadata. */
-- 
2.7.4



More information about the mesa-dev mailing list