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:
		
							parent
							
								
									7036cfdd0d
								
							
						
					
					
						commit
						57e29ebdc1
					
				| 
						 | 
					@ -714,6 +714,7 @@ glamor_poly_line(DrawablePtr pDrawable, GCPtr pGC, int mode, int npt,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define GLAMOR_PIXMAP_DYNAMIC_UPLOAD
 | 
					#define GLAMOR_PIXMAP_DYNAMIC_UPLOAD
 | 
				
			||||||
//#define GLAMOR_DELAYED_FILLING
 | 
					//#define GLAMOR_DELAYED_FILLING
 | 
				
			||||||
 | 
					//#define GLAMOR_GRADIENT_SHADER
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -2743,7 +2743,7 @@ glamor_convert_gradient_picture(ScreenPtr screen,
 | 
				
			||||||
		format = PICT_a8r8g8b8;
 | 
							format = PICT_a8r8g8b8;
 | 
				
			||||||
	else
 | 
						else
 | 
				
			||||||
		format = source->format;
 | 
							format = source->format;
 | 
				
			||||||
 | 
					#ifdef GLAMOR_GRADIENT_SHADER
 | 
				
			||||||
	if (!source->pDrawable) {
 | 
						if (!source->pDrawable) {
 | 
				
			||||||
		if (source->pSourcePict->type == SourcePictTypeLinear) {
 | 
							if (source->pSourcePict->type == SourcePictTypeLinear) {
 | 
				
			||||||
			dst = _glamor_generate_linear_gradient_picture(screen,
 | 
								dst = _glamor_generate_linear_gradient_picture(screen,
 | 
				
			||||||
| 
						 | 
					@ -2762,7 +2762,7 @@ glamor_convert_gradient_picture(ScreenPtr screen,
 | 
				
			||||||
			return dst;
 | 
								return dst;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
	pixmap = glamor_create_pixmap(screen,
 | 
						pixmap = glamor_create_pixmap(screen,
 | 
				
			||||||
				      width,
 | 
									      width,
 | 
				
			||||||
				      height,
 | 
									      height,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue