diff options
author | Mike Blumenkrantz <michael.blumenkrantz@gmail.com> | 2021-03-22 11:05:19 -0400 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-03-30 15:12:58 +0000 |
commit | ba6265a1ff7cf2bacd50c5e22e9e82a0054f1612 (patch) | |
tree | 182b984d47ebf0db95af623c53d1b65755e87ec2 | |
parent | f9ee9c4539d93f9aeb564cf54f23074f60338d9c (diff) |
zink: rename init_batch_state to get_batch_state
more sensible, no functional changes
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9885>
-rw-r--r-- | src/gallium/drivers/zink/zink_batch.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/zink/zink_batch.c b/src/gallium/drivers/zink/zink_batch.c index c5a992cdad5..204e7a9db0d 100644 --- a/src/gallium/drivers/zink/zink_batch.c +++ b/src/gallium/drivers/zink/zink_batch.c @@ -188,8 +188,8 @@ find_unused_state(struct hash_entry *entry) return !submitted; } -static void -init_batch_state(struct zink_context *ctx, struct zink_batch *batch) +static struct zink_batch_state * +get_batch_state(struct zink_context *ctx, struct zink_batch *batch) { struct zink_batch_state *bs = NULL; @@ -216,7 +216,7 @@ init_batch_state(struct zink_context *ctx, struct zink_batch *batch) } bs = create_batch_state(ctx); } - batch->state = bs; + return bs; } void @@ -225,7 +225,7 @@ zink_reset_batch(struct zink_context *ctx, struct zink_batch *batch) struct zink_screen *screen = zink_screen(ctx->base.screen); bool fresh = !batch->state; - init_batch_state(ctx, batch); + batch->state = get_batch_state(ctx, batch); assert(batch->state); if (!fresh) { |