Summary: | [r300g] Unigine: some surfaces are reflecting too much light | ||
---|---|---|---|
Product: | Mesa | Reporter: | Pavel Ondračka <pavel.ondracka> |
Component: | Drivers/Gallium/r300 | Assignee: | Default DRI bug account <dri-devel> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | minor | ||
Priority: | medium | CC: | hverbeet |
Version: | git | ||
Hardware: | x86 (IA32) | ||
OS: | Linux (All) | ||
URL: | http://unigine.com/download/#sanctuary | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
screenshot
screenshot before 68b701f5ded5f6b73a6b07cf37d862fab4836607 |
Description
Pavel Ondračka
2011-02-12 14:22:06 UTC
Created attachment 43306 [details]
screenshot before 68b701f5ded5f6b73a6b07cf37d862fab4836607
Could you please also test with softpipe/llvmpipe/swrast/an intel driver or anything else non-r300 to rule out a GLSL compiler issue? (In reply to comment #2) > Could you please also test with softpipe/llvmpipe/swrast/an intel driver or > anything else non-r300 to rule out a GLSL compiler issue? Both softpipe and llvmpipe doesn't work with Sanctuary here, but I have also one Nvidia card so I'll try nouveau tomorrow. Is Sanctuary supposed to work on i965 hardware? llvmpipe works fine, but you need to set MESA_EXTENSION_OVERRIDE="-GL_EXT_texture_array -GL_ARB_draw_instanced" for Sanctuary to run properly and use the same extensions as with r300g. Can you try this again with the latest git version of mesa (commit ffc1d166d24532aeaa4dcf06a431e43ab7e7e315 or newer)? (In reply to comment #6) > Can you try this again with the latest git version of mesa (commit > ffc1d166d24532aeaa4dcf06a431e43ab7e7e315 or newer)? Still broken with current git. Works fine with RADEON_DEBUG=noopt. e6c64800cc8833fb4083a556c839b51e8ac84a8b is the first bad commit commit e6c64800cc8833fb4083a556c839b51e8ac84a8b Author: Henri Verbeet <hverbeet@gmail.com> Date: Tue Aug 9 12:23:47 2011 -0500 glsl_to_tgsi: improve assignment hack Fixes StarCraft 2 and Fallout 3 in Wine. Since e6c64800cc8833fb4083a556c839b51e8ac84a8b this is getting worse. There isn't only high shader setting affected but also low and middle shader quality are now misrendered. This is still the same bug, RADEON_DEBUG=noopt works around this and llvmpipe is not affected at all. CCing Henri, maybe he can bring some light about what his change did to uncover this bug in r300g compiler. (In reply to comment #8) > around this and llvmpipe is not affected at all. CCing Henri, maybe he can > bring some light about what his change did to uncover this bug in r300g > compiler. I'm afraid I won't have a lot of insights to contribute here. That commit just disabled an optimization in some cases where it wasn't safe to do. I suppose it may be interesting to see if disabling the entire else-if block that patch touches makes it better or worse. Bryan Cain is much more familiar with the glsl-to-tgsi code than I am though. The typical way to debug things like this is to figure out which shader is responsible for drawing the geometry in question, using something like apitrace or your own debug hacks, and then comparing the GLSL with what gets sent to hardware (and any intermediates). Unigine Oilrush is also affected. The reg rename pass has be re-enabled, can you try again with the latest code from git. (In reply to comment #11) > The reg rename pass has be re-enabled, can you try again with the latest code > from git. Well, Sanctuary with low shaders seems fine, can't test other setting due to bug 40448. Closing for now. Some surfaces in Oilrush still seems little bit overbright, however I can't compare because with RADEON_DEBUG=noopt both Sanctuary and Oilrush are now completely broken. And this may be a different bug, will test more. BTW the optimizations are now needed for correct output or should I bisect and report it? Will also do some benchmarks, IIRC there were some slowdowns last time with reg rename pass. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.