https://bugs.freedesktop.org/show_bug.cgi?id=28994
Summary: [r300c] [r300g] skybox in ut2004 is not seamless Product: Mesa Version: git Platform: x86 (IA32) OS/Version: All Status: NEW Severity: normal Priority: medium Component: Drivers/DRI/r300 AssignedTo: dri-devel@lists.freedesktop.org ReportedBy: aaalmosss@gmail.com
As the attached screenshot shows, the polygon onto which the sky is rendered has sharp contours, which should not be visible at all.
https://bugs.freedesktop.org/show_bug.cgi?id=28994
--- Comment #1 from Álmos aaalmosss@gmail.com 2010-07-09 13:07:44 PDT --- Created an attachment (id=36928) --> (https://bugs.freedesktop.org/attachment.cgi?id=36928) sky
https://bugs.freedesktop.org/show_bug.cgi?id=28994
--- Comment #2 from Jon Sturm jasturm002@aol.com 2010-07-10 08:07:05 PDT --- This is also noticeable on my 2 rv730 cards so it seems to be a mesa or radeon bug in general and not r300 specific.
https://bugs.freedesktop.org/show_bug.cgi?id=28994
Marek Olšák maraeo@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|Drivers/DRI/r300 |Drivers/Gallium/r300
https://bugs.freedesktop.org/show_bug.cgi?id=28994
--- Comment #3 from Tom Stellard tstellar@gmail.com 2010-10-29 17:30:22 PDT --- Is this still an issue in Mesa 7.9 or the latest version from git?
https://bugs.freedesktop.org/show_bug.cgi?id=28994
--- Comment #4 from Álmos aaalmosss@gmail.com 2010-10-30 07:16:24 PDT --- The problem still exists. Tested with latest version from git.
https://bugs.freedesktop.org/show_bug.cgi?id=28994
--- Comment #5 from Marek Olšák maraeo@gmail.com 2010-12-17 05:50:14 PST --- The skybox looks fine here, absolutely seamless.
https://bugs.freedesktop.org/show_bug.cgi?id=28994
Marek Olšák maraeo@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME
--- Comment #6 from Marek Olšák maraeo@gmail.com 2010-12-17 09:34:00 PST --- Closing as it works for me.
https://bugs.freedesktop.org/show_bug.cgi?id=28994
Álmos aaalmosss@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME |
--- Comment #7 from Álmos aaalmosss@gmail.com 2010-12-17 10:49:58 PST --- You were a bit hasty (less than 4 hours between the question and the bug close?). Here it still looks exactly like on the attached screenshot. I also checked it with softpipe, and that looks same as well.
BTW I found absolutely no docs about how to change the driver to softpipe from r300g. After hours of googling the only clue I found was 'LIBGL_ALWAYS_SOFTWARE=1' in a comment on a phoronix forum.
https://bugs.freedesktop.org/show_bug.cgi?id=28994
--- Comment #8 from Marek Olšák maraeo@gmail.com 2010-12-17 11:32:44 PST --- (In reply to comment #7)
You were a bit hasty (less than 4 hours between the question and the bug close?). Here it still looks exactly like on the attached screenshot. I also checked it with softpipe, and that looks same as well.
I wonder why the skybox renders correctly only on r5xx...
BTW I found absolutely no docs about how to change the driver to softpipe from r300g. After hours of googling the only clue I found was 'LIBGL_ALWAYS_SOFTWARE=1' in a comment on a phoronix forum.
Create an empty directory, add a swrast_dri.so symlink there that points to swrastg_dri.so or whatever driver you need. Set LIBGL_DRIVERS_PATH for it to contain the path to that directory. Every 3D application will then look for $LIBGL_DRIVERS_PATH/r300_dri.so, which wouldn't be there. Then it will look for $LIBGL_DRIVERS_PATH/swrast_dri.so and load it.
To get r300g: LIBGL_DRIVERS_PATH=/home/..../mesa/lib/gallium glxinfo
To get r300c: LIBGL_DRIVERS_PATH=/home/..../mesa/lib glxinfo
To get swrast: ln -s /home/..../mesa/lib/swrast_dri.so /some-path/swrast_dri.so LIBGL_DRIVERS_PATH=/some-path glxinfo
To get llvmpipe (assumming you build with --enable-gallium-llvm): ln -s /home/..../mesa/lib/gallium/swrastg_dri.so /some-path/swrast_dri.so LIBGL_DRIVERS_PATH=/some-path glxinfo
To get softpipe (assumming you build with --enable-gallium-llvm): ln -s /home/..../mesa/lib/gallium/swrastg_dri.so /some-path/swrast_dri.so LIBGL_DRIVERS_PATH=/some-path GALLIUM_DRIVER=softpipe glxinfo
Or you may use LIBGL_ALWAYS_SOFTWARE, but I don't use that.
https://bugs.freedesktop.org/show_bug.cgi?id=28994
--- Comment #9 from Álmos aaalmosss@gmail.com 2010-12-17 13:21:36 PST --- (In reply to comment #8)
I wonder why the skybox renders correctly only on r5xx...
Maybe you set world detail=low, which removes the clouds (and the visible skybox)...
BTW I found absolutely no docs about how to change the driver to softpipe from r300g. After hours of googling the only clue I found was 'LIBGL_ALWAYS_SOFTWARE=1' in a comment on a phoronix forum.
Create an empty directory, add a swrast_dri.so symlink there that points to swrastg_dri.so or whatever driver you need. Set LIBGL_DRIVERS_PATH for it to contain the path to that directory. Every 3D application will then look for $LIBGL_DRIVERS_PATH/r300_dri.so, which wouldn't be there. Then it will look for $LIBGL_DRIVERS_PATH/swrast_dri.so and load it.
.....
Neat trick. Should be added to a readme or fd.o wiki.
https://bugs.freedesktop.org/show_bug.cgi?id=28994
--- Comment #10 from Marek Olšák maraeo@gmail.com 2010-12-17 13:31:22 PST --- (In reply to comment #9)
(In reply to comment #8)
I wonder why the skybox renders correctly only on r5xx...
Maybe you set world detail=low, which removes the clouds (and the visible skybox)...
I have "world detail" set to high.
https://bugs.freedesktop.org/show_bug.cgi?id=28994
--- Comment #11 from Álmos aaalmosss@gmail.com 2010-12-17 14:15:16 PST --- (In reply to comment #10)
(In reply to comment #9)
(In reply to comment #8)
I wonder why the skybox renders correctly only on r5xx...
Maybe you set world detail=low, which removes the clouds (and the visible skybox)...
I have "world detail" set to high.
I'm out of ideas then. What's the situation on i965 or nouveau or r600g?
https://bugs.freedesktop.org/show_bug.cgi?id=28994
--- Comment #12 from Álmos aaalmosss@gmail.com 2010-12-21 12:41:58 PST ---
I wonder why the skybox renders correctly only on r5xx...
I found out what the possible difference is between our setups: you are running it with UseVBO=False, and I'm running it with UseVBO=True in the UT2004.ini. The former renders the sky correctly, the latter renders much faster.
https://bugs.freedesktop.org/show_bug.cgi?id=28994
Álmos aaalmosss@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |NOTOURBUG
--- Comment #13 from Álmos aaalmosss@gmail.com 2010-12-22 07:27:54 PST --- Today I had the chance to try it on a geforce fx5200 with the blob driver, and the skybox is visible on the torlan level with usevbo=true; thus, it is a bug in the game. Sorry for the false alarm.
dri-devel@lists.freedesktop.org