https://bugs.freedesktop.org/show_bug.cgi?id=36065
Summary: r600g regression : vertex buffer alignement Product: DRI Version: XOrg CVS Platform: x86-64 (AMD64) OS/Version: Linux (All) Status: NEW Severity: normal Priority: medium Component: DRM/Radeon AssignedTo: dri-devel@lists.freedesktop.org ReportedBy: pelloux@gmail.com
I have a simple app using vbo to render models. The VBO layout is : position (3 float), normal (3 float), color (3 char)
This app was running perfectly until I updated libdrm/mesa to git version. Now the app still does not have any GL error set (checked with glGetError()), but its rendering is completely wrong.
git-bisect pointed me to this commit : 0ed5bf668db24fb56b5b359399099c89531e2a0a "r600g: Request DWORD aligned vertex buffers."
OS : Debian unstable (amd64) Radeon HD 4850
https://bugs.freedesktop.org/show_bug.cgi?id=36065
--- Comment #1 from pelloux@gmail.com 2011-04-08 05:02:00 PDT --- Here's a few more information, hoping it could help :
From Xorg.0.log :
[KMS] Kernel modesetting enabled.
From glxinfo :
EE r600_pipe.c:430 r600_get_param - r600: unknown param 45 name of display: :0 [...] direct rendering: Yes OpenGL renderer string: Gallium 0.4 on AMD RV770
From lscpci -v :
VGA compatible controller: ATI Technologies Inc RV770 [Radeon HD 4850] (prog-if 00 [VGA controller]) (PCI-E)
https://bugs.freedesktop.org/show_bug.cgi?id=36065
--- Comment #2 from pelloux@gmail.com 2011-04-08 05:03:43 PDT --- Created an attachment (id=45415) --> (https://bugs.freedesktop.org/attachment.cgi?id=45415) Wrong/Correct rendering
On the left : rendering using mesa including the mention commit On the right : rendering using older mesa OR LIBGL_ALWAYS_SOFTWARE=1
https://bugs.freedesktop.org/show_bug.cgi?id=36065
--- Comment #3 from Alex Deucher agd5f@yahoo.com 2011-04-08 07:42:37 PDT --- Can you attach the source to your test app?
https://bugs.freedesktop.org/show_bug.cgi?id=36065
--- Comment #4 from Alex Deucher agd5f@yahoo.com 2011-04-08 07:43:31 PDT --- Or find a simple mesa demo or piglit test that exhibits the same issue?
https://bugs.freedesktop.org/show_bug.cgi?id=36065
--- Comment #5 from pelloux@gmail.com 2011-04-08 08:44:47 PDT --- Created an attachment (id=45424) --> (https://bugs.freedesktop.org/attachment.cgi?id=45424) sample app that reproduces the issue
https://bugs.freedesktop.org/show_bug.cgi?id=36065
Marek Olšák maraeo@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Product|DRI |Mesa Version|XOrg CVS |git Component|DRM/Radeon |Drivers/Gallium/r600
--- Comment #6 from Marek Olšák maraeo@gmail.com 2011-04-08 09:48:55 PDT --- Both r300g and r600g are affected. I am working on the fix.
https://bugs.freedesktop.org/show_bug.cgi?id=36065
Marek Olšák maraeo@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #7 from Marek Olšák maraeo@gmail.com 2011-04-08 10:36:01 PDT --- Fixed with commit a0d154dc1385d92a31dca8e65e50d958bdf6d532. Closing.
dri-devel@lists.freedesktop.org