Please do not reply to this email: if you want to comment on the bug, go to    
       
the URL shown below and enter yourcomments there.     
   
https://bugs.freedesktop.org/show_bug.cgi?id=6046          
     




------- Additional Comments From [EMAIL PROTECTED]  2006-02-28 09:22 -------
Ok, so:

 - Adding r300UpdateWindow(ctx); instead of r300ResetHwState(r300); (at the same
location) inside r300InvalidateState() does fix the problem. Good.

 - However, just doing 

       R300_FIREVERTICES(r300);
       R300_STATECHANGE(r300, vpt);

instead does _NOT_ fix it.

 - Now, if I duplicate r300UpdateWindow(), calling the new one
r300UpdateWindow2() which does exactly as r300UpdateWindow() does _without_ the
2 lines above (that is basically keep only the part that updates the various
rmesa->hw.vpt.cmd[] entries). The problem is fixed too.

 - I finally went all the way down to isolating which bit actually fixes it and 
it's

        rmesa->hw.vpt.cmd[R300_VPT_XOFFSET] = r300PackFloat32(tx);

Just that line fixes the problem.

So for some reason, that XOFFSET thing gets corrupt.... I don't know enough of
what's going on in there, maybe it's normal that some or all of these gets
clobbered and they indeed should be restored... or maybe not, I'll let you guys
decide on the proper fix. That routine seems to be called fairly often, at least
in a windowed environment, so it seems performance critical enough to try to
optimize it.

While I was there, I also noticed an unrelated bit=:

r300Viewport() does

        R300_FIREVERTICES(R300_CONTEXT(ctx));
        r300UpdateWindow(ctx);

Isn't the first line redundant ? (That is, r300UpdateWindow does the
FIREVERTICES thing already).







          
     
     
--           
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email         
     
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to