anv: fixup robust_ubo_range mask
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: c7e48f79b7 ("brw,anv: Reduce UBO robustness size alignment to 16 bytes")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13834
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37183>
This commit is contained in:
Lionel Landwerlin 2025-09-04 20:08:11 +03:00 committed by Marge Bot
parent fa486a0346
commit 07039cdb3d

View file

@ -455,8 +455,15 @@ cmd_buffer_flush_gfx_push_constants(struct anv_cmd_buffer *cmd_buffer,
continue;
/* Skip any push ranges that were not promoted from UBOs */
if (range->set >= MAX_SETS)
if (range->set >= MAX_SETS) {
/* The indexing in prog_data->robust_ubo_ranges is based off
* prog_data->ubo_ranges which does not include the
* prog_data->nr_params (Vulkan push constants).
*/
if (range->set != ANV_DESCRIPTOR_SET_PUSH_CONSTANTS)
ubo_range_index++;
continue;
}
assert(shader->prog_data->robust_ubo_ranges & (1 << ubo_range_index));
@ -482,7 +489,7 @@ cmd_buffer_flush_gfx_push_constants(struct anv_cmd_buffer *cmd_buffer,
gfx->base.push_constants_data_dirty = true;
}
++ubo_range_index;
ubo_range_index++;
}
}
}