mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 09:18:04 +02:00
anv: track descriptor data size
descriptor_stride includes multiple plane size, this new field tracks just the data of one plane. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21645>
This commit is contained in:
parent
86a7cc8d8f
commit
1d24d0bdcc
2 changed files with 5 additions and 0 deletions
|
|
@ -657,6 +657,8 @@ VkResult anv_CreateDescriptorSetLayout(
|
|||
break;
|
||||
}
|
||||
|
||||
set_layout->binding[b].descriptor_data_size =
|
||||
anv_descriptor_data_size(set_layout->binding[b].data);
|
||||
set_layout->binding[b].descriptor_stride =
|
||||
binding->descriptorType == VK_DESCRIPTOR_TYPE_MUTABLE_EXT ?
|
||||
anv_descriptor_size_for_mutable_type(device->physical, mutable_info, b) :
|
||||
|
|
|
|||
|
|
@ -1712,6 +1712,9 @@ struct anv_descriptor_set_binding_layout {
|
|||
*/
|
||||
int16_t dynamic_offset_index;
|
||||
|
||||
/* Computed size from data */
|
||||
uint16_t descriptor_data_size;
|
||||
|
||||
/* Index into the descriptor set buffer views */
|
||||
int32_t buffer_view_index;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue