mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 05:00:09 +01:00
hasvk: use vk_descriptor_type_is_dynamic
No need to open-code this one now that we have a generic helper. Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32627>
This commit is contained in:
parent
e17abeca44
commit
97dec34a89
1 changed files with 1 additions and 2 deletions
|
|
@ -1604,8 +1604,7 @@ anv_descriptor_set_write_buffer(struct anv_device *device,
|
|||
memcpy(desc_map, &desc_data, sizeof(desc_data));
|
||||
}
|
||||
|
||||
if (type == VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC ||
|
||||
type == VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC)
|
||||
if (vk_descriptor_type_is_dynamic(type))
|
||||
return;
|
||||
|
||||
assert(data & ANV_DESCRIPTOR_BUFFER_VIEW);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue