[v2,6/7] gallium/auxiliary/vl: Add debug option CS_COMPOSITOR_RENDER

Submitted by Zhu, James on Feb. 6, 2019, 7:44 p.m.

Details

Message ID 1549482274-4829-7-git-send-email-James.Zhu@amd.com
State New
Headers show
Series "Add compute shader support on video compositor render" ( rev: 2 ) in Mesa

Not browsing as part of any series.

Commit Message

Zhu, James Feb. 6, 2019, 7:44 p.m.
Add debug option CS_COMPOSITOR_RENDER to enable/diable video
compositor compute shader render through system environment

Signed-off-by: James Zhu <James.Zhu@amd.com>
---
 src/gallium/auxiliary/vl/vl_compositor.c | 4 ++++
 1 file changed, 4 insertions(+)

Patch hide | download patch | download mbox

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;