vk: Make maxSamplerAllocationCount more reasonable
authorKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Wed, 20 Jan 2016 22:36:52 +0000 (14:36 -0800)
committerKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Wed, 20 Jan 2016 22:36:52 +0000 (14:36 -0800)
We can't allocate 4 billion samplers. Let's go with 64k.

src/vulkan/anv_device.c

index 949cfe9777290450d32823627ab0ca529c2a3993..7d0f25e7d70705bbd7d67e0bfb4f89dedc386baa 100644 (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,