https://bugs.freedesktop.org/show_bug.cgi?id=41744
Summary: Unigine Heaven shows black textures (Radeon HD4250) Product: Mesa Version: git Platform: x86-64 (AMD64) OS/Version: Linux (All) Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/r600 AssignedTo: dri-devel@lists.freedesktop.org ReportedBy: gsedej@gmail.com
Unigine Heaven benchmark shows black textures. It looks like this: http://imageshack.us/photo/my-images/842/slika322.jpg/ It looks like it's problem with floating-point textures.
This is output of program: http://pastebin.com/GKWmbhV9 Here is my glxinfo: http://pastebin.com/BM9Vw8vm
I am using Ubuntu 11.04 with "oibaf" PPA build. Do I need to provide more data?
https://bugs.freedesktop.org/show_bug.cgi?id=41744
Gašper Sedej gsedej@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Alias| |it
https://bugs.freedesktop.org/show_bug.cgi?id=41744
Gašper Sedej gsedej@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Alias|it |
https://bugs.freedesktop.org/show_bug.cgi?id=41744
--- Comment #1 from Gašper Sedej gsedej@gmail.com 2011-10-13 06:21:10 PDT --- Also, FrozenByte games are missing textures (ShadowGrounds and Trine)
https://bugs.freedesktop.org/show_bug.cgi?id=41744
Sven Arvidsson sa@whiz.se changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sa@whiz.se
--- Comment #2 from Sven Arvidsson sa@whiz.se 2011-10-13 11:04:23 PDT ---
From the glxinfo output you seem to be missing S3TC support. If so, you need to
install libtxc_dxtn
https://bugs.freedesktop.org/show_bug.cgi?id=41744
--- Comment #3 from Gašper Sedej gsedej@gmail.com 2011-10-17 00:02:20 PDT --- gsedej@seraph:~/Prenosi/Unigine_Heaven$ dpkg -l | grep libtxc ii libtxc-dxtn0 1.0.1-0.2 S3 Texture Compression (S3TC) library
glxinfo: http://pastebin.com/96JdRUQp
I found out that I need to use R600_ENABLE_S3TC=1 But then I get:
radeon: The kernel rejected CS, see dmesg for more information. radeon: The kernel rejected CS, see dmesg for more information. radeon: The kernel rejected CS, see dmesg for more information. radeon: The kernel rejected CS, see dmesg for more information. ... dmesg: [577112.943190] radeon 0000:01:05.0: r600_check_texture_resource:1214 texture invalid format 49 [577112.943196] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream ! [577112.945640] radeon 0000:01:05.0: r600_check_texture_resource:1214 texture invalid format 49 [577112.945650] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream ! [577112.946185] radeon 0000:01:05.0: r600_check_texture_resource:1214 texture invalid format 52 [577112.946190] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream ! [577112.946467] radeon 0000:01:05.0: r600_check_texture_resource:1214 texture invalid format 51 [577112.946469] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream ! [577112.947521] radeon 0000:01:05.0: r600_check_texture_resource:1214 texture invalid format 51 .... so formats are 49 51 and 52
Probably some error with kernel?
https://bugs.freedesktop.org/show_bug.cgi?id=41744
--- Comment #4 from Alex Deucher agd5f@yahoo.com 2011-10-17 06:57:32 PDT --- (In reply to comment #3)
Probably some error with kernel?
You need a newer kernel to use that feature.
https://bugs.freedesktop.org/show_bug.cgi?id=41744
--- Comment #5 from Gašper Sedej gsedej@gmail.com 2011-10-18 06:14:37 PDT --- Thanks. Kernel 3.0 solved the problem. Render is still not perfect and speed is bad, but it's wokring :). I see odd shading and odd image in dark (ignore tearing, it's only because of sceenshot): http://imgur.com/a/HxtlE And output: http://pastebin.com/qAcrn2Um
Should I open new bug?
https://bugs.freedesktop.org/show_bug.cgi?id=41744
--- Comment #6 from Vadim ptpzz@yandex.ru 2011-10-18 17:34:26 PDT --- (In reply to comment #5)
Thanks. Kernel 3.0 solved the problem. Render is still not perfect and speed is bad, but it's wokring :). I see odd shading and odd image in dark (ignore tearing, it's only because of sceenshot): http://imgur.com/a/HxtlE And output: http://pastebin.com/qAcrn2Um
Should I open new bug?
Unigine demos have a bug, disabling GL_EXT_texture_array extension should help. You could use environment variable to disable it:
MESA_EXTENSION_OVERRIDE=-GL_EXT_texture_array
https://bugs.freedesktop.org/show_bug.cgi?id=41744
--- Comment #7 from Gašper Sedej gsedej@gmail.com 2011-10-19 01:31:36 PDT --- I tried disabling extension but still wrong shading. (like it was some "net" on sun) variable is working because I don't see any output when I do :$ MESA_EXTENSION_OVERRIDE=-GL_EXT_texture_array glxinfo | grep GL_EXT_texture_array (if I don't put variable I see this extention)
https://bugs.freedesktop.org/show_bug.cgi?id=41744
--- Comment #8 from kao_chen kaochen2@gmail.com 2011-11-12 05:18:54 PST --- Created attachment 53449 --> https://bugs.freedesktop.org/attachment.cgi?id=53449 starting log of oilrush
https://bugs.freedesktop.org/show_bug.cgi?id=41744
--- Comment #9 from kao_chen kaochen2@gmail.com 2011-11-12 05:19:14 PST --- Created attachment 53450 --> https://bugs.freedesktop.org/attachment.cgi?id=53450 my glxinfo
https://bugs.freedesktop.org/show_bug.cgi?id=41744
--- Comment #10 from kao_chen kaochen2@gmail.com 2011-11-12 05:21:24 PST --- Hello!
I also get the same issue with the unigine game "Oilrush". Textures are black. I tried this two commands without success: kao@kao-64:/opt/oilrush$ MESA_EXTENSION_OVERRIDE=-GL_EXT_texture_array ./oilrush kao@kao-64:/opt/oilrush$ MESA_EXTENSION_OVERRIDE=+GL_ARB_half_float_pixel ./oilrush
I use Ubuntu 10.10 with the update "xorg-edgers/ppa"
OpenGL vendor: X.Org OpenGL renderer: Gallium 0.4 on AMD RV670 OpenGL version: 2.1 Mesa 7.12-devel System: Linux 3.0.0-13-generic x86_64
I attached the starting log of Oilrush, and my glxinfo output.
Regards Kao
https://bugs.freedesktop.org/show_bug.cgi?id=41744
--- Comment #11 from kao_chen kaochen2@gmail.com 2011-11-15 09:03:51 PST --- Sorry I have done a mistake, the libtxc-dxtn library was not installed properly on my PC.
I found the source code here: http://debian-multimedia.org/pool/main/libt/libtxc-dxtn/libtxc-dxtn.php
It's working better for me on both Unigine Heaven and Unigine Oilrush game. I still have some graphics artifacts but they probably come from another bug.
Here: Unigine Heaven with wrong shadows: http://pix.toile-libre.org/upload/original/1321376279.png
And
Oilrush, the crane is flying http://pix.toile-libre.org/upload/original/1321376118.png
Regards Kao
https://bugs.freedesktop.org/show_bug.cgi?id=41744
Andreas Boll andreas.boll.dev@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #12 from Andreas Boll andreas.boll.dev@gmail.com 2012-08-23 11:26:44 UTC --- As mentioned above in Comment 5 and Comment 11 properly installing libtxc-dxtn library fixed the black textures.
dri-devel@lists.freedesktop.org