[Mesa-dev] [PATCH v2 6/7] gallium/auxiliary/vl: Add debug option CS_COMPOSITOR_RENDER
Zhu, James
James.Zhu at amd.com
Wed Feb 6 19:44:44 UTC 2019
Add debug option CS_COMPOSITOR_RENDER to enable/diable video
compositor compute shader render through system environment
Signed-off-by: James Zhu <James.Zhu at 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
More information about the mesa-dev
mailing list