mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
zink: explicitly null pipe_resource::next when creating transients
this otherwise blows up the aux resources
cc: mesa-stable
(cherry picked from commit 34ba521acd)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39462>
This commit is contained in:
parent
86752ce4e8
commit
a058d3b074
2 changed files with 2 additions and 1 deletions
|
|
@ -724,7 +724,7 @@
|
|||
"description": "zink: explicitly null pipe_resource::next when creating transients",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -294,6 +294,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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue