Maciej Cencora wrote: > On poniedziałek, 9 lutego 2009 17:40:30 Markus Amsler wrote: >> Wow much better :). All lookups are gone >> r300: everything works perfect >> r500: demos/fogcoord, demos/tunnel, WoW: geometry corruption >> tests/fog, tests/fogcoord: no fog/wrong fog >> >> On r300 in WoW I noticed the "distance fog" is not working at all. I >> have the suspicion it's because fragment/vertex programs circumvent the >> fixed function fog stuff. >> >> Markus > > I tried to find a bug in r500 path, but no luck. I'll need some debug info. > The attached patch contains some debug code that is disabled now (check hunks > in flush_last_swtcl_prim function). Enable this code, and run one simple 3d > prog that doesn't use fog at all (e.g. mesa/progs/demos/multiarb) and then > one > with fog (demos/fogcoord) with env variable RADEON_DEBUG=all That will > generate some info that will certainly be helpful in finding the bug in r500 > path. > > Maciej > Found the bug in r300_state.c line 1790 change r300->hw.rr.cmd[R300_RR_CMD_0] = cmdpacket0(R300_RS_INST_0, high_rr); to r300->hw.rr.cmd[R300_RR_CMD_0] = cmdpacket0(R500_RS_INST_0, high_rr); now all coruptions are gone. I also tested your patch on a r400, and it behaves exactly the same like r300 and r500.
In WoW under d3d mode I get on all card gpu lockups, but this is probably unrelated, as with GL_EXT_fog_coord present wine takes another code path. I will investigate these lookups further. Also the distant fog in wow is not working, but it was never working anyway. We would need to patch up the wow shaders as they circumvent the fixed function sahders from mesa, which is unrelated to fog_coord imho. From my pov this is ready to go in, but I wonn't commit it as this stuff is a little over my head. Markus ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ Mesa3d-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mesa3d-dev
