vk: Make maxSamplerAllocationCount more reasonable

We can't allocate 4 billion samplers. Let's go with 64k.
This commit is contained in:
Kristian Høgsberg Kristensen 2016-01-20 14:36:52 -08:00
parent 8ef002dd7a
commit 7b7a7c2bfc

View file

@ -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,