zink: explicitly null pipe_resource::next when creating transients

this otherwise blows up the aux resources

cc: mesa-stable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39336>
This commit is contained in:
Mike Blumenkrantz 2026-01-19 12:26:08 -05:00 committed by Marge Bot
parent 9fd8041d24
commit 34ba521acd

View file

@ -298,6 +298,7 @@ zink_create_transient_surface(struct zink_context *ctx, const struct pipe_surfac
if (!res->transient || res->transient->base.b.nr_samples != nr_samples) {
/* transient fb attachment: not cached */
struct pipe_resource rtempl = *psurf->texture;
rtempl.next = NULL;
rtempl.nr_samples = nr_samples;
rtempl.bind &= ~(PIPE_BIND_LINEAR | ZINK_BIND_DMABUF);
rtempl.bind |= ZINK_BIND_TRANSIENT;