panfrost: Remove batch_is_scanout
Unused since last commit. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8774>
This commit is contained in:
parent
1a6fc40b99
commit
555c17e2c6
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue