panfrost: Add panfrost_job_type_for_pipe helper
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 4 Jun 2019 23:47:35 +0000 (23:47 +0000)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 12 Jun 2019 21:27:47 +0000 (14:27 -0700)
commitf8a4090f80cfd87d9648e90c39292b0d0611b2e6
treecf5d1957d9d350691213f66fda55fcf062b57870
parent15fae1e38c55bb985cee1b005139dd5a2733bd5f
panfrost: Add panfrost_job_type_for_pipe helper

This logic is repeated in a bunch of places and will only grow worse as
we support more job types; collect it.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/pan_context.c