vk: Fix copy-n-paste sType in vkCreateSampler
authorKristian Høgsberg <kristian.h.kristensen@intel.com>
Wed, 13 May 2015 20:53:01 +0000 (13:53 -0700)
committerKristian Høgsberg <kristian.h.kristensen@intel.com>
Wed, 13 May 2015 21:47:11 +0000 (14:47 -0700)
src/vulkan/device.c

index 644339825734feedc729824e7268885ab88530c4..be274c857bb81aee12e42c7a6f8ec4305799f071 100644 (file)
@@ -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);