mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 16:28:08 +02:00
anv: stop going through push ranges on the first empty slot
The way we build our ranges, the first empty one is the end of the ranges. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38975>
This commit is contained in:
parent
ec456e99f2
commit
3dc7d71909
1 changed files with 1 additions and 1 deletions
|
|
@ -452,7 +452,7 @@ cmd_buffer_flush_gfx_push_constants(struct anv_cmd_buffer *cmd_buffer,
|
|||
for (unsigned i = 0; i < 4; i++) {
|
||||
const struct anv_push_range *range = &bind_map->push_ranges[i];
|
||||
if (range->length == 0)
|
||||
continue;
|
||||
break;
|
||||
|
||||
/* Skip any push ranges that were not promoted from UBOs */
|
||||
if (range->set >= MAX_SETS) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue