st_pbo/compute: Use the correct structure type when allocating a specialized key

Use pbo_spec_async_data instead of pbo_async_data.

Cc: mesa-stable
Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28173>
This commit is contained in:
Corentin Noël
2024-03-14 12:58:20 +01:00
committed by Marge Bot
parent 27ab5fcf9f
commit 812be09cd2
+1 -1
View File
@@ -844,7 +844,7 @@ add_spec_data(struct pbo_async_data *async, struct pbo_data *pd)
struct pbo_spec_async_data *spec;
struct set_entry *entry = _mesa_set_search_or_add(&async->specialized, pd, &found);
if (!found) {
spec = calloc(1, sizeof(struct pbo_async_data));
spec = calloc(1, sizeof(struct pbo_spec_async_data));
util_queue_fence_init(&spec->fence);
memcpy(spec->data, pd, sizeof(struct pbo_data));
entry->key = spec;