[Mesa-dev] [PATCH v3 6/6] gallium/auxiliary/vl: Add video compute shader render
Zhu, James
James.Zhu at amd.com
Thu Feb 7 16:37:31 UTC 2019
Add video compute shader render and set it to default when
pipe support it.
Signed-off-by: James Zhu <James.Zhu at amd.com>
Reviewed-by: Christian König <christian.koenig at amd.com>
---
src/gallium/auxiliary/vl/vl_compositor.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/gallium/auxiliary/vl/vl_compositor.c b/src/gallium/auxiliary/vl/vl_compositor.c
index da4b02d..5308887 100644
--- a/src/gallium/auxiliary/vl/vl_compositor.c
+++ b/src/gallium/auxiliary/vl/vl_compositor.c
@@ -730,7 +730,12 @@ vl_compositor_render(struct vl_compositor_state *s,
bool clear_dirty)
{
assert(s);
- vl_compositor_gfx_render(s, c, dst_surface, dirty_area, clear_dirty);
+
+ if (c->pipe->screen->get_param(c->pipe->screen, PIPE_CAP_COMPUTE) &&
+ s->layers->cs)
+ vl_compositor_cs_render(s, c, dst_surface, dirty_area, clear_dirty);
+ else
+ vl_compositor_gfx_render(s, c, dst_surface, dirty_area, clear_dirty);
}
bool
--
2.7.4
More information about the mesa-dev
mailing list