From: Kristian Høgsberg Kristensen Date: Wed, 20 Jan 2016 22:36:52 +0000 (-0800) Subject: vk: Make maxSamplerAllocationCount more reasonable X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7b7a7c2bfcf9f5cd51e8937125e736af6a21cab0;p=mesa.git vk: Make maxSamplerAllocationCount more reasonable We can't allocate 4 billion samplers. Let's go with 64k. --- 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,