From: Samuel Pitoiset Date: Tue, 12 Sep 2017 17:08:47 +0000 (+0200) Subject: radv: clear push_constant_stages when resetting a command buffer X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=375c4868efa3cf549699557989c8f5c08c0710f0;p=mesa.git radv: clear push_constant_stages when resetting a command buffer Per the spec: "Resetting a command buffer is an operation that discards any previously recorded commands and puts a command buffer in the initial state." As far I'm concerned, that flag can be changed by calling VkCmdPushConstants() (or any other functions which update it), so it should be cleared as well. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index b0e6f139e73..4578ac80254 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -215,6 +215,7 @@ radv_reset_cmd_buffer(struct radv_cmd_buffer *cmd_buffer) free(up); } + cmd_buffer->push_constant_stages = 0; cmd_buffer->scratch_size_needed = 0; cmd_buffer->compute_scratch_size_needed = 0; cmd_buffer->esgs_ring_size_needed = 0;