Mesa (master): radv: add the draw count buffer to the list of buffers
Samuel Pitoiset
hakzsam at kemper.freedesktop.org
Sat Oct 14 10:07:17 UTC 2017
Module: Mesa
Branch: master
Commit: 3e5f27faf3b0702c66f932b3e6ba6301c371e2d1
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3e5f27faf3b0702c66f932b3e6ba6301c371e2d1
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date: Fri Oct 13 18:20:21 2017 +0200
radv: add the draw count buffer to the list of buffers
My guess is that the GPU is going to report VM faults if
vkCmdDrawIndirectCountAMD() (and friends) are used.
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>
---
src/amd/vulkan/radv_cmd_buffer.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c
index 495fd67dbb..47495160ae 100644
--- a/src/amd/vulkan/radv_cmd_buffer.c
+++ b/src/amd/vulkan/radv_cmd_buffer.c
@@ -2992,6 +2992,8 @@ radv_emit_indirect_draw(struct radv_cmd_buffer *cmd_buffer,
if (count_buffer) {
count_va = radv_buffer_get_va(count_buffer->bo);
count_va += count_offset + count_buffer->offset;
+
+ cmd_buffer->device->ws->cs_add_buffer(cs, count_buffer->bo, 8);
}
if (!draw_count)
More information about the mesa-commit
mailing list