Mesa (staging/19.1): radv: allocate more space in the CS when emitting events

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jun 4 14:25:29 UTC 2019


Module: Mesa
Branch: staging/19.1
Commit: 411114c45ceabf5a2b62c1c7968ad306bb8d2058
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=411114c45ceabf5a2b62c1c7968ad306bb8d2058

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Tue May 28 12:58:05 2019 +0200

radv: allocate more space in the CS when emitting events

If the driver waits for CP DMA to be idle and emit an EOP event
we need more space.

This fixes a crash with Quake Champions.

Cc: <mesa-stable at lists.freedesktop.org>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
(cherry picked from commit 47a10edefb3510d1cae071037dac78a46b31949b)

---

 src/amd/vulkan/radv_cmd_buffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c
index 890662841d2..73f027df15d 100644
--- a/src/amd/vulkan/radv_cmd_buffer.c
+++ b/src/amd/vulkan/radv_cmd_buffer.c
@@ -4825,7 +4825,7 @@ static void write_event(struct radv_cmd_buffer *cmd_buffer,
 
 	radv_cs_add_buffer(cmd_buffer->device->ws, cs, event->bo);
 
-	MAYBE_UNUSED unsigned cdw_max = radeon_check_space(cmd_buffer->device->ws, cs, 18);
+	MAYBE_UNUSED unsigned cdw_max = radeon_check_space(cmd_buffer->device->ws, cs, 21);
 
 	/* Flags that only require a top-of-pipe event. */
 	VkPipelineStageFlags top_of_pipe_flags =




More information about the mesa-commit mailing list