[Mesa-dev] [PATCH] vl: Use pipe clear_render_target instead of util_clear_render_target
Maarten Lankhorst
m.b.lankhorst at gmail.com
Mon Dec 19 07:42:49 PST 2011
Mapping to software and uploading again clearing is killing performance.
Signed-off-by: Maarten Lankhorst <m.b.lankhorst at gmail.com>
---
src/gallium/auxiliary/vl/vl_compositor.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gallium/auxiliary/vl/vl_compositor.c b/src/gallium/auxiliary/vl/vl_compositor.c
index 85507ba..1bdd775 100644
--- a/src/gallium/auxiliary/vl/vl_compositor.c
+++ b/src/gallium/auxiliary/vl/vl_compositor.c
@@ -1002,8 +1002,8 @@ vl_compositor_render(struct vl_compositor *c,
if (dirty_area && (dirty_area->x0 < dirty_area->x1 ||
dirty_area->y0 < dirty_area->y1)) {
- util_clear_render_target(c->pipe, dst_surface, &c->clear_color,
- 0, 0, dst_surface->width, dst_surface->height);
+ c->pipe->clear_render_target(c->pipe, dst_surface, &c->clear_color,
+ 0, 0, dst_surface->width, dst_surface->height);
dirty_area->x0 = dirty_area->y0 = MAX_DIRTY;
dirty_area->x0 = dirty_area->y1 = MIN_DIRTY;
}
More information about the mesa-dev
mailing list