From a84a1e344f544ec4da61809d4f09853a94d93e07 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Fri, 3 Dec 2010 00:44:43 +0800 Subject: st/vega: Move vertex transformation to shader. It was done in path-to-polygon conversion. That meant that the results were invalidated when the transformation was modified, and CPU had to recreate the vertex buffer with new vertices. It could be a performance hit for apps that animate. --- src/gallium/state_trackers/vega/mask.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gallium/state_trackers/vega/mask.c') diff --git a/src/gallium/state_trackers/vega/mask.c b/src/gallium/state_trackers/vega/mask.c index 17912cb552d..dfd0600e444 100644 --- a/src/gallium/state_trackers/vega/mask.c +++ b/src/gallium/state_trackers/vega/mask.c @@ -435,14 +435,14 @@ static void mask_layer_render_to(struct vg_mask_layer *layer, PIPE_BIND_RENDER_TARGET); surf = pipe->create_surface(pipe, view->texture, &surf_tmpl); - renderer_validate_for_mask_rendering(ctx->renderer, surf); + renderer_validate_for_mask_rendering(ctx->renderer, surf, mat); if (paint_modes & VG_FILL_PATH) { - path_fill(path, mat); + path_fill(path); } if (paint_modes & VG_STROKE_PATH){ - path_stroke(path, mat); + path_stroke(path); } pipe_surface_reference(&surf, NULL); -- cgit v1.2.3