Commit b4f3df92 authored by Icecream95's avatar Icecream95
Browse files

panfrost: Unset shared/scanout binding flags for staging resources

Fixes Xwayland crashes.

Cc: mesa-stable
parent fe7e70d7
Pipeline #302399 waiting for manual action with stages
......@@ -732,6 +732,7 @@ pan_alloc_staging(struct panfrost_context *ctx, struct panfrost_resource *rsc,
}
tmpl.last_level = 0;
tmpl.bind |= PIPE_BIND_LINEAR;
tmpl.bind &= ~(PIPE_BIND_DISPLAY_TARGET | PIPE_BIND_SCANOUT | PIPE_BIND_SHARED);
struct pipe_resource *pstaging =
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