To use the function intelSwapBuffers, I change the function called by 
dri2SwapBuffers with (*pdraw->psc->core->swapBuffers)(pdraw->driDrawable);. 

Now, I can use the function intelSwapBuffers but in the function 
intelCopyBuffer (intel_blit.c), I have a segmentation fault when it does dst = 
intel_get_rb_region(&intel_fb->Base, BUFFER_FRONT_LEFT);

intel_get_rb_region(&intel_fb->Base, BUFFER_FRONT_LEFT) returns an irb->region 
= NULL.

My question is : Why the irb->region is NULL and How to do to have a correct 
irb->region ?

Thanks, Nicolas


De : Nicolas Cadio <[email protected]>
À : [email protected]; [email protected]
Envoyé le : Mercredi, 12 Août 2009, 15h00mn 10s
Objet : [Mesa3d-users] How to use the intelSwapBuffers function ?


Hi all,


I'm working with the intel chipset. 

I want to use the function glXSwapBuffers with a vertical synchronisation. 

But when I call glXSwapBuffers, glXSwapBuffers call the function 
dri2SwapBuffers which is in the file 
...\mesa-7.4.0-1\src\mesa\src\glx\x11\dri2_glx.c. But, I want to use the 
function intelSwapBuffers 
(...\mesa-7.4.0-1\src\mesa\src\mesa\drivers\dri\intel\intel_swapbuffers.c). 

So I think that glXSwapBuffers must call the function driSwapBuffers 
(...\mesa-7.4.0-1\src\mesa\src\glx\x11\dri_glx.c). And I think that 
driSwapBuffers of the dri_glx.c file call the function driSwapBuffers which is 
in the file ...\mesa-7.4.0-1\src\mesa\src\mesa\drivers\dri\common\dri_util.c. 
And to finish this function driSwapBuffers of dri_util.c call the function 
intelSwapBuffers.

is it right ?

If yes, how to do to use the function driSwapBuffers instead dri2SwapBuffers in 
glXSwapBuffers ?
Else , somebody can explain me how to use the function glXSwapBuffers with a 
vertical synchronisation ?

 
Thanks, nicolas


      
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to