This fixes an issue when conditional rendering and multiple views
were used with a task+mesh draw call.
Fixes:
2479b6286974c1467bec5120df96650d297dcb7f
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20098>
info->count_buffer->offset + info->count_buffer_offset;
uint64_t workaround_cond_va = 0;
+ if (num_views > 1)
+ ace_predication_size += num_views * 3; /* SET_SH_REG size (view index SGPR) */
+
if (count_va) {
radv_cs_add_buffer(ws, cmd_buffer->ace_internal.cs, info->count_buffer->bo);