From 7b7a7c2bfcf9f5cd51e8937125e736af6a21cab0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg=20Kristensen?= Date: Wed, 20 Jan 2016 14:36:52 -0800 Subject: [PATCH] vk: Make maxSamplerAllocationCount more reasonable We can't allocate 4 billion samplers. Let's go with 64k. --- src/vulkan/anv_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vulkan/anv_device.c b/src/vulkan/anv_device.c index 949cfe97772..7d0f25e7d70 100644 --- a/src/vulkan/anv_device.c +++ b/src/vulkan/anv_device.c @@ -413,7 +413,7 @@ void anv_GetPhysicalDeviceProperties( .maxStorageBufferRange = UINT32_MAX, .maxPushConstantsSize = MAX_PUSH_CONSTANTS_SIZE, .maxMemoryAllocationCount = UINT32_MAX, - .maxSamplerAllocationCount = UINT32_MAX, + .maxSamplerAllocationCount = 64 * 1024, .bufferImageGranularity = 64, /* A cache line */ .sparseAddressSpaceSize = 0, .maxBoundDescriptorSets = MAX_SETS, -- 2.30.2