aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-05-13 11:05:49 -0400
committerMarge Bot <[email protected]>2020-05-21 17:49:14 +0000
commit3d435b334b4e22a89104728f0c32d8b2864b4903 (patch)
treef695d9cf10c98f080cedfce457e4bf786af71f02 /src/panfrost
parentfde1f2b7cb060c1fd5a00e1447bf69b8bbd15e8e (diff)
pan/mdg: Pack barriers correctly
Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5151>
Diffstat (limited to 'src/panfrost')
-rw-r--r--src/panfrost/midgard/midgard_emit.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/panfrost/midgard/midgard_emit.c b/src/panfrost/midgard/midgard_emit.c
index e9a67811aa8..e4911c1faf4 100644
--- a/src/panfrost/midgard/midgard_emit.c
+++ b/src/panfrost/midgard/midgard_emit.c
@@ -596,6 +596,13 @@ emit_binary_bundle(compiler_context *ctx,
ins->texture.type = bundle->tag;
ins->texture.next_type = next_tag;
+ /* Nothing else to pack for barriers */
+ if (ins->texture.op == TEXTURE_OP_BARRIER) {
+ ins->texture.cont = ins->texture.last = 1;
+ util_dynarray_append(emission, midgard_texture_word, ins->texture);
+ return;
+ }
+
signed override = mir_upper_override(ins, 32);
ins->texture.mask = override > 0 ?