radv: clear push_constant_stages when resetting a command buffer
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 12 Sep 2017 17:08:47 +0000 (19:08 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 13 Sep 2017 07:47:45 +0000 (09:47 +0200)
commit375c4868efa3cf549699557989c8f5c08c0710f0
treee78e6f1ee5dc8de251cc01eccef0f8385c212efe
parentef197ead754b7e3ef1ac7294ab6324a4f4ddc214
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 <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_cmd_buffer.c