From 13409b91b1936330dbf19bacefa4b48d0b6843b8 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Tue, 24 Oct 2017 14:28:32 -0400 Subject: glamor: Unconditionalize GLAMOR_GRADIENT_SHADER Effectively always true anyway. Signed-off-by: Adam Jackson Reviewed-by: Eric Anholt --- glamor/glamor.c | 3 --- glamor/glamor_gradient.c | 4 ---- glamor/glamor_priv.h | 1 - glamor/glamor_render.c | 3 +-- 4 files changed, 1 insertion(+), 10 deletions(-) (limited to 'glamor') diff --git a/glamor/glamor.c b/glamor/glamor.c index d06934595..c55ba249e 100644 --- a/glamor/glamor.c +++ b/glamor/glamor.c @@ -710,10 +710,7 @@ glamor_init(ScreenPtr screen, unsigned int flags) ps->Glyphs = glamor_composite_glyphs; glamor_init_vbo(screen); - -#ifdef GLAMOR_GRADIENT_SHADER glamor_init_gradient_shader(screen); -#endif glamor_pixmap_init(screen); glamor_sync_init(screen); diff --git a/glamor/glamor_gradient.c b/glamor/glamor_gradient.c index 0c97ce7cb..2f2a5cc9b 100644 --- a/glamor/glamor_gradient.c +++ b/glamor/glamor_gradient.c @@ -38,8 +38,6 @@ #define RADIAL_SMALL_STOPS (6 + 2) #define RADIAL_LARGE_STOPS (16 + 2) -#ifdef GLAMOR_GRADIENT_SHADER - static const char * _glamor_create_getcolor_fs_source(ScreenPtr screen, int stops_count, int use_array) @@ -1451,5 +1449,3 @@ glamor_generate_linear_gradient_picture(ScreenPtr screen, glDisableVertexAttribArray(GLAMOR_VERTEX_SOURCE); return NULL; } - -#endif /* End of GLAMOR_GRADIENT_SHADER */ diff --git a/glamor/glamor_priv.h b/glamor/glamor_priv.h index 7050df526..b828350cd 100644 --- a/glamor/glamor_priv.h +++ b/glamor/glamor_priv.h @@ -918,7 +918,6 @@ void glamor_xv_render(glamor_port_private *port_priv); * this will increase performance obviously. */ #define GLAMOR_PIXMAP_DYNAMIC_UPLOAD -#define GLAMOR_GRADIENT_SHADER #define GLAMOR_TEXTURED_LARGE_PIXMAP 1 #if 0 #define MAX_FBO_SIZE 32 /* For test purpose only. */ diff --git a/glamor/glamor_render.c b/glamor/glamor_render.c index 3e126f0f2..1a54aa9ec 100644 --- a/glamor/glamor_render.c +++ b/glamor/glamor_render.c @@ -1343,7 +1343,6 @@ glamor_convert_gradient_picture(ScreenPtr screen, pFormat = PictureMatchFormat(screen, 32, format); } -#ifdef GLAMOR_GRADIENT_SHADER if (!source->pDrawable) { if (source->pSourcePict->type == SourcePictTypeLinear) { dst = glamor_generate_linear_gradient_picture(screen, @@ -1362,7 +1361,7 @@ glamor_convert_gradient_picture(ScreenPtr screen, return dst; } } -#endif + pixmap = glamor_create_pixmap(screen, width, height, -- cgit v1.2.3