diff options
author | Bas Nieuwenhuizen <[email protected]> | 2017-01-31 23:59:02 +0100 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2017-03-29 08:50:55 +0200 |
commit | 3df410069a610de5b3fd8965fb99b994516a5d13 (patch) | |
tree | 66d7bf69d2c55b6db9ee39cc81844b39f8f70550 /src | |
parent | b20af5c8d7e607de781ed22694e67e514a133294 (diff) |
radv: Enable sparseBinding feature.
Signed-off-by: Bas Nieuwenhuizen <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/amd/vulkan/radv_device.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index d10d420c3cf..64970bd1b3a 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -489,6 +489,7 @@ void radv_GetPhysicalDeviceFeatures( .shaderFloat64 = true, .shaderInt64 = false, .shaderInt16 = false, + .sparseBinding = true, .variableMultisampleRate = false, .inheritedQueries = false, }; @@ -542,7 +543,7 @@ void radv_GetPhysicalDeviceProperties( .maxMemoryAllocationCount = UINT32_MAX, .maxSamplerAllocationCount = 64 * 1024, .bufferImageGranularity = 64, /* A cache line */ - .sparseAddressSpaceSize = 0, + .sparseAddressSpaceSize = 0xffffffffu, /* buffer max size */ .maxBoundDescriptorSets = MAX_SETS, .maxPerStageDescriptorSamplers = 64, .maxPerStageDescriptorUniformBuffers = 64, @@ -687,8 +688,9 @@ static void radv_get_physical_device_queue_family_properties( if (*pCount >= 1) { *pQueueFamilyProperties[idx] = (VkQueueFamilyProperties) { .queueFlags = VK_QUEUE_GRAPHICS_BIT | - VK_QUEUE_COMPUTE_BIT | - VK_QUEUE_TRANSFER_BIT, + VK_QUEUE_COMPUTE_BIT | + VK_QUEUE_TRANSFER_BIT | + VK_QUEUE_SPARSE_BINDING_BIT, .queueCount = 1, .timestampValidBits = 64, .minImageTransferGranularity = (VkExtent3D) { 1, 1, 1 }, @@ -701,7 +703,9 @@ static void radv_get_physical_device_queue_family_properties( !(pdevice->instance->debug_flags & RADV_DEBUG_NO_COMPUTE_QUEUE)) { if (*pCount > idx) { *pQueueFamilyProperties[idx] = (VkQueueFamilyProperties) { - .queueFlags = VK_QUEUE_COMPUTE_BIT | VK_QUEUE_TRANSFER_BIT, + .queueFlags = VK_QUEUE_COMPUTE_BIT | + VK_QUEUE_TRANSFER_BIT | + VK_QUEUE_SPARSE_BINDING_BIT, .queueCount = pdevice->rad_info.compute_rings, .timestampValidBits = 64, .minImageTransferGranularity = (VkExtent3D) { 1, 1, 1 }, |