summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-10-13 18:20:21 +0200
committerSamuel Pitoiset <[email protected]>2017-10-14 12:05:19 +0200
commit3e5f27faf3b0702c66f932b3e6ba6301c371e2d1 (patch)
tree38cc47d78ad7121188b29ecf345d3d2624a3c94e
parent1cec500c69b7fff50466b17282e83b3c8490c1fa (diff)
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: [email protected] Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
-rw-r--r--src/amd/vulkan/radv_cmd_buffer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c
index 495fd67dbbc..47495160aef 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)