mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
anv/hasvk: speed up null image/view descriptor writes
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reported-by: Chuansheng Liu <chuansheng.liu@intel.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21642>
This commit is contained in:
parent
646cff13bc
commit
c914e70bce
2 changed files with 8 additions and 0 deletions
|
|
@ -1405,6 +1405,10 @@ anv_descriptor_set_write_image_view(struct anv_device *device,
|
|||
void *desc_map = set->desc_mem.map + bind_layout->descriptor_offset +
|
||||
element * bind_layout->descriptor_stride;
|
||||
memset(desc_map, 0, bind_layout->descriptor_stride);
|
||||
|
||||
if (image_view == NULL && sampler == NULL)
|
||||
return;
|
||||
|
||||
enum anv_descriptor_data data =
|
||||
bind_layout->type == VK_DESCRIPTOR_TYPE_MUTABLE_EXT ?
|
||||
anv_descriptor_data_for_type(device->physical, type) :
|
||||
|
|
|
|||
|
|
@ -1400,6 +1400,10 @@ anv_descriptor_set_write_image_view(struct anv_device *device,
|
|||
void *desc_map = set->desc_mem.map + bind_layout->descriptor_offset +
|
||||
element * bind_layout->descriptor_stride;
|
||||
memset(desc_map, 0, bind_layout->descriptor_stride);
|
||||
|
||||
if (image_view == NULL && sampler == NULL)
|
||||
return;
|
||||
|
||||
enum anv_descriptor_data data =
|
||||
bind_layout->type == VK_DESCRIPTOR_TYPE_MUTABLE_VALVE ?
|
||||
anv_descriptor_data_for_type(device->physical, type) :
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue