radv: allocate enough space in cmdbuf when starting a subpass
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 5 Mar 2019 09:45:00 +0000 (10:45 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 5 Mar 2019 14:00:10 +0000 (15:00 +0100)
commit2eb0905ffa133129a65d20e098f121302944a753
tree9c5506ec89962d3c362ff453231d9ffda259a57b
parent31d302ae51a2c07d17a994778193f8ba48f080a6
radv: allocate enough space in cmdbuf when starting a subpass

This fixes some CTS crashes with:
dEQP-VK.renderpass2.suballocation.attachment_write_mask.attachment_count_8.start_index_*

Ideally, we should check cmd_buffer->cs->max_dw because there is
likely enough space (the internal clear draws allocate space), but
keep that way for consistency.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_cmd_buffer.c