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 <zhigang.gong@linux.intel.com>
This commit is contained in:
Zhigang Gong 2012-04-06 11:14:21 +08:00 committed by Eric Anholt
parent 7036cfdd0d
commit 57e29ebdc1
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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,