radv: Do not change scratch settings while shaders are active.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 31 Oct 2019 21:53:30 +0000 (22:53 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 20 Nov 2019 01:18:36 +0000 (01:18 +0000)
commit4eb2a1dc6fc32a047d53620a929eae0bb255f9da
tree0daaef8989142ca82ab944ade2b0f9e03f055ad9
parentbdf03b738d6f9f02de033c87e38638636d2a8a70
radv: Do not change scratch settings while shaders are active.

When the scratch ringbuffer settings are changed, the shader unit has
to be idle or we will have shaders using old and new settings.

That combination is not supported on the HW (likely the offset is
ringbuffer idx * WAVESIZE * 1024).

CC: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_cmd_buffer.c
src/amd/vulkan/radv_device.c
src/amd/vulkan/radv_pipeline.c
src/amd/vulkan/radv_private.h