[Openchrome-users] Xgl on Unichrome (VIA)

Boris Dušek borisdusek
Sat Oct 7 01:09:44 PDT 2006


Hi Ujjwal!

On Saturday 07 October 2006 03:05, you wrote:
> hi...
> I read your thread on Xorg mailing archives that you were trying to install
> Xgl on
> VIA Unichrome Driver.
>
> I also have same configuration as yours,VIA KM400  Motherboard
> and also I have read that no one has been able to do it successfully...
>
> were u successful in installing Xgl on Unichrome ...

yes and no.

YES, with adding 3 lines of code the the unichrome 3D driver, I was able to 
start Xgl, compiz and see the cube.
The three lines probably were something like this:

Index: via_context.c
===================================================================
RCS file: /cvs/mesa/Mesa/src/mesa/drivers/dri/unichrome/via_context.c,v
retrieving revision 1.60
diff -u -r1.60 via_context.c
--- via_context.c   30 Jan 2006 23:49:31 -0000  1.60
+++ via_context.c   5 May 2006 19:23:06 -0000
@@ -645,6 +645,12 @@
     }

     driInitExtensions( ctx, card_extensions, GL_TRUE );
+
+    _mesa_enable_extension( ctx, "GL_ARB_texture_cube_map" );
+    _mesa_enable_extension( ctx, "GL_EXT_texture_compression_s3tc" );
+    _mesa_enable_extension( ctx, "GL_S3_s3tc" );
+    _mesa_enable_extension( ctx, "GL_NV_texture_rectangle");
+
     viaInitStateFuncs(ctx);
     viaInitTriFuncs(ctx);
     viaInitSpanFuncs(ctx);


With this (or maybe something slightly different), Xgl starts.

And NO, the problem is it does not work fully - e.g. the window decorator is 
not initially drawn (or something like that, I don't remember well, it was 
half a year back), mouse clicking does not work (so moving windows is not 
possible), so it is not stable at all.

> And also is it possible by any chance that we can get Xgl working

Getting Xgl working ( = improve the 3D driver) would require either of 2 types 
of persons:

1. someone with no knowledge of OpenGL, DRI, but good knowledge of C and lots 
of time to learn the necessary things
2. someone with lots of knowledge of OpenGL, Mesa, DRI, and much less, but 
still some time to write the Xgl support

for 1., Benno and I are probably candidates, but I have just some time, not 
lots of time
for 2., maybe Thomas could be the candidate, but I guess (based on his emails) 
he as well does not have the "much less, but still some time" for it.

>
> Regards
> Ujjwal Jain

Regards,
Boris Du?ek




More information about the Openchrome-users mailing list