panfrost: Make panfrost_has_fragment_job() public

We want to move the kernel driver specific submission logic to
pan_cmdstream.c where we can define per-gen functions. In order to
do that, we need panfrost_has_fragment_job() to be public.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26249>
This commit is contained in:
Boris Brezillon
2023-10-04 09:40:30 +02:00
committed by Marge Bot
parent ab18d0709a
commit 9b2e78b003
2 changed files with 6 additions and 6 deletions

View File

@@ -707,12 +707,6 @@ panfrost_batch_submit_ioctl(struct panfrost_batch *batch,
return 0;
}
static bool
panfrost_has_fragment_job(struct panfrost_batch *batch)
{
return batch->scoreboard.first_tiler || batch->clear;
}
/* Submit both vertex/tiler and fragment jobs for a batch, possibly with an
* outsync corresponding to the later of the two (since there will be an
* implicit dep between them) */

View File

@@ -264,4 +264,10 @@ void panfrost_batch_union_scissor(struct panfrost_batch *batch, unsigned minx,
bool panfrost_batch_skip_rasterization(struct panfrost_batch *batch);
static inline bool
panfrost_has_fragment_job(struct panfrost_batch *batch)
{
return batch->scoreboard.first_tiler || batch->clear;
}
#endif