summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorMaarten Lankhorst <[email protected]>2011-12-19 16:42:49 +0100
committerChristian König <[email protected]>2011-12-20 13:05:49 +0100
commit72325ee6e35fc3941dc04a87e14e0ba0c9eec52e (patch)
tree0e9f21b08e46bdb7189fc90c3839122d33f55a41 /src/gallium/auxiliary
parentdae2fca70521909cfdd8d217d5e42fc6b33b05f6 (diff)
vl: Use pipe clear_render_target instead of util_clear_render_target
Mapping to software and uploading again clearing is killing performance. Signed-off-by: Maarten Lankhorst <[email protected]> Signed-off-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/vl/vl_compositor.c4
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 98cb6167f88..663c18059b2 100644
--- a/src/gallium/auxiliary/vl/vl_compositor.c
+++ b/src/gallium/auxiliary/vl/vl_compositor.c
@@ -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;
}