Skip to contentSkip to conversation

New: [r300g] vertex shaders render incorrectly in some wine programs

Bug 32829 [email protected] 1 participant 16 messages Jan 4, 2011 – Apr 5, 2011

lore
Share & tools
lore
#0 lore raw

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

Summary: [r300g] vertex shaders render incorrectly in some wine
programs
Product: Mesa
Version: git
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/r300
AssignedTo: [email protected]
ReportedBy: [email protected]

The game "Doctor Who: The Adventure games" produces polygon artifacts when using GLSL; turning off GLSL in wine makes the game render correctly; using GLSL with software rendering / llvmpipe renders correctly as well.

Graphics Card: ATI Technologies Inc RV505 [Radeon X1550 64-bit]
CPU: Intel Core Duo 1.8 Ghz, 2.5 GB RAM
Linux kernel 2.6.36, libdrm 2.4.23
Latest Mesa 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.
#1 lore raw

[Bug 32829] [r300g] vertex shaders render incorrectly in some wine programs

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

--- Comment #1 from Rubén Fernández <[email protected]> 2011-01-04 13:02:53 PST --- Created an attachment (id=41642)
--> (https://bugs.freedesktop.org/attachment.cgi?id=41642)
Screenshot showing misrendering

Some vertices are incorrectly translated

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 32829] [r300g] vertex shaders render incorrectly in some wine programs

In reply to [email protected]

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

--- Comment #2 from Rubén Fernández <[email protected]> 2011-01-04 13:03:55 PST --- Created an attachment (id=41643)
--> (https://bugs.freedesktop.org/attachment.cgi?id=41643)
Log of the misrendering with MESA_GLSL=dump and RADEON_DEBUG=vp

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 32829] [r300g] vertex shaders render incorrectly in some wine programs

In reply to [email protected]

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

--- Comment #3 from Rubén Fernández <[email protected]> 2011-01-04 13:04:28 PST --- Created an attachment (id=41644)
--> (https://bugs.freedesktop.org/attachment.cgi?id=41644)
Correct rendering with GLSL disabled in wine

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 32829] [r300g] vertex shaders render incorrectly in some wine programs

In reply to [email protected]

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

--- Comment #4 from Rubén Fernández <[email protected]> 2011-01-04 13:05:06 PST --- Created an attachment (id=41645)
--> (https://bugs.freedesktop.org/attachment.cgi?id=41645)
Log of the correct rendering with MESA_GLSL=dump and RADEON_DEBUG=vp

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
#5 lore raw

[Bug 32829] [r300g] vertex shaders render incorrectly in some wine programs

In reply to [email protected]

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

--- Comment #5 from Tom Stellard <[email protected]> 2011-01-06 23:44:27 PST --- Hi, Can you try with the debugger branch from
git://anongit.freedesktop.org/~tstellar/mesa and post the output of RADEON_DEBUG=vp ? This branch will probably mis-render a bunch of stuff, but it produces more helpful output. Also, If this branch causes a segfault, can you post a stack trace?

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.
#6 lore raw

[Bug 32829] [r300g] vertex shaders render incorrectly in some wine programs

In reply to [email protected]

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

--- Comment #6 from Rubén Fernández <[email protected]> 2011-01-07 10:37:53 PST --- (In reply to comment #5)

Quoted 5 lines

Hi, Can you try with the debugger branch from
git://anongit.freedesktop.org/~tstellar/mesa and post the output of RADEON_DEBUG=vp ? This branch will probably mis-render a bunch of stuff, but it produces more helpful output. Also, If this branch causes a segfault, can you post a stack trace?

I've tried, but it's missing the file "radeon_debugger_result.h"; please add it and I'll test with it as soon as I can.

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
#7 lore raw

[Bug 32829] [r300g] vertex shaders render incorrectly in some wine programs

In reply to [email protected]

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

--- Comment #8 from Rubén Fernández <[email protected]> 2011-01-07 16:18:30 PST --- (In reply to comment #7)

Quoted 1 line

Created an attachment (id=41761)

--> (https://bugs.freedesktop.org/attachment.cgi?id=41761)

Quoted 3 lines

radeon_debugger_result.h

Sorry, Add this file to src/mesa/drivers/dri/r300/compiler

Done; it doesn't segfault, but aborts due to "cannot allocate memory" before even getting to the point where it renders the characters wrongly; it seems to compile the shaders anyway, so I'll give you the log.

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 32829] [r300g] vertex shaders render incorrectly in some wine programs

In reply to [email protected]

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

--- Comment #9 from Rubén Fernández <[email protected]> 2011-01-07 16:19:29 PST --- Created an attachment (id=41764)
--> (https://bugs.freedesktop.org/attachment.cgi?id=41764)
output from Tom's branch with RADEON_DEBUG=vp and MESA_GLS=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
#9 lore raw

[Bug 32829] [r300g] vertex shaders render incorrectly in some wine programs

In reply to [email protected]

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

--- Comment #11 from Rubén Fernández <[email protected]> 2011-01-08 05:52:10 PST --- (In reply to comment #10)

Quoted 2 lines

Does running mesa master branch with RADEON_DEBUG=noopt fix the issue? If so, can you post the output of RADEON_DEBUG=noopt,vp ?

It doesn't - the results are the same. Posting the output anyway, in case it helps.

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
#10 lore raw

[Bug 32829] [r300g] vertex shaders render incorrectly in some wine programs

In reply to [email protected]

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

--- Comment #12 from Rubén Fernández <[email protected]> 2011-01-08 05:53:16 PST --- Created an attachment (id=41769)
--> (https://bugs.freedesktop.org/attachment.cgi?id=41769)
Log of the misrendering with RADEON_DEBUG=noopt,vp

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 32829] [r300g] vertex shaders render incorrectly in some wine programs

In reply to [email protected]

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

--- Comment #10 from Tom Stellard <[email protected]> 2011-01-07 21:36:51 PST --- Does running mesa master branch with RADEON_DEBUG=noopt fix the issue? If so, can you post the output of RADEON_DEBUG=noopt,vp ?

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 32829] [r300g] vertex shaders render incorrectly in some wine programs

In reply to [email protected]

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

--- Comment #7 from Tom Stellard <[email protected]> 2011-01-07 14:49:54 PST --- Created an attachment (id=41761)
--> (https://bugs.freedesktop.org/attachment.cgi?id=41761)
radeon_debugger_result.h

Sorry, Add this file to src/mesa/drivers/dri/r300/compiler

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.
#13 lore raw

[Bug 32829] [RADEON:KMS:R300G] vertex shaders render incorrectly in some wine programs

In reply to [email protected]

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

Jerome Glisse <[email protected]> changed:

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

            Summary|[r300g] vertex shaders      |[RADEON:KMS:R300G] vertex
                   |render incorrectly in some  |shaders render incorrectly
                   |wine programs               |in some wine programs
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.
#14 lore raw

[Bug 32829] [RADEON:KMS:R300G] vertex shaders render incorrectly in some wine programs

In reply to [email protected]

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

Rubén Fernández <[email protected]> changed:

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

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #13 from Rubén Fernández <[email protected]> 2011-04-04 22:28:05 PDT --- Since I no longer have access to an r300 card, I can't test for this bug anymore; unless somebody else has such a card, and this same game, I guess it's better to mark it as "solved".

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
#15 lore raw

[Bug 32829] [RADEON:KMS:R300G] vertex shaders render incorrectly in some wine programs

In reply to [email protected]

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

Rubén Fernández <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Resolution|FIXED |WONTFIX

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