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:
Lionel Landwerlin 2025-12-16 12:48:36 +02:00 committed by Marge Bot
parent ec456e99f2
commit 3dc7d71909

View file

@ -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) {