summaryrefslogtreecommitdiff
path: root/src/panfrost/midgard
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>2020-11-13 17:34:17 -0500
committerMarge Bot <eric+marge@anholt.net>2020-11-25 13:15:05 +0000
commit8b23fbb9543672c0351a25d5d204fa9cc731a113 (patch)
treec56da81f3b41f18228bac4c9779288065e550e46 /src/panfrost/midgard
parent028de3beaf9d44330cbaab24519e8f98659aa570 (diff)
pan/mdg: Fix shader-db counter
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7615>
Diffstat (limited to 'src/panfrost/midgard')
-rw-r--r--src/panfrost/midgard/midgard_compile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/panfrost/midgard/midgard_compile.c b/src/panfrost/midgard/midgard_compile.c
index b08d9127bd4..537b03fd1c5 100644
--- a/src/panfrost/midgard/midgard_compile.c
+++ b/src/panfrost/midgard/midgard_compile.c
@@ -63,7 +63,8 @@ static const struct debug_named_value debug_options[] = {
DEBUG_GET_ONCE_FLAGS_OPTION(midgard_debug, "MIDGARD_MESA_DEBUG", debug_options, 0)
-unsigned SHADER_DB_COUNT = 0;
+/* TODO: This is not thread safe!! */
+static unsigned SHADER_DB_COUNT = 0;
int midgard_debug = 0;