Commit 01651523 authored by Icecream95's avatar Icecream95
Browse files

panfrost: Unset shared/scanout binding flags for staging resources

Fixes Xwayland crashes.

Fixes: e00d94f1

 ("panfrost: Enable AFBC buffer sharing")
Reviewed-by: Alyssa Rosenzweig's avatarAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
parent 32d59214
...@@ -732,6 +732,7 @@ pan_alloc_staging(struct panfrost_context *ctx, struct panfrost_resource *rsc, ...@@ -732,6 +732,7 @@ pan_alloc_staging(struct panfrost_context *ctx, struct panfrost_resource *rsc,
} }
tmpl.last_level = 0; tmpl.last_level = 0;
tmpl.bind |= PIPE_BIND_LINEAR; tmpl.bind |= PIPE_BIND_LINEAR;
tmpl.bind &= ~(PIPE_BIND_DISPLAY_TARGET | PIPE_BIND_SCANOUT | PIPE_BIND_SHARED);
struct pipe_resource *pstaging = struct pipe_resource *pstaging =
pctx->screen->resource_create(pctx->screen, &tmpl); pctx->screen->resource_create(pctx->screen, &tmpl);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment