summaryrefslogtreecommitdiff
path: root/lib/igt_panfrost.c
AgeCommit message (Collapse)AuthorFilesLines
2021-06-28lib/panfrost: Add a helper to create dummy write value jobsBoris Brezillon1-0/+46
v3: * New patch Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com>
2021-06-28lib/panfrost: Get rid of igt_panfrost_trivial_job()Boris Brezillon1-136/+0
We no longer use fragment jobs to test job submission, let's get rid of igt_panfrost_trivial_job(). If we ever need to issue fragment jobs again, we'll probably have to pull the pan_pack() infra from mesa and make the helper deal with Bifrost specificities. v3: * Remove igt_panfrost_trivial_job() prototype v2: * Add R-b Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com>
2021-06-28lib/panfrost: Add a helper to create a NULL jobBoris Brezillon1-0/+33
Useful when we just want to make sure the scheduler has executed a job (way simpler than creating actual jobs). v2: * No changes Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com>
2021-06-28lib/panfrost: Add a helper to create a job loopBoris Brezillon1-0/+77
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>
2021-06-28lib/panfrost: Handle the NULL case in igt_panfrost_free_bo()Boris Brezillon1-0/+3
So we don't have to bother checking the value before calling this function. v2: * No changes Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com>
2019-06-12lib/panfrost: Add support for SFBD to igt_panfrost_trivial_jobTomeu Vizoso1-19/+52
T720 GPUs and older don't have support for MFBD, so use the SFBD structs instead. We don't know yet how to hang the GPU with SFBD descriptors, so for now skip that test. Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
2019-05-13lib/panfrost: Add panfrost helpersTomeu Vizoso1-0/+244
I also needed to copy two headers from Mesa so we have the struct definitions involved in a trivial clear job. These headers were unchanged. Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Acked-by: Petri Latvala <petri.latvala@intel.com>