mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 12:40:09 +01:00
v3dv/device: do not compute per-pipeline limits multiplying per-stage
There were two problems here:
* We were multiplying by 6, when for graphics pipelines, we only
support 2.
* Right now we are tracking descriptors through the descriptor
maps, and we have one per pipeline. So in practice there is no
difference between per-stage and per-pipeline limits. So far this
was not a problem, we could revisit in the future.
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10207>
This commit is contained in:
parent
e24049da63
commit
cbd299b051
1 changed files with 6 additions and 7 deletions
|
|
@ -1051,14 +1051,13 @@ v3dv_GetPhysicalDeviceProperties(VkPhysicalDevice physicalDevice,
|
|||
.maxPerStageDescriptorInputAttachments = max_input_attachments,
|
||||
.maxPerStageResources = 128,
|
||||
|
||||
/* We multiply some limits by 6 to account for all shader stages */
|
||||
.maxDescriptorSetSamplers = 6 * max_samplers,
|
||||
.maxDescriptorSetUniformBuffers = 6 * max_uniform_buffers,
|
||||
.maxDescriptorSetSamplers = max_samplers,
|
||||
.maxDescriptorSetUniformBuffers = max_uniform_buffers,
|
||||
.maxDescriptorSetUniformBuffersDynamic = 8,
|
||||
.maxDescriptorSetStorageBuffers = 6 * max_storage_buffers,
|
||||
.maxDescriptorSetStorageBuffersDynamic = 6 * max_dynamic_storage_buffers,
|
||||
.maxDescriptorSetSampledImages = 6 * max_sampled_images,
|
||||
.maxDescriptorSetStorageImages = 6 * max_storage_images,
|
||||
.maxDescriptorSetStorageBuffers = max_storage_buffers,
|
||||
.maxDescriptorSetStorageBuffersDynamic = max_dynamic_storage_buffers,
|
||||
.maxDescriptorSetSampledImages = max_sampled_images,
|
||||
.maxDescriptorSetStorageImages = max_storage_images,
|
||||
.maxDescriptorSetInputAttachments = 4,
|
||||
|
||||
/* Vertex limits */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue