mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 20:00:11 +01:00
zink: strip dmabuf bind flags when creating transient image
these enforce LINEAR tiling, which is broken with msaa cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37743>
This commit is contained in:
parent
efe1926cf0
commit
3d90a95ad3
1 changed files with 1 additions and 0 deletions
|
|
@ -295,6 +295,7 @@ zink_create_transient_surface(struct zink_context *ctx, const struct pipe_surfac
|
|||
/* transient fb attachment: not cached */
|
||||
struct pipe_resource rtempl = *psurf->texture;
|
||||
rtempl.nr_samples = nr_samples;
|
||||
rtempl.bind &= ~(PIPE_BIND_LINEAR | ZINK_BIND_DMABUF);
|
||||
rtempl.bind |= ZINK_BIND_TRANSIENT;
|
||||
res->transient = zink_resource(ctx->base.screen->resource_create(ctx->base.screen, &rtempl));
|
||||
transient = res->transient;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue