New: [r300g] No texture shadow in ogre3d
https://bugs.freedesktop.org/show_bug.cgi?id=37652
Summary: [r300g] No texture shadow in ogre3d
Product: Mesa
Version: git
Platform: x86-64 (AMD64)
OS/Version: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/r300
AssignedTo: [email protected]
ReportedBy: [email protected]
Using r300g, I'm unable to get texture shadows using the ogre3d graphics engine. Mesa texture shadow demos work fine. In fact, in the ogre3d texture shadow showcase demo I can see a very distorted texture shadow on the side of the base plane. In my own scenes, I get no shadows at all. Stencil shadows work just fine.
In order to pin down the problem, I ran a few tests. As it turns out, the problem really only exists in r300g (as far as I could test). It works fine in r600g and gallium3d llvmpipe. For reference, it also works in the NVIDIA and AMD proprietary drivers.
I also reported the problem in the ogre3d forums
(http://www.ogre3d.org/forums/viewtopic.php?f=4&t=64781) but it appears to be the wrong audience to post this issue in.
Due to the abstract nature of ogre3d, it is hard for me to create a minimal case without ogre3d.
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.
[Bug 37652] [r300g] No texture shadow in ogre3d
https://bugs.freedesktop.org/show_bug.cgi?id=37652
--- Comment #1 from Sven-Hendrik Haase <[email protected]> 2011-05-26 22:55:05 PDT --- Created an attachment (id=47204)
--> (https://bugs.freedesktop.org/attachment.cgi?id=47204)
r300g glxinfo
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.
[Bug 37652] [r300g] No texture shadow in ogre3d
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=37652
--- Comment #2 from Sven-Hendrik Haase <[email protected]> 2011-05-26 22:56:03 PDT --- Created an attachment (id=47205)
--> (https://bugs.freedesktop.org/attachment.cgi?id=47205)
r300g ogrelog
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.
[Bug 37652] [r300g] No texture shadow in ogre3d
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=37652
--- Comment #3 from Sven-Hendrik Haase <[email protected]> 2011-05-26 22:58:18 PDT --- Created an attachment (id=47206)
--> (https://bugs.freedesktop.org/attachment.cgi?id=47206)
llvmpipe glxinfo
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.
[Bug 37652] [r300g] No texture shadow in ogre3d
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=37652
--- Comment #4 from Sven-Hendrik Haase <[email protected]> 2011-05-26 22:58:35 PDT --- Created an attachment (id=47207)
--> (https://bugs.freedesktop.org/attachment.cgi?id=47207)
llvmpipe ogrelog
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.
[Bug 37652] [r300g] No texture shadow in ogre3d
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=37652
--- Comment #5 from Sven-Hendrik Haase <[email protected]> 2011-05-26 23:05:34 PDT --- The warnings about libtxc_dxtn.so might be irritating so I installed the required library but to no avail. After all, it would be fairly strange if ogre's texture shadows used S3TC compression in memory.
Further info: My distro is Arch Linux x86_64. The card is a Mobility Radeon X2100. The logs were taken from a very recent git revision. It is not a regression of r300g as I can't remember ever having texture shadows with this driver. They did work back then with r300c, though.
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.
[Bug 37652] [r300g] No texture shadow in ogre3d
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=37652
--- Comment #6 from Sven-Hendrik Haase <[email protected]> 2011-05-27 07:10:38 PDT --- For those without ogre3d, here is an apitrace: http://ompldr.org/vOHRlOQ
The character should show a shadow on the ground. It currently doesn't on r300g.
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.
[Bug 37652] [r300g] No texture shadow in ogre3d
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=37652
--- Comment #7 from Sven-Hendrik Haase <[email protected]> 2011-05-28 03:01:26 PDT --- A further, smaller, more conclusive trace in a less complex scene:
http://ompldr.org/vOHRyMQ
The planet is supposed to cast a shadow towards the camera.
Retrace call 19396 and notice how the shadow texture in texture 0 exist but at the glDrawElements isn't actually drawn to the framebuffer.
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.
[Bug 37652] [r300g] No texture shadow in ogre3d
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=37652
--- Comment #8 from Sven-Hendrik Haase <[email protected]> 2011-05-28 03:55:22 PDT --- Basically the same trace as before, but now all additional (and unused) ogre3d default materials as well as all scene materials were disabled. This removes some error and call noise during frame 1 and cuts down the size a lot.
Also I made the shadow green and the light white so it would be easier to see.
One call of interest is at 13429.
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.
[Bug 37652] [r300g] No texture shadow in ogre3d
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=37652
--- Comment #9 from Sven-Hendrik Haase <[email protected]> 2011-05-28 03:56:23 PDT --- Created an attachment (id=47249)
--> (https://bugs.freedesktop.org/attachment.cgi?id=47249)
trace ogre3d scene with texture shadow
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.
[Bug 37652] [r300g] No texture shadow in ogre3d
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=37652
Marek Olšák <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED--- Comment #10 from Marek Olšák <[email protected]> 2011-06-13 08:21:24 PDT --- Fixed by some of my latest r300g commits (not sure which one because I was fixing other bugs) and the fix appears to be cherry-picked to 7.10 as well. Closing.
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