diff options
author | Samuel Pitoiset <[email protected]> | 2017-04-06 00:07:31 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-04-10 23:05:27 +0200 |
commit | 51d6641700146fc22c66b96ad5841268b1c28468 (patch) | |
tree | 4a5e35f15d8bbb3990979a928d64983db6add675 | |
parent | a1c37ff9e4cfea0a645a15634299ef7d55362b09 (diff) |
radeonsi: re-use 'desc' in si_set_shader_image()
No need to compute the offset in the descriptor twice.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
-rw-r--r-- | src/gallium/drivers/radeonsi/si_descriptors.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_descriptors.c b/src/gallium/drivers/radeonsi/si_descriptors.c index 8f5a16ba47a..703a7cb1fa8 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); |