Mesa (master): panfrost: Conditionally submit fragment job

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jun 21 16:35:58 UTC 2019


Module: Mesa
Branch: master
Commit: d38ac21297f632e2e58f4e58acd4378092df5f17
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d38ac21297f632e2e58f4e58acd4378092df5f17

Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date:   Thu Jun 20 15:35:22 2019 -0700

panfrost: Conditionally submit fragment job

If there are no tiling jobs and no clears, there is no need to submit a
fragment job (relevant for transform feedback).

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>

---

 src/gallium/drivers/panfrost/pan_drm.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/panfrost/pan_drm.c b/src/gallium/drivers/panfrost/pan_drm.c
index 77ec419398e..3914fdc09cc 100644
--- a/src/gallium/drivers/panfrost/pan_drm.c
+++ b/src/gallium/drivers/panfrost/pan_drm.c
@@ -265,7 +265,10 @@ panfrost_drm_submit_vs_fs_job(struct panfrost_context *ctx, bool has_draws, bool
 		assert(!ret);
 	}
 
-	ret = panfrost_drm_submit_job(ctx, panfrost_fragment_job(ctx, has_draws), PANFROST_JD_REQ_FS, surf);
+        if (job->first_tiler.gpu || job->clear) {
+                ret = panfrost_drm_submit_job(ctx, panfrost_fragment_job(ctx, has_draws), PANFROST_JD_REQ_FS, surf);
+                assert(!ret);
+        }
 
         return ret;
 }




More information about the mesa-commit mailing list