New: [r600g] Evergreen vertex shaders transform vertices incorrectly in wine programs
https://bugs.freedesktop.org/show_bug.cgi?id=33792
Summary: [r600g] Evergreen vertex shaders transform vertices
incorrectly in wine programs
Product: Mesa
Version: git
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/r600
AssignedTo: [email protected]
ReportedBy: [email protected]
All the wine applications and games using vertex shaders that I've tried in evergreen position the vertices incorrectly.
All of them render correctly using llvmpipe and an r300g card/driver.
Graphics Card: ATI Technologies Inc Juniper [Radeon HD 5750 Series]
CPU: Intel Core Duo 1.8 Ghz, 2.5 GB RAM
Linux kernel 2.6.37, libdrm 2.4.23
Latest Mesa git
Games tested:
Call of Cthulhu: Dark Corners of the Earth
Portal
Sam & Max Season One
Tales of Monkey Island
Back to the Future: The Game
I'll post logs and screenshots for Tales of Monkey Island
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 33792] [r600g] Evergreen vertex shaders transform vertices incorrectly in wine programs
https://bugs.freedesktop.org/show_bug.cgi?id=33792
--- Comment #1 from Rubén Fernández <[email protected]> 2011-01-31 21:38:18 PST --- Created an attachment (id=42788)
--> (https://bugs.freedesktop.org/attachment.cgi?id=42788)
correct rendering (via llvmpipe)
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
[Bug 33792] [r600g] Evergreen vertex shaders transform vertices incorrectly in wine programs
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=33792
--- Comment #2 from Rubén Fernández <[email protected]> 2011-01-31 21:39:26 PST --- Created an attachment (id=42789)
--> (https://bugs.freedesktop.org/attachment.cgi?id=42789)
output log with llvmpipe with RADEON_DEBUG=vp MESA_GLSL=dump
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
[Bug 33792] [r600g] Evergreen vertex shaders transform vertices incorrectly in wine programs
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=33792
--- Comment #3 from Rubén Fernández <[email protected]> 2011-01-31 21:40:16 PST --- Created an attachment (id=42790)
--> (https://bugs.freedesktop.org/attachment.cgi?id=42790)
Screenshot of wrong rendering with r600g
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
[Bug 33792] [r600g] Evergreen vertex shaders transform vertices incorrectly in wine programs
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=33792
--- Comment #4 from Rubén Fernández <[email protected]> 2011-01-31 21:41:10 PST --- Created an attachment (id=42791)
--> (https://bugs.freedesktop.org/attachment.cgi?id=42791)
output log from r600g with RADEON_DEBUG=vp MESA_GLSL=dump
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
[Bug 33792] [r600g] Evergreen vertex shaders transform vertices incorrectly in wine programs
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=33792
--- Comment #5 from Rubén Fernández <[email protected]> 2011-01-31 21:43:57 PST --- Created an attachment (id=42792)
--> (https://bugs.freedesktop.org/attachment.cgi?id=42792)
Screenshot with Tom Stellard's branch of r600g
Using Tom Stellard's branch (in the hopes it produces more useful debugging output):
git://anongit.freedesktop.org/~tstellar/mesa
we get a screenshot that renders correctly the inanimate objects, but the characters are not rendered at all
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
[Bug 33792] [r600g] Evergreen vertex shaders transform vertices incorrectly in wine programs
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=33792
--- Comment #6 from Rubén Fernández <[email protected]> 2011-01-31 21:45:15 PST --- Created an attachment (id=42793)
--> (https://bugs.freedesktop.org/attachment.cgi?id=42793)
output log from using Tom Stellard's branch of r600g
Hoping this branch's output gives more useful info
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
[Bug 33792] [r600g] Evergreen vertex shaders transform vertices incorrectly in wine programs
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=33792
--- Comment #7 from Henri Verbeet <[email protected]> 2011-02-06 07:28:06 PST --- This may be similar to bug 31667, does
https://bugs.freedesktop.org/attachment.cgi?id=42992 make it any better?
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 33792] [r600g] Evergreen vertex shaders transform vertices incorrectly in wine programs
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=33792
--- Comment #8 from Rubén Fernández <[email protected]> 2011-02-06 13:22:21 PST --- (In reply to comment #7)
Quoted 2 lines
This may be similar to bug 31667, does
https://bugs.freedesktop.org/attachment.cgi?id=42992 make it any better?
Your patch makes the errors go away in three of the five games I tested for the
error: Call of Cthulhu, Sam & Max, and Back to the Future.
Portal seems to be unaffected, and Tales of Monkey Island continues to transform the vertices incorrectly, yet in a different way than before; I'll attach a new screenshot and log for the latter.
So yes, I agree this is, at least in part, the same bug as 31667.
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
[Bug 33792] [r600g] Evergreen vertex shaders transform vertices incorrectly in wine programs
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=33792
--- Comment #9 from Rubén Fernández <[email protected]> 2011-02-06 13:23:46 PST --- Created an attachment (id=43009)
--> (https://bugs.freedesktop.org/attachment.cgi?id=43009)
Screenshot after applying Henri Verbeet's patch
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
[Bug 33792] [r600g] Evergreen vertex shaders transform vertices incorrectly in wine programs
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=33792
--- Comment #10 from Rubén Fernández <[email protected]> 2011-02-06 13:24:37 PST --- Created an attachment (id=43010)
--> (https://bugs.freedesktop.org/attachment.cgi?id=43010)
Output log after applying Henri Verbeet's patch
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
[Bug 33792] [r600g] Evergreen vertex shaders transform vertices incorrectly in wine programs
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=33792
--- Comment #11 from Rubén Fernández <[email protected]> 2011-02-06 13:26:53 PST --- Aside from Portal and Tales of Monkey Island, all the other games work perfectly now, thanks to Henri's patch
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
[Bug 33792] [r600g] Evergreen vertex shaders transform vertices incorrectly in wine programs
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=33792
Rubén Fernández <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED--- Comment #12 from Rubén Fernández <[email protected]> 2011-04-04 22:34:56 PDT --- This bug is gone with the latest version of mesa git; it seems it was commit df3d11f6cab5dd5b4ff3cb0f10c8fe3e5954a16d "FLT_TO_INT_FLOOR and FLT_TO_INT_RPI are vector-only instructions on Evergreen" that did the trick.
Also, the commits:
244a3bbf14ef4f739e7f3be298c8613a2667fce0 "Handle texture fetch instructions
with relative addressing",
da5b4764b28a1efd2e9dbf0741247288da36f546 "Handle texture fetch instructions
with neg or abs on source register", and
78037d95da06b81799e75410154c8141b0a30ec0 "Handle texture fetch instructions
with swizzle on source register",
fixed texture addressing problems in those same games (that went unnoticed due to the geometry misrendering)
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