vl: Use pipe clear_render_target instead of util_clear_render_target
authorMaarten Lankhorst <m.b.lankhorst@gmail.com>
Mon, 19 Dec 2011 15:42:49 +0000 (16:42 +0100)
committerChristian König <deathsimple@vodafone.de>
Tue, 20 Dec 2011 12:05:49 +0000 (13:05 +0100)
Mapping to software and uploading again clearing is killing performance.

Signed-off-by: Maarten Lankhorst <m.b.lankhorst@gmail.com>
Signed-off-by: Christian König <deathsimple@vodafone.de>
src/gallium/auxiliary/vl/vl_compositor.c

index 98cb6167f8885113b2f32590a4c6f0216a0799db..663c18059b2eb8304dca682425635ffb66b21bbc 100644 (file)
@@ -781,8 +781,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;
    }