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:
committed by
Marge Bot
parent
ab18d0709a
commit
9b2e78b003
@@ -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) */
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user