mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
aux/u_transfer_helper: set rendertarget bind for msaa staging resource
this matches other resources created with staging blit-like mechanics cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25914>
This commit is contained in:
parent
694ebe8c72
commit
87e3720b66
1 changed files with 4 additions and 0 deletions
|
|
@ -208,6 +208,10 @@ transfer_map_msaa(struct pipe_context *pctx,
|
|||
.depth0 = 1,
|
||||
.array_size = 1,
|
||||
};
|
||||
if (util_format_is_depth_or_stencil(tmpl.format))
|
||||
tmpl.bind |= PIPE_BIND_DEPTH_STENCIL;
|
||||
else
|
||||
tmpl.bind |= PIPE_BIND_RENDER_TARGET;
|
||||
trans->ss = pscreen->resource_create(pscreen, &tmpl);
|
||||
if (!trans->ss) {
|
||||
free(trans);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue