Re: [Mesa-dev] [PATCH] radv: Reinitialise loaderMagic when allocating a cached command buffer

2017-03-13 Thread Bas Nieuwenhuizen
Thanks. Pushed. - Bas On Mon, Mar 13, 2017 at 2:28 PM, Alex Smith wrote: > 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

[Mesa-dev] [PATCH] radv: Reinitialise loaderMagic when allocating a cached command buffer

2017-03-13 Thread Alex Smith
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