panfrost: Set vertex job_barrier

Fixes KHR-GLES31.core.vertex_attrib_binding.advanced-iterations which
pingpongs XFB/attributes

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11123>
This commit is contained in:
Alyssa Rosenzweig 2021-06-10 13:16:44 -04:00 committed by Marge Bot
parent 3b9f1f39d1
commit cee3181ceb
1 changed files with 5 additions and 2 deletions

View File

@ -2365,10 +2365,13 @@ panfrost_emit_vertex_tiler_jobs(struct panfrost_batch *batch,
{
struct panfrost_context *ctx = batch->ctx;
/* If rasterizer discard is enable, only submit the vertex */
/* If rasterizer discard is enable, only submit the vertex. XXX - set
* job_barrier in case buffers get ping-ponged and we need to enforce
* ordering, this has a perf hit! See
* KHR-GLES31.core.vertex_attrib_binding.advanced-iterations */
unsigned vertex = panfrost_add_job(&batch->pool, &batch->scoreboard,
MALI_JOB_TYPE_VERTEX, false, false,
MALI_JOB_TYPE_VERTEX, true, false,
ctx->indirect_draw ?
batch->indirect_draw_job_id : 0,
0, vertex_job, false);