mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 06:40:08 +01:00
panvk: reset dyn_bufs map count to 0 in create_copy_table
We were forgetting to reset the map count to 0 in case of dyn_bufs in create_copy_table. This was causing invalid copy entries to be added to the table causing invalid copies in most situation with holes in the set definition while still binding set 0 or at worst an assert to be triggered in cmd_fill_dyn_bufs. This fixes "dEQP-GLES3.functional.ubo.*" and dEQP-GLES31.functional.ubo.*" on PanVK+ANGLE. Signed-off-by: Mary Guillemard <mary.guillemard@collabora.com> Fixes:e350c334b6("panvk: Extend the descriptor lowering pass to support Valhall") Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Eric R. Smith <eric.smith@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34652> (cherry picked from commit8d2e16cc11)
This commit is contained in:
parent
b623c683fb
commit
bc2bf6c1a7
2 changed files with 3 additions and 2 deletions
|
|
@ -294,7 +294,7 @@
|
|||
"description": "panvk: reset dyn_bufs map count to 0 in create_copy_table",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "e350c334b6b2c7b420f326501533984c43d7c900",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -1016,7 +1016,7 @@ create_copy_table(nir_shader *nir, struct lower_desc_ctx *ctx)
|
|||
}
|
||||
desc_info->dummy_sampler_handle = pan_res_handle(0, dummy_sampler_idx);
|
||||
|
||||
copy_count = desc_info->dyn_bufs.count + desc_info->dyn_bufs.count;
|
||||
copy_count = desc_info->dyn_bufs.count;
|
||||
#endif
|
||||
|
||||
if (copy_count == 0)
|
||||
|
|
@ -1043,6 +1043,7 @@ create_copy_table(nir_shader *nir, struct lower_desc_ctx *ctx)
|
|||
desc_info->dyn_bufs_start = dummy_sampler_idx + 1;
|
||||
|
||||
desc_info->dyn_bufs.map = rzalloc_array(ctx->ht, uint32_t, copy_count);
|
||||
desc_info->dyn_bufs.count = 0;
|
||||
assert(desc_info->dyn_bufs.map);
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue