asahi: drop any_draws

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27616>
This commit is contained in:
Alyssa Rosenzweig
2024-01-22 16:36:44 -04:00
committed by Marge Bot
parent ae3544eccd
commit facc4b9a5e
4 changed files with 1 additions and 7 deletions

View File

@@ -130,7 +130,6 @@ agx_batch_init(struct agx_context *ctx,
batch->clear_stencil = 0;
batch->varyings = 0;
batch->geometry_state = 0;
batch->any_draws = false;
batch->initialized = false;
batch->draws = 0;
agx_bo_unreference(batch->sampler_heap.bo);

View File

@@ -1288,7 +1288,7 @@ agx_flush_batch(struct agx_context *ctx, struct agx_batch *batch)
assert(!agx_batch_is_submitted(batch));
/* Make sure there's something to submit. */
if (!batch->clear && !batch->any_draws) {
if (!batch->clear) {
agx_batch_reset(ctx, batch);
return;
}

View File

@@ -5128,8 +5128,6 @@ agx_draw_vbo(struct pipe_context *pctx, const struct pipe_draw_info *info,
batch->resolve |= ctx->zs->store;
}
batch->any_draws = true;
/* When we approach the end of a command buffer, cycle it out for a new one.
* We only need to do this once per draw as long as we conservatively
* estimate the maximum bytes of VDM commands that this draw will emit.
@@ -5258,8 +5256,6 @@ agx_launch(struct agx_batch *batch, const struct pipe_grid_info *info,
struct agx_context *ctx = batch->ctx;
struct agx_device *dev = agx_device(ctx->base.screen);
batch->any_draws = true;
/* To implement load_num_workgroups, the number of workgroups needs to be
* available in GPU memory. This is either the indirect buffer, or just a
* buffer we upload ourselves if not indirect.

View File

@@ -317,7 +317,6 @@ struct agx_batch {
/* PIPE_CLEAR_* bitmask */
uint32_t clear, draw, load, resolve;
bool any_draws;
bool initialized;
uint64_t uploaded_clear_color[PIPE_MAX_COLOR_BUFS];