mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
anv: stop using descriptor layouts for descriptor buffers push sizes
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Ivan Briano <ivan.briano@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36757>
This commit is contained in:
parent
68838d7001
commit
99cf8273f6
1 changed files with 6 additions and 2 deletions
|
|
@ -258,8 +258,12 @@ get_push_range_bound_size(struct anv_cmd_buffer *cmd_buffer,
|
|||
}
|
||||
|
||||
case ANV_DESCRIPTOR_SET_DESCRIPTORS_BUFFER:
|
||||
return gfx_state->base.pipeline->layout.set_layouts[
|
||||
range->index]->descriptor_buffer_surface_size;
|
||||
/* It's hard to bound a reference to a descriptor buffer because we
|
||||
* don't have an actual buffer, only an address. So just return the
|
||||
* maximum size of the heap (which bounds the largest buffer size).
|
||||
*/
|
||||
return anv_physical_device_bindless_heap_size(
|
||||
cmd_buffer->device->physical, true);
|
||||
|
||||
case ANV_DESCRIPTOR_SET_NULL:
|
||||
case ANV_DESCRIPTOR_SET_PUSH_CONSTANTS:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue