mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
zink: ensure transient surface is created when doing msaa expand
forgetting this can lead to res->transient being NULL
Fixes: ef3f798957 ("zink: prune zink_surface down to the imageview and create/fetch on demand")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37257>
This commit is contained in:
parent
67fcfed67b
commit
7c1c2f8fce
1 changed files with 1 additions and 0 deletions
|
|
@ -188,6 +188,7 @@ zink_render_msaa_expand(struct zink_context *ctx, uint32_t msaa_expand_mask)
|
|||
|
||||
bool blitting = ctx->blitting;
|
||||
u_foreach_bit(i, msaa_expand_mask) {
|
||||
zink_create_transient_surface(ctx, &ctx->fb_state.cbufs[i], ctx->fb_state.cbufs[i].nr_samples);
|
||||
struct pipe_resource *src = ctx->fb_state.cbufs[i].texture;
|
||||
struct zink_resource *res = zink_resource(src);
|
||||
struct zink_resource *transient = res->transient;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue