winevulkan: Remove unnecessary WINEVULKAN_QUIRK_ADJUST_MAX_IMAGE_COUNT quirk.
This commit is contained in:
parent
1ee1f2e9d7
commit
72c228a3ab
2 changed files with 1 additions and 4 deletions
|
@ -893,8 +893,6 @@ VkResult wine_vkCreateInstance(const VkInstanceCreateInfo *create_info,
|
||||||
object->quirks |= WINEVULKAN_QUIRK_GET_DEVICE_PROC_ADDR;
|
object->quirks |= WINEVULKAN_QUIRK_GET_DEVICE_PROC_ADDR;
|
||||||
}
|
}
|
||||||
|
|
||||||
object->quirks |= WINEVULKAN_QUIRK_ADJUST_MAX_IMAGE_COUNT;
|
|
||||||
|
|
||||||
client_instance->base.unix_handle = (uintptr_t)object;
|
client_instance->base.unix_handle = (uintptr_t)object;
|
||||||
*instance = client_instance;
|
*instance = client_instance;
|
||||||
TRACE("Created instance %p, host_instance %p.\n", object, object->host_instance);
|
TRACE("Created instance %p, host_instance %p.\n", object, object->host_instance);
|
||||||
|
@ -1866,7 +1864,7 @@ static void adjust_surface_capabilities(struct wine_instance *instance, struct w
|
||||||
* https://vulkan.gpuinfo.org/displayreport.php?id=9122#surface
|
* https://vulkan.gpuinfo.org/displayreport.php?id=9122#surface
|
||||||
* https://vulkan.gpuinfo.org/displayreport.php?id=9121#surface
|
* https://vulkan.gpuinfo.org/displayreport.php?id=9121#surface
|
||||||
*/
|
*/
|
||||||
if ((instance->quirks & WINEVULKAN_QUIRK_ADJUST_MAX_IMAGE_COUNT) && !capabilities->maxImageCount)
|
if (!capabilities->maxImageCount)
|
||||||
capabilities->maxImageCount = max(capabilities->minImageCount, 16);
|
capabilities->maxImageCount = max(capabilities->minImageCount, 16);
|
||||||
|
|
||||||
/* Update the image extents to match what the Win32 WSI would provide. */
|
/* Update the image extents to match what the Win32 WSI would provide. */
|
||||||
|
|
|
@ -39,7 +39,6 @@
|
||||||
#define VULKAN_ICD_MAGIC_VALUE 0x01CDC0DE
|
#define VULKAN_ICD_MAGIC_VALUE 0x01CDC0DE
|
||||||
|
|
||||||
#define WINEVULKAN_QUIRK_GET_DEVICE_PROC_ADDR 0x00000001
|
#define WINEVULKAN_QUIRK_GET_DEVICE_PROC_ADDR 0x00000001
|
||||||
#define WINEVULKAN_QUIRK_ADJUST_MAX_IMAGE_COUNT 0x00000002
|
|
||||||
|
|
||||||
/* Base 'class' for our Vulkan dispatchable objects such as VkDevice and VkInstance.
|
/* Base 'class' for our Vulkan dispatchable objects such as VkDevice and VkInstance.
|
||||||
* This structure MUST be the first element of a dispatchable object as the ICD
|
* This structure MUST be the first element of a dispatchable object as the ICD
|
||||||
|
|
Loading…
Add table
Reference in a new issue