xserver-multidpi/glamor
Junyan He 41aa93c393 Fix the problem of set the same stop several times.
Some gradient set the stops at the same position, for
 example: firstly 0.5 to red color and then set 0.5 to
 blue. This kind of setting will cause the shader work
 not correctly because the percentage caculating need to
 use the stop[i] - stop[i-1] as dividend. The previous
 patch we just kill some stop if the distance between
 them is 0. But this cause the problem that the color
 for next stop is wrong. We now modify to handle it in
 the shader to avoid the 0 as dividend.

Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>

Signed-off-by: Junyan He <junyan.he@linux.intel.com>
Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
2013-12-18 11:23:51 -08:00
..
glamor_addtraps.c Fixup glx support 2013-12-18 11:23:48 -08:00
glamor_copyarea.c glamor_set_destination_pixmap_priv_nc: set drawable's width x height. 2013-12-18 11:23:51 -08:00
glamor_copyplane.c Fixup glx support 2013-12-18 11:23:48 -08:00
glamor_copywindow.c Fixup glx support 2013-12-18 11:23:48 -08:00
glamor_core.c Fixed a stride problem for textured_drm pixmap. 2013-12-18 11:23:50 -08:00
glamor_debug.h Added some copyright and author information. 2013-12-18 11:23:51 -08:00
glamor_egl.c Added strict warning flags to CFLAGS. 2013-12-18 11:23:51 -08:00
glamor_eglmodule.c Added some copyright and author information. 2013-12-18 11:23:51 -08:00
glamor_fbo.c Remove the texture cache code. 2013-12-18 11:23:51 -08:00
glamor_fill.c glamor_set_destination_pixmap_priv_nc: set drawable's width x height. 2013-12-18 11:23:51 -08:00
glamor_fillspans.c Fixup glx support 2013-12-18 11:23:48 -08:00
glamor_getimage.c Fixed all unused variables warnings. 2013-12-18 11:23:51 -08:00
glamor_getspans.c Added some copyright and author information. 2013-12-18 11:23:51 -08:00
glamor_gl_dispatch.c Added some copyright and author information. 2013-12-18 11:23:51 -08:00
glamor_gl_dispatch.h Fix the problem of memory leak in gradient pixmap generating. 2013-12-18 11:23:50 -08:00
glamor_glext.h Added some copyright and author information. 2013-12-18 11:23:51 -08:00
glamor_glyphblt.c Fixed all unused variables warnings. 2013-12-18 11:23:51 -08:00
glamor_glyphs.c Fixup glx support 2013-12-18 11:23:48 -08:00
glamor_gradient.c Fix the problem of set the same stop several times. 2013-12-18 11:23:51 -08:00
glamor_picture.c Added some copyright and author information. 2013-12-18 11:23:51 -08:00
glamor_pixmap.c glamor_set_destination_pixmap_priv_nc: set drawable's width x height. 2013-12-18 11:23:51 -08:00
glamor_polyfillrect.c Fixed all unused variables warnings. 2013-12-18 11:23:51 -08:00
glamor_polylines.c glamor_polylines: Don't fallback for non-solid fill. 2013-12-18 11:23:49 -08:00
glamor_polyops.c glyphblt/polyops: Use miFunctions by default. 2013-12-18 11:23:49 -08:00
glamor_priv.h Extract the gradient related code out. 2013-12-18 11:23:51 -08:00
glamor_putimage.c Fixed all unused variables warnings. 2013-12-18 11:23:51 -08:00
glamor_render.c Extract the gradient related code out. 2013-12-18 11:23:51 -08:00
glamor_setspans.c Added some copyright and author information. 2013-12-18 11:23:51 -08:00
glamor_tile.c glamor_set_destination_pixmap_priv_nc: set drawable's width x height. 2013-12-18 11:23:51 -08:00
glamor_triangles.c Fixup glx support 2013-12-18 11:23:48 -08:00
glamor_utils.h glamor_set_destination_pixmap_priv_nc: set drawable's width x height. 2013-12-18 11:23:51 -08:00
glamor_window.c Fixup glx support 2013-12-18 11:23:48 -08:00
glamor.c Added strict warning flags to CFLAGS. 2013-12-18 11:23:51 -08:00
glamor.h Added strict warning flags to CFLAGS. 2013-12-18 11:23:51 -08:00
glapi.h Added strict warning flags to CFLAGS. 2013-12-18 11:23:51 -08:00
Makefile.am Extract the gradient related code out. 2013-12-18 11:23:51 -08:00