diff options
Diffstat (limited to 'src/intel/vulkan/anv_formats.c')
-rw-r--r-- | src/intel/vulkan/anv_formats.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_formats.c b/src/intel/vulkan/anv_formats.c index db1ea3f1818..a3d25ebc3e6 100644 --- a/src/intel/vulkan/anv_formats.c +++ b/src/intel/vulkan/anv_formats.c @@ -1293,6 +1293,8 @@ VkResult anv_CreateSamplerYcbcrConversion( memset(conversion, 0, sizeof(*conversion)); + vk_object_base_init(&device->vk, &conversion->base, + VK_OBJECT_TYPE_SAMPLER_YCBCR_CONVERSION); conversion->format = anv_get_format(pCreateInfo->format); conversion->ycbcr_model = pCreateInfo->ycbcrModel; conversion->ycbcr_range = pCreateInfo->ycbcrRange; @@ -1342,5 +1344,6 @@ void anv_DestroySamplerYcbcrConversion( if (!conversion) return; + vk_object_base_finish(&conversion->base); vk_free2(&device->vk.alloc, pAllocator, conversion); } |