panfrost: Assert that injected jobs are for blits

Remove a level of indentation.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11785>
This commit is contained in:
Alyssa Rosenzweig
2021-07-06 19:33:55 -04:00
committed by Marge Bot
parent 583d8aaea7
commit 616d7d0905
+10 -10
View File
@@ -145,18 +145,18 @@ panfrost_add_job(
}
if (inject) {
if (type == MALI_JOB_TYPE_TILER) {
if (scoreboard->first_tiler) {
/* Manual update of the dep2 field. This is bad,
* don't copy this pattern.
*/
scoreboard->first_tiler->opaque[5] =
scoreboard->first_tiler_dep1 | (index << 16);
}
assert(type == MALI_JOB_TYPE_TILER && "only for blit shaders");
scoreboard->first_tiler = (void *)job->cpu;
scoreboard->first_tiler_dep1 = local_dep;
if (scoreboard->first_tiler) {
/* Manual update of the dep2 field. This is bad,
* don't copy this pattern.
*/
scoreboard->first_tiler->opaque[5] =
scoreboard->first_tiler_dep1 | (index << 16);
}
scoreboard->first_tiler = (void *)job->cpu;
scoreboard->first_tiler_dep1 = local_dep;
scoreboard->first_job = job->gpu;
return index;
}