On 15/03/17 15:17, Timothy Arceri wrote:
--- src/amd/vulkan/radv_device.c | 4 +++- src/amd/vulkan/radv_pipeline.c | 9 ++++++--- src/amd/vulkan/radv_pipeline_cache.c | 7 +++++-- src/amd/vulkan/radv_private.h | 3 ++- 4 files changed, 16 insertions(+), 7 deletions(-)diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 875057c..65e6a2c 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -984,26 +984,28 @@ VkResult radv_CreateDevice( if (device->physical_device->rad_info.chip_class >= CIK) cik_create_gfx_config(device); VkPipelineCacheCreateInfo ci; ci.sType = VK_STRUCTURE_TYPE_PIPELINE_CACHE_CREATE_INFO; ci.pNext = NULL; ci.flags = 0; ci.pInitialData = NULL; ci.initialDataSize = 0; - VkPipelineCache pc = radv_pipeline_cache_to_handle(device->mem_cache); + VkPipelineCache pc; result = radv_CreatePipelineCache(radv_device_to_handle(device), &ci, NULL, &pc); if (result != VK_SUCCESS) goto fail; + device->mem_cache = radv_pipeline_cache_from_handle(pc); + *pDevice = radv_device_to_handle(device); return VK_SUCCESS;
This hunk was meant to be squashed into the previous commit. Fixed locally. _______________________________________________ mesa-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-dev
