[cairo-commit] glitz/src/glx glitz_glx_drawable.c, 1.4, 1.5 glitz_glx_format.c, 1.4, 1.5

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


Committed by: davidr

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

Modified Files:
	glitz_glx_drawable.c glitz_glx_format.c 
Log Message:
Add YUV surfaces

Index: glitz_glx_drawable.c
===================================================================
RCS file: /cvs/cairo/glitz/src/glx/glitz_glx_drawable.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- glitz_glx_drawable.c	14 Sep 2005 15:57:16 -0000	1.4
+++ glitz_glx_drawable.c	29 Nov 2005 22:41:27 -0000	1.5
@@ -216,6 +216,7 @@
 				GLITZ_CONTEXT_CURRENT);
 	glitz_program_map_fini (drawable->base.backend->gl,
 				&drawable->screen_info->program_map);
+        glitz_program_map_init (&drawable->screen_info->program_map);
 	glitz_glx_pop_current (abstract_drawable);
     }
 

Index: glitz_glx_format.c
===================================================================
RCS file: /cvs/cairo/glitz/src/glx/glitz_glx_format.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- glitz_glx_format.c	14 Sep 2005 15:57:16 -0000	1.4
+++ glitz_glx_format.c	29 Nov 2005 22:41:27 -0000	1.5
@@ -45,6 +45,9 @@
 
     for (; i < 2; i++)
     {
+	if (format[i]->d.color.fourcc != GLITZ_FOURCC_RGB)
+	    score[i] -= 1000;
+
 	if (format[i]->d.color.red_size)
 	{
 	    if (format[i]->d.color.red_size >= 8)
@@ -119,8 +122,9 @@
 			      &visual_templ, &num_visuals);
 
     /* No pbuffers without fbconfigs */
-    format.types = GLITZ_DRAWABLE_TYPE_WINDOW_MASK;
-    format.d.id  = 0;
+    format.types          = GLITZ_DRAWABLE_TYPE_WINDOW_MASK;
+    format.d.id           = 0;
+    format.d.color.fourcc = GLITZ_FOURCC_RGB;
 
     for (i = 0; i < num_visuals; i++)
     {
@@ -243,7 +247,8 @@
 	if (value & GLX_PBUFFER_BIT)
 	    format.types |= GLITZ_DRAWABLE_TYPE_PBUFFER_MASK;
 
-	format.d.id = 0;
+	format.d.id           = 0;
+	format.d.color.fourcc = GLITZ_FOURCC_RGB;
 
 	glx->get_fbconfig_attrib (display, fbconfigs[i], GLX_FBCONFIG_ID,
 				  &value);



More information about the cairo-commit mailing list