[Glamor] [PATCH 3/3] Add #if 0 to comment out the logic of comparing with pixman. User can enable it if needed.

junyan.he at linux.intel.com junyan.he at linux.intel.com
Mon Mar 5 09:43:31 PST 2012


From: Junyan He <junyan.he at linux.intel.com>


Signed-off-by: Junyan He <junyan.he at linux.intel.com>
---
 src/glamor_render.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/glamor_render.c b/src/glamor_render.c
index f3ed5f9..9ddb104 100755
--- a/src/glamor_render.c
+++ b/src/glamor_render.c
@@ -1831,9 +1831,11 @@ glamor_convert_gradient_picture(ScreenPtr screen,
 		dst = _glamor_generate_linear_gradient_picture(screen,
 		        source, x_source, y_source, width, height, format);
 
+#if 0   /* Debug to compare it to pixman, Enable it if needed. */
 		glamor_compare_pictures(screen, source,
 		         dst, x_source, y_source, width, height,
 		         0, 3);
+#endif
                 return dst;
 	}
 
-- 
1.7.7.6



More information about the Glamor mailing list