From 51d6641700146fc22c66b96ad5841268b1c28468 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Thu, 6 Apr 2017 00:07:31 +0200 Subject: [PATCH] radeonsi: re-use 'desc' in si_set_shader_image() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit No need to compute the offset in the descriptor twice. Signed-off-by: Samuel Pitoiset Reviewed-by: Marek Olšák --- 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 8f5a16b..703a7cb 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.7.4