aboutsummaryrefslogtreecommitdiffstats
path: root/src/broadcom/common/v3d_debug.c
diff options
context:
space:
mode:
authorIago Toral Quiroga <[email protected]>2019-09-24 10:33:30 +0200
committerIago Toral Quiroga <[email protected]>2019-12-16 08:42:37 +0100
commit52cbef00393355008f2aeb05f9fbd266923abde1 (patch)
tree1904a9a4b57f893719b5427e190e72e199a5cd1c /src/broadcom/common/v3d_debug.c
parentd6b0786a380b95ce9305535c0012454f2f7055a0 (diff)
v3d: enable debug options for geometry shader dumps
Reviewed-by: Alejandro PiƱeiro <[email protected]>
Diffstat (limited to 'src/broadcom/common/v3d_debug.c')
-rw-r--r--src/broadcom/common/v3d_debug.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/broadcom/common/v3d_debug.c b/src/broadcom/common/v3d_debug.c
index 4a20dd26e41..d4fc648a85b 100644
--- a/src/broadcom/common/v3d_debug.c
+++ b/src/broadcom/common/v3d_debug.c
@@ -51,6 +51,7 @@ static const struct debug_control debug_control[] = {
{ "perf", V3D_DEBUG_PERF},
{ "norast", V3D_DEBUG_NORAST},
{ "fs", V3D_DEBUG_FS},
+ { "gs", V3D_DEBUG_GS},
{ "vs", V3D_DEBUG_VS},
{ "cs", V3D_DEBUG_CS},
{ "always_flush", V3D_DEBUG_ALWAYS_FLUSH},
@@ -65,7 +66,7 @@ v3d_debug_flag_for_shader_stage(gl_shader_stage stage)
[MESA_SHADER_VERTEX] = V3D_DEBUG_VS,
[MESA_SHADER_TESS_CTRL] = 0,
[MESA_SHADER_TESS_EVAL] = 0,
- [MESA_SHADER_GEOMETRY] = 0,
+ [MESA_SHADER_GEOMETRY] = V3D_DEBUG_GS,
[MESA_SHADER_FRAGMENT] = V3D_DEBUG_FS,
[MESA_SHADER_COMPUTE] = V3D_DEBUG_CS,
};