Skip to contentSkip to conversation

some wine apps renders black

Bug 70009 [email protected] 1 participant 11 messages Oct 2, 2013 – Sep 18, 2019 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

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

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

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

           Assignee|[email protected]. |[email protected]
                   |org                         |.org
            Summary|[bisected] some wine apps   |[r300g, bisected] some wine
                   |renders black               |apps renders black
          Component|Mesa core                   |Drivers/Gallium/r300

--- Comment #2 from Pavel Ondračka <[email protected]> --- So is seems, that when I record a trace using r300g driver (RV530) and replay it using either llvmpipe or i965, it works fine. Probably this is just some issue in the r300g driver, uncovered by core mesa changes...
EVE online apitrace uploaded here: http://pavel.ondracka.cz/EVE.trace

Signature · 2 lines
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
In reply to a message not in the archive

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

--- Comment #3 from Alex Deucher <[email protected]> --- (In reply to comment #2)

Quoted 4 lines

So is seems, that when I record a trace using r300g driver (RV530) and replay it using either llvmpipe or i965, it works fine. Probably this is just some issue in the r300g driver, uncovered by core mesa changes... EVE online apitrace uploaded here: http://pavel.ondracka.cz/EVE.trace

llvmpipe and i965 support more temps than r300 class hw so they don't cross the limit.

Signature · 2 lines
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
In reply to a message not in the archive

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

--- Comment #4 from Pavel Ondračka <[email protected]> --- (In reply to comment #3)

Quoted 8 lines

(In reply to comment #2)

Quoted 4 lines

So is seems, that when I record a trace using r300g driver (RV530) and replay it using either llvmpipe or i965, it works fine. Probably this is just some issue in the r300g driver, uncovered by core mesa changes... EVE online apitrace uploaded here: http://pavel.ondracka.cz/EVE.trace

llvmpipe and i965 support more temps than r300 class hw so they don't cross the limit.

Yeah, thats why they show no errors and promblems when launching EVE directly, because wine detects this and generate valid shaders...

However the main problem is a little bit different. Citing one sample shader from bug 42514:
The shader declares the array VC to have 245 elements:
uniform vec4 VC[245];
then it tries to access the 246th element of the array:
R0.xyz = (VC[245].xyz);

Also citing from wine bug 29146:
Yeah, we should be better about this. The reason we don't already do this is that a shader like this may still work if it doesn't actually use the constants near the end that we remove. We should probably print a message mentioning something along those lines when such a shader fails to compile or link.

So when i generate the apitrace with r300g in already contains the invalid shaders, however llvmpipe and softpipe still handle things correctly (e.g. display majority of stuff) and also r300g did so before the mentioned bad commit.

Signature · 2 lines
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
In reply to a message not in the archive

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

--- Comment #5 from Marek Olšák <[email protected]> ---
Do particular shaders fail to compile or is there just incorrect rendering?

Signature · 2 lines
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
In reply to a message not in the archive

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

--- Comment #6 from Pavel Ondračka <[email protected]> --- Created attachment 87014
--> https://bugs.freedesktop.org/attachment.cgi?id=87014&action=edit
EVE online Wine terminal output

(In reply to comment #5)

Quoted 1 line

Do particular shaders fail to compile or is there just incorrect rendering?

Yeah, there is a particular failing shader, however it fails to compile and link even before the patch, its just that the patch introduced also a bad rendering (but only for r300g).

I've attached the wine log, which shows the failing shader, however I'm starting to believe, that it may not be the root cause here.

Signature · 2 lines
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
In reply to a message not in the archive

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

--- Comment #7 from Marek Olšák <[email protected]> --- Created attachment 87143
--> https://bugs.freedesktop.org/attachment.cgi?id=87143&action=edit
possible fix

Could you please try the attached patch?

Signature · 2 lines
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
In reply to a message not in the archive

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

--- Comment #8 from Pavel Ondračka <[email protected]> --- (In reply to comment #7)

Quoted 4 lines

Created attachment 87143 [details] [review]
possible fix

Could you please try the attached patch?

The attached patch doesn't help.

Signature · 2 lines
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
In reply to a message not in the archive

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

--- Comment #9 from Marek Olšák <[email protected]> ---
Sorry I'm out of ideas. Can the regression be reproduced by some existing piglit test maybe?

Signature · 2 lines
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
In reply to a message not in the archive

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

--- Comment #10 from Pavel Ondračka <[email protected]> --- (In reply to comment #9)

Quoted 2 lines

Sorry I'm out of ideas. Can the regression be reproduced by some existing piglit test maybe?

I'll run a piglit before and after the change... BTW you can't reproduce this with the http://pavel.ondracka.cz/EVE.trace trace?

Signature · 2 lines
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
In reply to a message not in the archive

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

--- Comment #11 from Pavel Ondračka <[email protected]> --- (In reply to comment #9)

Quoted 2 lines

Sorry I'm out of ideas. Can the regression be reproduced by some existing piglit test maybe?

Sadly there are no changes in quick piglit test, except for glsl-fs-discard-02 and glx-copy-sub-buffer samples=4 and they both pass when I run the manually.

Signature · 2 lines
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
In reply to a message not in the archive

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

GitLab Migration User <[email protected]> changed:

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

             Status|NEW                         |RESOLVED
         Resolution|---                         |MOVED

--- Comment #12 from GitLab Migration User <[email protected]> --- -- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/357.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel