Commit 3af12216 authored by Icecream95's avatar Icecream95 Committed by Marge Bot
Browse files

panfrost: Unset shared/scanout binding flags for staging resources

Fixes Xwayland crashes when starting non-GL applications.

Fixes: e00d94f1

 ("panfrost: Enable AFBC buffer sharing")
Reviewed-by: Alyssa Rosenzweig's avatarAlyssa Rosenzweig <>
Part-of: <mesa/mesa!10266>
parent 716ce3cc
Pipeline #302450 waiting for manual action with stages
...@@ -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;
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