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:
Mike Blumenkrantz 2023-10-26 11:54:40 -04:00 committed by Marge Bot
parent 694ebe8c72
commit 87e3720b66

View file

@ -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);