mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 12:30:09 +01:00
panvk: fix to advance vs res_table properly
Fix a regression from an unfortunate typo.
Fixes: 48e8d6d207 ("panfrost, panvk: The size of resource tables needs to be a multiple of 4.")
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Christoph Pillmayer <christoph.pillmayer@arm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37951>
This commit is contained in:
parent
800c4d3430
commit
387f75f43d
1 changed files with 2 additions and 1 deletions
|
|
@ -2558,7 +2558,8 @@ panvk_cmd_draw_indirect(struct panvk_cmd_buffer *cmdbuf,
|
|||
uint32_t patch_attribs =
|
||||
cmdbuf->state.gfx.vi.attribs_changing_on_base_instance;
|
||||
uint32_t vs_res_table_size =
|
||||
panvk_shader_res_table_count(&cmdbuf->state.gfx.vs.desc);
|
||||
panvk_shader_res_table_count(&cmdbuf->state.gfx.vs.desc) *
|
||||
pan_size(RESOURCE);
|
||||
bool patch_faus = shader_uses_sysval(vs, graphics, vs.first_vertex) ||
|
||||
shader_uses_sysval(vs, graphics, vs.base_instance);
|
||||
struct cs_index draw_params_addr = cs_scratch_reg64(b, 0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue