mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
asahi: Bind staging resources as RENDER_TARGET
This doesn't matter in practice (at least with mesa/st), but it's more correct technically. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22891>
This commit is contained in:
parent
31c805d0aa
commit
c837156e99
1 changed files with 1 additions and 1 deletions
|
|
@ -809,11 +809,11 @@ agx_alloc_staging(struct pipe_screen *screen, struct agx_resource *rsc,
|
|||
}
|
||||
|
||||
tmpl.last_level = 0;
|
||||
tmpl.bind |= PIPE_BIND_LINEAR;
|
||||
|
||||
/* 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;
|
||||
|
||||
struct pipe_resource *pstaging = screen->resource_create(screen, &tmpl);
|
||||
if (!pstaging)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue