radv: only reset command buffers that are not in the initial state
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 6 Dec 2017 16:48:41 +0000 (17:48 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 8 Dec 2017 10:21:23 +0000 (11:21 +0100)
commita302009b7b8e5d29e9cd78e48e52b897db85e027
treedc6ee21daba5dcfb7f40b968c80a9516e15dd26c
parenta380bc7ecfe52b726970d62c2bdc12d3840f95e1
radv: only reset command buffers that are not in the initial state

dota2 always calls vkResetCommandBuffer() before
vkBeginCommandBuffer() which is quite useless.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_cmd_buffer.c