radv: Reinitialise loaderMagic when allocating a cached command buffer
authorAlex Smith <asmith@feralinteractive.com>
Mon, 13 Mar 2017 13:28:19 +0000 (13:28 +0000)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 13 Mar 2017 22:42:36 +0000 (23:42 +0100)
commitc19607d59df0edbccc253d299c65aa8d30c54d86
tree5cfe169cd0169debae9b0bd5f91925426e1d785d
parentcdbe4990cda2d0b40f86047dbb65851c22632750
radv: Reinitialise loaderMagic when allocating a cached command buffer

This must be set to ICD_LOADER_MAGIC by vkAllocateCommandBuffers, which
was being done when allocating a new buffer but not when reusing an
existing one in the cache. This would hit an assertion and crash in
debug builds of the Vulkan loader.

Fixes: 682248db451f ("radv: Cache command buffers in command pool.")
Signed-off-by: Alex Smith <asmith@feralinteractive.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_cmd_buffer.c