gradient: Disable gradient for gles2.
authorZhigang Gong <zhigang.gong@linux.intel.com>
Wed, 25 Apr 2012 05:51:58 +0000 (13:51 +0800)
committerEric Anholt <eric@anholt.net>
Wed, 18 Dec 2013 19:23:50 +0000 (11:23 -0800)
As PVR glsl compiler seems doesn't support external fragment
function, and fails at compile gradient shader. Disable it
for now. We may need to modify gradient shader to don't use
external function.

Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
glamor/glamor.c
glamor/glamor_priv.h

index d438b9c..cba6623 100644 (file)
@@ -399,7 +399,9 @@ glamor_init(ScreenPtr screen, unsigned int flags)
        glamor_init_tile_shader(screen);
        glamor_init_putimage_shaders(screen);
        glamor_init_finish_access_shaders(screen);
+#ifdef GLAMOR_GRADIENT_SHADER
        glamor_init_gradient_shader(screen);
+#endif
        glamor_pixmap_init(screen);
 
        glamor_priv->flags = flags;
index a7d89a9..36bd9cd 100644 (file)
@@ -741,8 +741,8 @@ glamor_poly_line(DrawablePtr pDrawable, GCPtr pGC, int mode, int npt,
 
 #define GLAMOR_PIXMAP_DYNAMIC_UPLOAD
 #define GLAMOR_DELAYED_FILLING
+#ifndef GLAMOR_GLES2
 #define GLAMOR_GRADIENT_SHADER
-
-
+#endif
 
 #endif                         /* GLAMOR_PRIV_H */