[Mesa-dev] [PATCH 1/5] radeonsi: re-use 'desc' in si_set_shader_image()

Samuel Pitoiset samuel.pitoiset at gmail.com
Wed Apr 5 22:07:31 UTC 2017


No need to compute the offset in the descriptor twice.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 src/gallium/drivers/radeonsi/si_descriptors.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/gallium/drivers/radeonsi/si_descriptors.c b/src/gallium/drivers/radeonsi/si_descriptors.c
index 8f5a16ba47..703a7cb1fa 100644
--- a/src/gallium/drivers/radeonsi/si_descriptors.c
+++ b/src/gallium/drivers/radeonsi/si_descriptors.c
@@ -749,8 +749,7 @@ static void si_set_shader_image(struct si_context *ctx,
 		si_make_buffer_descriptor(screen, res,
 					  view->format,
 					  view->u.buf.offset,
-					  view->u.buf.size,
-					  descs->list + slot * 8);
+					  view->u.buf.size, desc);
 		si_set_buf_desc_address(res, view->u.buf.offset, desc + 4);
 
 		images->compressed_colortex_mask &= ~(1 << slot);
-- 
2.12.2



More information about the mesa-dev mailing list