diff options
author | Dave Airlie <airlied@redhat.com> | 2017-04-27 09:31:29 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2017-04-27 10:50:46 +1000 |
commit | 9da104593386f6e8ddec8f0d9d288aceb8908fe1 (patch) | |
tree | 850b28db8005e557faa5af85b63414c8fbb58ecf /src | |
parent | f8a2d000460854b825a84550c6068c7d123edff9 (diff) |
radv: fix regression in descriptor set freeing.
Since the host pool changes,
Fixes:
dEQP-VK.api.descriptor_pool.out_of_pool_memory
Fixes: 126d5ad "radv: Use host memory pool for non-freeable descriptors."
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/amd/vulkan/radv_descriptor_set.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_descriptor_set.c b/src/amd/vulkan/radv_descriptor_set.c index b608063d0706..ec7fd3d8cc80 100644 --- a/src/amd/vulkan/radv_descriptor_set.c +++ b/src/amd/vulkan/radv_descriptor_set.c @@ -527,7 +527,7 @@ VkResult radv_FreeDescriptorSets( for (uint32_t i = 0; i < count; i++) { RADV_FROM_HANDLE(radv_descriptor_set, set, pDescriptorSets[i]); - if (set) + if (set && !pool->host_memory_base) radv_descriptor_set_destroy(device, pool, set, true); } return VK_SUCCESS; |