mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 12:18:09 +02:00
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:
parent
9fd8041d24
commit
34ba521acd
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue