zink: add wrapper to reset batch state structs

this will be useful in the future when we need additional work to handle
resets of states that aren't detected as being "completed"

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9765>
This commit is contained in:
Mike Blumenkrantz 2020-11-08 13:01:44 -05:00 committed by Marge Bot
parent d7f7045108
commit e89f674c83
2 changed files with 9 additions and 0 deletions

View File

@ -87,6 +87,12 @@ zink_reset_batch_state(struct zink_context *ctx, struct zink_batch_state *bs)
bs->resource_size = 0;
}
void
zink_clear_batch_state(struct zink_context *ctx, struct zink_batch_state *bs)
{
zink_reset_batch_state(ctx, bs);
}
void
zink_batch_reset_all(struct zink_context *ctx, enum zink_queue queue)
{

View File

@ -99,6 +99,9 @@ zink_batch_state(struct zink_fence *fence)
void
zink_reset_batch_state(struct zink_context *ctx, struct zink_batch_state *bs);
void
zink_clear_batch_state(struct zink_context *ctx, struct zink_batch_state *bs);
void
zink_batch_reset_all(struct zink_context *ctx, enum zink_queue queue);