From: Kristian Høgsberg Date: Wed, 13 May 2015 20:53:01 +0000 (-0700) Subject: vk: Fix copy-n-paste sType in vkCreateSampler X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=18acfa7301b566baa6bd168302d0c923f75c7736;p=mesa.git vk: Fix copy-n-paste sType in vkCreateSampler --- diff --git a/src/vulkan/device.c b/src/vulkan/device.c index 64433982573..be274c857bb 100644 --- a/src/vulkan/device.c +++ b/src/vulkan/device.c @@ -1326,7 +1326,7 @@ VkResult VKAPI vkCreateSampler( struct anv_device *device = (struct anv_device *) _device; struct anv_sampler *sampler; - assert(pCreateInfo->sType == VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO); + assert(pCreateInfo->sType == VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO); sampler = anv_device_alloc(device, sizeof(*sampler), 8, VK_SYSTEM_ALLOC_TYPE_API_OBJECT);