zink: set fbfetch state on lazy batch data when enabling it

this avoids creating new descriptor pools on every update

cc: mesa-stable

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13654>
(cherry picked from commit 2c54ad8f3d)
This commit is contained in:
Mike Blumenkrantz 2021-11-03 15:03:59 -04:00 committed by Eric Engestrom
parent 93aa5eb0a1
commit f03f1b58a4
2 changed files with 2 additions and 1 deletions

View file

@ -1894,7 +1894,7 @@
"description": "zink: set fbfetch state on lazy batch data when enabling it",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

View file

@ -385,6 +385,7 @@ check_push_pool_alloc(struct zink_context *ctx, struct zink_descriptor_pool *poo
/* overflowed pool: queue for deletion on next reset */
util_dynarray_append(&bdd->overflowed_pools, struct zink_descriptor_pool*, pool);
bdd->push_pool[is_compute] = create_push_pool(screen, bdd, is_compute, ctx->dd->has_fbfetch);
bdd->has_fbfetch = ctx->dd->has_fbfetch;
return check_push_pool_alloc(ctx, bdd->push_pool[is_compute], bdd, is_compute);
}
if (!zink_descriptor_util_alloc_sets(screen, ctx->dd->push_dsl[is_compute]->layout,