[Mesa-dev] [PATCH] radeonsi: set descriptor dirty mask on shader buffer unbind
Marek Olšák
maraeo at gmail.com
Fri Jun 3 15:11:09 UTC 2016
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Marek
On Fri, Jun 3, 2016 at 3:20 PM, Nicolai Hähnle <nhaehnle at gmail.com> wrote:
> From: Nicolai Hähnle <nicolai.haehnle at amd.com>
>
> Found randomly while skimming the code. This might have caused VM faults in
> robustness tests.
>
> Cc: 12.0 <mesa-stable at lists.freedesktop.org>
> ---
> src/gallium/drivers/radeonsi/si_descriptors.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/gallium/drivers/radeonsi/si_descriptors.c b/src/gallium/drivers/radeonsi/si_descriptors.c
> index d66996a..81bd6d6 100644
> --- a/src/gallium/drivers/radeonsi/si_descriptors.c
> +++ b/src/gallium/drivers/radeonsi/si_descriptors.c
> @@ -968,6 +968,7 @@ static void si_set_shader_buffers(struct pipe_context *ctx, unsigned shader,
> pipe_resource_reference(&buffers->buffers[slot], NULL);
> memset(desc, 0, sizeof(uint32_t) * 4);
> buffers->desc.enabled_mask &= ~(1u << slot);
> + buffers->desc.dirty_mask |= 1u << slot;
> continue;
> }
>
> --
> 2.7.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list