summaryrefslogtreecommitdiff
path: root/lib/igt_panfrost.h
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@collabora.com>2021-06-21 11:46:10 +0200
committerBoris Brezillon <boris.brezillon@collabora.com>2021-06-28 10:04:30 +0200
commit426a94c23d3dc8ae773dda3ec1d896028b8208c9 (patch)
tree056629180fd55ea1bf019f84627a3428515b21d8 /lib/igt_panfrost.h
parent090874b44b1b31bdcccb66e1a0c94910cb946499 (diff)
lib/panfrost: Add a helper to create a job loop
Useful to trigger job timeouts and test the kernel driver timeout handling logic. v2: * Add comments explaining how the job loop is formed * Add a helper to retrieve job headers Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com>
Diffstat (limited to 'lib/igt_panfrost.h')
-rw-r--r--lib/igt_panfrost.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/igt_panfrost.h b/lib/igt_panfrost.h
index cc7998dc..3ab4baf8 100644
--- a/lib/igt_panfrost.h
+++ b/lib/igt_panfrost.h
@@ -47,7 +47,11 @@ struct panfrost_submit {
struct panfrost_bo *igt_panfrost_gem_new(int fd, size_t size);
void igt_panfrost_free_bo(int fd, struct panfrost_bo *bo);
+struct mali_job_descriptor_header *
+igt_panfrost_job_loop_get_job_header(struct panfrost_submit *submit,
+ unsigned job_idx);
struct panfrost_submit *igt_panfrost_trivial_job(int fd, bool do_crash, int width, int height, uint32_t color);
+struct panfrost_submit *igt_panfrost_job_loop(int fd);
void igt_panfrost_free_job(int fd, struct panfrost_submit *submit);
/* IOCTL wrappers */