panfrost: Remove get_fresh_batch

Unused, and of dubious value.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12525>
This commit is contained in:
Alyssa Rosenzweig 2021-08-16 23:53:07 +00:00
parent bd15e5e6af
commit 4991e17297
2 changed files with 0 additions and 32 deletions

View File

@ -162,33 +162,6 @@ panfrost_get_batch(struct panfrost_context *ctx,
return batch;
}
struct panfrost_batch *
panfrost_get_fresh_batch(struct panfrost_context *ctx,
const struct pipe_framebuffer_state *key,
const char *reason)
{
struct panfrost_batch *batch = panfrost_get_batch(ctx, key);
panfrost_dirty_state_all(ctx);
/* The batch has no draw/clear queued, let's return it directly.
* Note that it's perfectly fine to re-use a batch with an
* existing clear, we'll just update it with the new clear request.
*/
if (!batch->scoreboard.first_job) {
ctx->batch = batch;
return batch;
}
/* Otherwise, we need to flush the existing one and instantiate a new
* one.
*/
perf_debug_ctx(ctx, "Flushing a batch due to: %s", reason);
panfrost_batch_submit(batch, 0, 0);
batch = panfrost_get_batch(ctx, key);
return batch;
}
/* Get the job corresponding to the FBO we're currently rendering into */
struct panfrost_batch *

View File

@ -136,11 +136,6 @@ struct panfrost_batch {
/* Functions for managing the above */
struct panfrost_batch *
panfrost_get_fresh_batch(struct panfrost_context *ctx,
const struct pipe_framebuffer_state *key,
const char *reason);
struct panfrost_batch *
panfrost_get_batch_for_fbo(struct panfrost_context *ctx);