mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
anv: fixup robust_ubo_range mask
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:
parent
fa486a0346
commit
07039cdb3d
1 changed files with 9 additions and 2 deletions
|
|
@ -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++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue