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>
This commit is contained in:
Mike Blumenkrantz 2021-03-22 11:05:19 -04:00 committed by Marge Bot
parent f9ee9c4539
commit ba6265a1ff
1 changed files with 4 additions and 4 deletions

View File

@ -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) {