From 5c06ecd2c64a36496f7a0a1d2811d8a90b1a0620 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 13 Feb 2020 07:41:38 -0500 Subject: [PATCH] pan/midgard: Identify stack barrier flag In case thread local storage is used. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/midgard/disassemble.c | 3 +++ src/panfrost/midgard/midgard.h | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/panfrost/midgard/disassemble.c b/src/panfrost/midgard/disassemble.c index 28557042de3..2634959bc6d 100644 --- a/src/panfrost/midgard/disassemble.c +++ b/src/panfrost/midgard/disassemble.c @@ -1336,6 +1336,9 @@ print_texture_barrier(FILE *fp, uint32_t *word) if (barrier->shared) fprintf(fp, " | shared"); + if (barrier->stack) + fprintf(fp, " | stack"); + fprintf(fp, "\n"); } diff --git a/src/panfrost/midgard/midgard.h b/src/panfrost/midgard/midgard.h index 286282e9fae..0e650db74e8 100644 --- a/src/panfrost/midgard/midgard.h +++ b/src/panfrost/midgard/midgard.h @@ -718,8 +718,9 @@ __attribute__((__packed__)) * textures, these bits are not yet understood. */ unsigned barrier_buffer : 1; unsigned barrier_shared : 1; + unsigned barrier_stack : 1; - unsigned unknown4 : 10; + unsigned unknown4 : 9; /* In immediate mode, each offset field is an immediate range [0, 7]. * @@ -791,7 +792,8 @@ __attribute__((__packed__)) unsigned zero3 : 24; unsigned buffer : 1; unsigned shared : 1; - unsigned zero4 : 6; + unsigned stack : 1; + unsigned zero4 : 5; uint64_t zero5; } midgard_texture_barrier_word; -- 2.30.2