From 57e29ebdc13d0ef145e4c70c1406af3229a92ad8 Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Fri, 6 Apr 2012 11:14:21 +0800 Subject: [PATCH] glamor_render: Disable gradient shader conversion due to bug. I found when enable the gradient shader, the firefox's tab's background has incorrect rendering result. Need furthr investigation, for now, just disable it. Signed-off-by: Zhigang Gong --- glamor/glamor_priv.h | 1 + glamor/glamor_render.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/glamor/glamor_priv.h b/glamor/glamor_priv.h index ad6873757..54bbdb1ab 100644 --- a/glamor/glamor_priv.h +++ b/glamor/glamor_priv.h @@ -714,6 +714,7 @@ glamor_poly_line(DrawablePtr pDrawable, GCPtr pGC, int mode, int npt, #define GLAMOR_PIXMAP_DYNAMIC_UPLOAD //#define GLAMOR_DELAYED_FILLING +//#define GLAMOR_GRADIENT_SHADER diff --git a/glamor/glamor_render.c b/glamor/glamor_render.c index 042fabe2d..00a6e1ec9 100644 --- a/glamor/glamor_render.c +++ b/glamor/glamor_render.c @@ -2743,7 +2743,7 @@ glamor_convert_gradient_picture(ScreenPtr screen, format = PICT_a8r8g8b8; else format = source->format; - +#ifdef GLAMOR_GRADIENT_SHADER if (!source->pDrawable) { if (source->pSourcePict->type == SourcePictTypeLinear) { dst = _glamor_generate_linear_gradient_picture(screen, @@ -2762,7 +2762,7 @@ glamor_convert_gradient_picture(ScreenPtr screen, return dst; } } - +#endif pixmap = glamor_create_pixmap(screen, width, height,