New: gl_FragCoord gets corrupted in some camera angles
https://bugs.freedesktop.org/show_bug.cgi?id=53884
Bug #: 53884
Summary: gl_FragCoord gets corrupted in some camera angles
Classification: Unclassified
Product: Mesa
Version: 8.0
Platform: x86-64 (AMD64)
OS/Version: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/r600
AssignedTo: [email protected]
ReportedBy: [email protected]Created attachment 65891
--> https://bugs.freedesktop.org/attachment.cgi?id=65891
Screenshot of the issue, bad camera angle
In certain camera angles, gl_FragCoord.xy seem to have bogus/corrupted values.
I tried to make a simple example but couldn't, so uploading an apitrace of the bigger app and screenshots. The apitrace is 60mb XZ-compressed, that's why the need to use a third-party service - upload limits here.
This shader:
void main() {
gl_FragColor = vec4(gl_FragCoord.xy / vec2(640, 480), 0.0, 0.0);
}
should always create values from 0 to 1 in a window of that size. In the apitrace the only difference is that the size is passed in an uniform.
This bug happens on both r600g and llvmpipe. I didn't have the patience to wait for softpipe to render it. I don't have anything else on this machine to compare to (swrast, blobs).
Mesa 8.0.3
Linux 3.2.23
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 53884] gl_FragCoord gets corrupted in some camera angles
https://bugs.freedesktop.org/show_bug.cgi?id=53884
--- Comment #1 from Lauri Kasanen <[email protected]> 2012-08-21 14:43:19 UTC --- Created attachment 65892
--> https://bugs.freedesktop.org/attachment.cgi?id=65892
Same scene, good camera angle
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 53884] gl_FragCoord gets corrupted in some camera angles
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=53884
--- Comment #2 from Lauri Kasanen <[email protected]> 2012-08-21 14:46:53 UTC --- Apitrace (60mb):
http://www.ziddu.com/download/20164691/fragcoord.trace.zip.html
Renamed as a zip to let it be uploaded.
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 53884] gl_FragCoord gets corrupted in some camera angles
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=53884
Ian Romanick <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|[email protected] |[email protected]. |.org |org Component|Drivers/Gallium/r600 |Mesa core
--- Comment #3 from Ian Romanick <[email protected]> 2012-08-21 18:59:15 UTC --- I'm also able to reproduce this on Intel hardware with i965_dri.so. Since this doesn't seem specific to r600 hardware or even to Gallium-based drivers, I'm switching the component to 'Mesa core'.
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.