Xiang, Haihao wrote:
>> -----Original Message-----
>> From: Keith Whitwell [mailto:[EMAIL PROTECTED]
>> Sent: 2007?3?2? 17:32
>> To: Xiang, Haihao
>> Cc: Mesa3d-dev@lists.sourceforge.net
>> Subject: Re: [Mesa3d-dev] Fallback to software in i965 triggers segment fault
>> after merging with vbo-0.2
>>
>> Xiang, Haihao wrote:
>>> Hi, all
>>>
>>>          With some gdb analysis, I noticed some software render
>>> functions are no longer installed after merging with vbo-0.2 in i965 and
>>> this will break some 3D apps.  I worked out a fix for it. Could anyone
>>> take a look? (See http://bugs.freedesktop.org/show_bug.cgi?id=9971).
>> Haihao,
>>
>> The patch looks good and is probably the right approach.
>>
>> I think if you call swsetup_Wakeup, you also want to be calling
>> swrast_Wakeup - swrast does make some attempt to put itself to sleep,
>> unlike the other modules.
> 
> Thanks.
> 
> I don't find anything about swrast_Wakeup in Mesa, only a function 
> swrast_sleep in s_context.c, but it doesn't do anything. I wonder how to put 
> the module to  sleep, could you give me some clues?

Actually, looking at the code I'm mistaken - the sleep/wakeup happens 
automatically.

Look at _swrast_InvalidateState() - if it gets a certain number of 
statechanges without doing any drawing, it unhooks itself from state 
updates.

The "wakeup" is handled automatically next time drawing occurs 
(_swrast_update_state).

I don't know if this actually helps performance, it's more an 
experiment.  You don't have to worry either way though.

Keith


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to