Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/asahi/vulkan/hk_cmd_draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -3928,7 +3928,11 @@ hk_begin_end_xfb(VkCommandBuffer commandBuffer, uint32_t firstCounterBuffer,
}
}

for (unsigned i = 0; i < counterBufferCount; ++i) {
/* pCounterBuffers may be NULL, even with a non-zero count. It then names no
* counter buffer: Begin starts every buffer at offset zero and End writes
* nothing.
*/
for (unsigned i = 0; pCounterBuffers && i < counterBufferCount; ++i) {
if (pCounterBuffers[i] == VK_NULL_HANDLE)
continue;

Expand Down