summaryrefslogtreecommitdiffstats
path: root/src/broadcom/common/v3d_debug.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2018-12-19 17:22:41 -0800
committerEric Anholt <[email protected]>2018-12-29 13:52:09 -0800
commit87b251a94082fbc386a65670b1748daa7b44c00f (patch)
tree47da33470914ee2b4e24d6edc4379ce5587916c5 /src/broadcom/common/v3d_debug.c
parent9ec6a3d621cbf928fc330bc23fea99f2c3cbe3bd (diff)
v3d: Add a "precompile" debug flag for shader-db.
I've been using my apitrace-based shader-db so far, but it's slow (apitrace decompression), intrusive (apitrace windows spamming the screen), and doesn't have much coverage. The original shader-db provides a lot more coverage and compiles faster, at the expense of not having the actual runtime variant key. As v3d has a lot less runtime variation than vc4 did, this tradeoff makes more sense.
Diffstat (limited to 'src/broadcom/common/v3d_debug.c')
-rw-r--r--src/broadcom/common/v3d_debug.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/broadcom/common/v3d_debug.c b/src/broadcom/common/v3d_debug.c
index 97404448e58..4a20dd26e41 100644
--- a/src/broadcom/common/v3d_debug.c
+++ b/src/broadcom/common/v3d_debug.c
@@ -54,6 +54,7 @@ static const struct debug_control debug_control[] = {
{ "vs", V3D_DEBUG_VS},
{ "cs", V3D_DEBUG_CS},
{ "always_flush", V3D_DEBUG_ALWAYS_FLUSH},
+ { "precompile", V3D_DEBUG_PRECOMPILE},
{ NULL, 0 }
};