summaryrefslogtreecommitdiff
path: root/glamor/glamor_gradient.c
diff options
context:
space:
mode:
authorJunyan He <junyan.he@linux.intel.com>2012-06-04 07:22:27 +0800
committerEric Anholt <eric@anholt.net>2013-12-18 11:23:52 -0800
commit5f1560c84aa386bb12dc6ec3daeb93e0f63c09c2 (patch)
tree774f0413a9886bdab8fc9f2c290f6bb5732daa0c /glamor/glamor_gradient.c
parent0b0391765f3ca0192b00f4970c9453934d529397 (diff)
Modilfy the composite logic to two phases
We seperate the composite to two phases, firstly to select the shader according to source type and logic op, setting the right parameters. Then we emit the vertex array to generate the dest result. The reason why we do this is that the shader may be used to composite no only rect, trapezoid and triangle render function can also use it to render triangles and polygens. The old function glamor_composite_with_shader do the whole two phases work and can not match the new request. Signed-off-by: Junyan He <junyan.he@linux.intel.com>
Diffstat (limited to 'glamor/glamor_gradient.c')
-rw-r--r--glamor/glamor_gradient.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/glamor/glamor_gradient.c b/glamor/glamor_gradient.c
index e02c12cef..444ba6cb9 100644
--- a/glamor/glamor_gradient.c
+++ b/glamor/glamor_gradient.c
@@ -788,7 +788,6 @@ _glamor_gradient_set_pixmap_destination(ScreenPtr screen,
glamor_pixmap_private *pixmap_priv;
PixmapPtr pixmap = NULL;
glamor_gl_dispatch *dispatch = NULL;
- float tmp;
pixmap = glamor_get_drawable_pixmap(dst_picture->pDrawable);
pixmap_priv = glamor_get_pixmap_private(pixmap);