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:
parent
d7f7045108
commit
e89f674c83
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue