[Mesa-dev] [PATCH 1/3] gallium/radeon: remove useless cast in radeon_add_to_buffer_list()

Samuel Pitoiset samuel.pitoiset at gmail.com
Fri Apr 14 16:32:23 UTC 2017


Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 src/gallium/drivers/radeon/r600_cs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/radeon/r600_cs.h b/src/gallium/drivers/radeon/r600_cs.h
index 28bdf15b8a..5e6cb1fe1c 100644
--- a/src/gallium/drivers/radeon/r600_cs.h
+++ b/src/gallium/drivers/radeon/r600_cs.h
@@ -75,7 +75,7 @@ static inline unsigned radeon_add_to_buffer_list(struct r600_common_context *rct
 	assert(usage);
 	return rctx->ws->cs_add_buffer(
 		ring->cs, rbo->buf,
-		(enum radeon_bo_usage)(usage | RADEON_USAGE_SYNCHRONIZED),
+		usage | RADEON_USAGE_SYNCHRONIZED,
 		rbo->domains, priority) * 4;
 }
 
-- 
2.12.2



More information about the mesa-dev mailing list