From 71a2e4e9452a6890197f8b629b2d8359bdd58913 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Mon, 6 Mar 2017 01:47:52 +0100 Subject: [PATCH] radeonsi: mark all bound shader buffer ranges as initialized This should prevent cases when a buffer was incorrectly mapped without synchronization just because this wasn't done. Cc: 13.0 17.0 Reviewed-by: Samuel Pitoiset --- src/gallium/drivers/radeonsi/si_descriptors.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_descriptors.c b/src/gallium/drivers/radeonsi/si_descriptors.c index 10acb27a25e..eb79578b347 100644 --- a/src/gallium/drivers/radeonsi/si_descriptors.c +++ b/src/gallium/drivers/radeonsi/si_descriptors.c @@ -1227,6 +1227,9 @@ static void si_set_shader_buffers(struct pipe_context *ctx, descs->dirty_mask |= 1u << slot; sctx->descriptors_dirty |= 1u << si_shader_buffer_descriptors_idx(shader); + + util_range_add(&buf->valid_buffer_range, sbuffer->buffer_offset, + sbuffer->buffer_offset + sbuffer->buffer_size); } } -- 2.30.2