anv: silence unused variable warning
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 15 Mar 2018 16:34:47 +0000 (16:34 +0000)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 15 Mar 2018 18:56:26 +0000 (18:56 +0000)
Fixes: 59b0ea0c748 ("anv: Stop returning VK_ERROR_INCOMPATIBLE_DRIVER")
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
src/intel/vulkan/anv_device.c

index d8c4e9863164bf8b66e4fbc5e61b3dcc56cb0089..82b237e76d8f83b82bc67e5859435329b34d2f66 100644 (file)
@@ -514,13 +514,6 @@ VkResult anv_CreateInstance(
 
    assert(pCreateInfo->sType == VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO);
 
-   /* Check if user passed a debug report callback to be used during
-    * Create/Destroy of instance.
-    */
-   const VkDebugReportCallbackCreateInfoEXT *ctor_cb =
-      vk_find_struct_const(pCreateInfo->pNext,
-                           DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT);
-
    struct anv_instance_extension_table enabled_extensions = {};
    for (uint32_t i = 0; i < pCreateInfo->enabledExtensionCount; i++) {
       int idx;