diff --git a/src/gallium/drivers/panfrost/pan_job.c b/src/gallium/drivers/panfrost/pan_job.c index e152aeb1363..a4dde09ca9b 100644 --- a/src/gallium/drivers/panfrost/pan_job.c +++ b/src/gallium/drivers/panfrost/pan_job.c @@ -1401,24 +1401,6 @@ panfrost_batch_intersection_scissor(struct panfrost_batch *batch, batch->maxy = MIN2(batch->maxy, maxy); } -/* Are we currently rendering to the dev (rather than an FBO)? */ - -bool -panfrost_batch_is_scanout(struct panfrost_batch *batch) -{ - /* If there is no color buffer, it's an FBO */ - if (batch->key.nr_cbufs != 1) - return false; - - /* If we're too early that no framebuffer was sent, it's scanout */ - if (!batch->key.cbufs[0]) - return true; - - return batch->key.cbufs[0]->texture->bind & PIPE_BIND_DISPLAY_TARGET || - batch->key.cbufs[0]->texture->bind & PIPE_BIND_SCANOUT || - batch->key.cbufs[0]->texture->bind & PIPE_BIND_SHARED; -} - void panfrost_batch_init(struct panfrost_context *ctx) { diff --git a/src/gallium/drivers/panfrost/pan_job.h b/src/gallium/drivers/panfrost/pan_job.h index fa7861e3c2b..0b316d9c15b 100644 --- a/src/gallium/drivers/panfrost/pan_job.h +++ b/src/gallium/drivers/panfrost/pan_job.h @@ -197,9 +197,6 @@ panfrost_batch_intersection_scissor(struct panfrost_batch *batch, unsigned minx, unsigned miny, unsigned maxx, unsigned maxy); -bool -panfrost_batch_is_scanout(struct panfrost_batch *batch); - mali_ptr panfrost_batch_get_bifrost_tiler(struct panfrost_batch *batch, unsigned vertex_count);