Add debug option CS_COMPOSITOR_RENDER to enable/diable video compositor compute shader render through system environment
Signed-off-by: James Zhu <james....@amd.com> --- src/gallium/auxiliary/vl/vl_compositor.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gallium/auxiliary/vl/vl_compositor.c b/src/gallium/auxiliary/vl/vl_compositor.c index 5b6c3bd..e50e253 100644 --- a/src/gallium/auxiliary/vl/vl_compositor.c +++ b/src/gallium/auxiliary/vl/vl_compositor.c @@ -30,6 +30,7 @@ #include "vl_compositor_gfx.h" #include "vl_compositor_cs.h" +static bool cs_compositor_render_enable = FALSE; static bool init_shaders(struct vl_compositor *c) @@ -739,6 +740,9 @@ vl_compositor_init(struct vl_compositor *c, struct pipe_context *pipe) { assert(c); + if (debug_get_bool_option("CS_COMPOSITOR_RENDER", false)) + cs_compositor_render_enable = true; + memset(c, 0, sizeof(*c)); c->pipe = pipe; -- 2.7.4 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev