mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-11 01:30:25 +01:00
asahi: choose staging bind better
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26614>
This commit is contained in:
parent
5257283941
commit
2d8a714f9c
1 changed files with 2 additions and 2 deletions
|
|
@ -877,8 +877,8 @@ agx_alloc_staging(struct pipe_screen *screen, struct agx_resource *rsc,
|
|||
|
||||
/* Linear is incompatible with depth/stencil, so we convert */
|
||||
tmpl.format = agx_staging_color_format_for_zs(rsc->layout.format);
|
||||
tmpl.bind &= ~PIPE_BIND_DEPTH_STENCIL;
|
||||
tmpl.bind |= PIPE_BIND_LINEAR | PIPE_BIND_RENDER_TARGET;
|
||||
tmpl.bind =
|
||||
PIPE_BIND_LINEAR | PIPE_BIND_RENDER_TARGET | PIPE_BIND_SAMPLER_VIEW;
|
||||
|
||||
struct pipe_resource *pstaging = screen->resource_create(screen, &tmpl);
|
||||
if (!pstaging)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue