Module: Mesa Branch: master Commit: e89f674c8306118b43c2950135b3a1fa2501b02c URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e89f674c8306118b43c2950135b3a1fa2501b02c
Author: Mike Blumenkrantz <[email protected]> Date: Sun Nov 8 13:01:44 2020 -0500 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 <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9765> --- src/gallium/drivers/zink/zink_batch.c | 6 ++++++ src/gallium/drivers/zink/zink_batch.h | 3 +++ 2 files changed, 9 insertions(+) diff --git a/src/gallium/drivers/zink/zink_batch.c b/src/gallium/drivers/zink/zink_batch.c index af31d97419e..dbb24d994ef 100644 --- a/src/gallium/drivers/zink/zink_batch.c +++ b/src/gallium/drivers/zink/zink_batch.c @@ -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) { diff --git a/src/gallium/drivers/zink/zink_batch.h b/src/gallium/drivers/zink/zink_batch.h index ceeb9b88714..4dac48770cf 100644 --- a/src/gallium/drivers/zink/zink_batch.h +++ b/src/gallium/drivers/zink/zink_batch.h @@ -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); _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
