Skip to contentSkip to conversation

New: [r300g] Unigine Sanctuary: some surfaces are reflecting too much light

Bug 34218 [email protected] 1 participant 13 messages Feb 12, 2011 – Oct 17, 2011

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=34218

Summary: [r300g] Unigine Sanctuary: some surfaces are
reflecting too much light
Product: Mesa
Version: git
Platform: x86 (IA32)
URL: http://unigine.com/download/#sanctuary
OS/Version: Linux (All)
Status: NEW
Severity: minor
Priority: medium
Component: Drivers/Gallium/r300
AssignedTo: [email protected]
ReportedBy: [email protected]

Created an attachment (id=43305)
--> (https://bugs.freedesktop.org/attachment.cgi?id=43305)
screenshot

Another bug I've found during my recent Sanctuary testing. Some surfaces are way too much bright. This is a regression:

commit 68b701f5ded5f6b73a6b07cf37d862fab4836607

Author: Tom Stellard <[email protected]>
Date:   Sat Feb 5 22:39:58 2011 -0800

r300/compiler: Disable register rename pass on r500

The scheduler and the register allocator are not good enough yet to deal with the effects of the register rename pass. This was causing a 50% performance drop in Lightsmark. The pass can be re-enabled once the scheduler and the register allocator are more mature. r300 and r400 still need this pass, because it prevents a lot of shaders from using too many texture indirections.

NOTE: This is a candidate for the 7.10 branch.

BTW commit fixed shadows in Sanctuary but now it seems it simultaneously broke another thing. I haven't seen this when testing the shadows because this is only visible with shaders quality high. I've tried going back before register rename pass was introduce to see if this is similar to bug 34030, however this bug was also present there, it just wasn't much visible since shadows were broken at that time.

RADEON_DEBUG=noopt fixes this particular problem, but there are some black glitches when noopt is used and the wireframe problem is also much more visible.

Sanctuary version: 2.3
shaders quality: high (low and medium works fine) all other setting set to lowest possible or disabled
mesa: a6b7393eb8b4ef14c0d9ba8d64e57ed8ca82a9f7
GPU: RV530

So far I've done all my testing with almost lowest settings, but now when menus are fixed it is finally possible to easily change settings and enable different options and of course most of them doesn't work (like paralax mapping, translucence, HDR, etc.) should I open a new separate bug for each one broken?

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#1 lore raw

[Bug 34218] [r300g] Unigine Sanctuary: some surfaces are reflecting too much light

https://bugs.freedesktop.org/show_bug.cgi?id=34218

--- Comment #1 from Pavel Ondračka <[email protected]> 2011-02-12 14:23:18 PST --- Created an attachment (id=43306)
--> (https://bugs.freedesktop.org/attachment.cgi?id=43306)
screenshot before 68b701f5ded5f6b73a6b07cf37d862fab4836607

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#2 lore raw

[Bug 34218] [r300g] Unigine Sanctuary: some surfaces are reflecting too much light

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=34218

--- Comment #2 from Marek Olšák <[email protected]> 2011-02-12 14:26:16 PST --- Could you please also test with softpipe/llvmpipe/swrast/an intel driver or anything else non-r300 to rule out a GLSL compiler issue?

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#3 lore raw

[Bug 34218] [r300g] Unigine Sanctuary: some surfaces are reflecting too much light

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=34218

--- Comment #3 from Pavel Ondračka <[email protected]> 2011-02-12 14:55:40 PST --- (In reply to comment #2)

Quoted 2 lines

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.

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#4 lore raw

[Bug 34218] [r300g] Unigine Sanctuary: some surfaces are reflecting too much light

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=34218

--- Comment #4 from Tobias Jakobi <[email protected]> 2011-02-12 15:47:38 PST --- Is Sanctuary supposed to work on i965 hardware?

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#5 lore raw

[Bug 34218] [r300g] Unigine Sanctuary: some surfaces are reflecting too much light

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=34218

--- Comment #5 from Pavel Ondračka <[email protected]> 2011-02-13 04:01:29 PST --- 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.

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#6 lore raw

[Bug 34218] [r300g] Unigine Sanctuary: some surfaces are reflecting too much light

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=34218

--- Comment #6 from Tom Stellard <[email protected]> 2011-04-18 22:04:20 PDT --- Can you try this again with the latest git version of mesa (commit ffc1d166d24532aeaa4dcf06a431e43ab7e7e315 or newer)?

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#7 lore raw

[Bug 34218] [r300g] Unigine Sanctuary: some surfaces are reflecting too much light

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=34218

--- Comment #7 from Pavel Ondračka <[email protected]> 2011-04-19 01:36:51 PDT --- (In reply to comment #6)

Quoted 2 lines

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.

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#8 lore raw

[Bug 34218] [r300g] Unigine Sanctuary: some surfaces are reflecting too much light

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=34218

Pavel Ondračka <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #8 from Pavel Ondračka <[email protected]> 2011-08-29 02:38:20 PDT --- e6c64800cc8833fb4083a556c839b51e8ac84a8b is the first bad commit
commit e6c64800cc8833fb4083a556c839b51e8ac84a8b

Author: Henri Verbeet <[email protected]>
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.

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#9 lore raw

[Bug 34218] [r300g] Unigine Sanctuary: some surfaces are reflecting too much light

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=34218

--- Comment #9 from Henri Verbeet <[email protected]> 2011-08-30 05:58:18 PDT --- (In reply to comment #8)

Quoted 3 lines

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).

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#10 lore raw

[Bug 34218] [r300g] Unigine: some surfaces are reflecting too much light

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=34218

Pavel Ondračka <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

            Summary|[r300g] Unigine Sanctuary:  |[r300g] Unigine: some
                   |some surfaces are           |surfaces are reflecting too
                   |reflecting too much light   |much light

--- Comment #10 from Pavel Ondračka <[email protected]> 2011-09-19 00:06:43 PDT --- Unigine Oilrush is also affected.

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#11 lore raw

[Bug 34218] [r300g] Unigine: some surfaces are reflecting too much light

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=34218

--- Comment #11 from Tom Stellard <[email protected]> 2011-10-14 18:41:51 PDT --- The reg rename pass has be re-enabled, can you try again with the latest code from git.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#12 lore raw

[Bug 34218] [r300g] Unigine: some surfaces are reflecting too much light

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=34218

Pavel Ondračka <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #12 from Pavel Ondračka <[email protected]> 2011-10-17 08:24:41 PDT --- (In reply to comment #11)

Quoted 2 lines

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.

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel