[cairo-commit] glitz/src/egl glitz_egl_config.c, 1.2, 1.3 glitz_egl_surface.c, 1.3, 1.4

David Reveman commit at pdx.freedesktop.org
Tue Nov 29 14:41:29 PST 2005


Committed by: davidr

Update of /cvs/cairo/glitz/src/egl
In directory gabe:/tmp/cvs-serv1190/src/egl

Modified Files:
	glitz_egl_config.c glitz_egl_surface.c 
Log Message:
Add YUV surfaces

Index: glitz_egl_config.c
===================================================================
RCS file: /cvs/cairo/glitz/src/egl/glitz_egl_config.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- glitz_egl_config.c	14 Sep 2005 15:57:16 -0000	1.2
+++ glitz_egl_config.c	29 Nov 2005 22:41:27 -0000	1.3
@@ -45,6 +45,9 @@
 
     for (; i < 2; i++)
     {
+	if (format[i]->color.fourcc != GLITZ_FOURCC_RGB)
+	    score[i] -= 1000;
+
 	if (format[i]->d.color.red_size)
 	{
 	    if (format[i]->d.color.red_size >= 8)
@@ -118,7 +121,8 @@
     if (!egl_configs)
 	return;
 
-    format.d.id = 0;
+    format.d.id           = 0;
+    format.d.color.fourcc = GLITZ_FOURCC_RGB;
     format.d.doublebuffer = 1;
 
     eglGetConfigs (egl_display, egl_configs, num_configs, &num_configs);

Index: glitz_egl_surface.c
===================================================================
RCS file: /cvs/cairo/glitz/src/egl/glitz_egl_surface.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- glitz_egl_surface.c	14 Sep 2005 15:57:16 -0000	1.3
+++ glitz_egl_surface.c	29 Nov 2005 22:41:27 -0000	1.4
@@ -215,6 +215,7 @@
 				GLITZ_CONTEXT_CURRENT);
 	glitz_program_map_fini (surface->base.backend->gl,
 				&surface->screen_info->program_map);
+        glitz_program_map_init (&surface->screen_info->program_map);
 	glitz_egl_pop_current (abstract_drawable);
     }
 



More information about the cairo-commit mailing list