[Mesa-stable] [Mesa-dev] [PATCH] radv: add the draw count buffer to the list of buffers

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Fri Oct 13 17:39:04 UTC 2017


r-b

On Fri, Oct 13, 2017 at 6:20 PM, Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
> My guess is that the GPU is going to report VM faults if
> vkCmdDrawIndirectCountAMD() (and friends) are used.
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> Cc: mesa-stable at lists.freedesktop.org
> ---
>  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 c0fe12b489..c959088378 100644
> --- a/src/amd/vulkan/radv_cmd_buffer.c
> +++ b/src/amd/vulkan/radv_cmd_buffer.c
> @@ -3046,6 +3046,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)
> --
> 2.14.2
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-stable mailing list