Skip to contentSkip to conversation

New: Unigine Heaven shows black textures (Radeon HD4250)

Bug 41744 [email protected] 1 participant 15 messages Oct 13, 2011 – Aug 23, 2012

lore
Share & tools
lore
#0 lore raw

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: [email protected]
ReportedBy: [email protected]

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?

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.
#1 lore raw

[Bug 41744] Unigine Heaven shows black textures (Radeon HD4250)

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

Gašper Sedej <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Alias| |it

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- 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

[Bug 41744] Unigine Heaven shows black textures (Radeon HD4250)

In reply to [email protected]

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

Gašper Sedej <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Alias|it |

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- 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

[Bug 41744] Unigine Heaven shows black textures (Radeon HD4250)

In reply to [email protected]

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

--- Comment #1 from Gašper Sedej <[email protected]> 2011-10-13 06:21:10 PDT --- Also, FrozenByte games are missing textures (ShadowGrounds and Trine)

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- 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

[Bug 41744] Unigine Heaven shows black textures (Radeon HD4250)

In reply to [email protected]

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

Sven Arvidsson <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #2 from Sven Arvidsson <[email protected]> 2011-10-13 11:04:23 PDT ---

Quoted 1 line

From the glxinfo output you seem to be missing S3TC support. If so, you need to

install libtxc_dxtn

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.
#5 lore raw

[Bug 41744] Unigine Heaven shows black textures (Radeon HD4250)

In reply to [email protected]

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

--- Comment #3 from Gašper Sedej <[email protected]> 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?

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- 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

[Bug 41744] Unigine Heaven shows black textures (Radeon HD4250)

In reply to [email protected]

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

--- Comment #4 from Alex Deucher <[email protected]> 2011-10-17 06:57:32 PDT --- (In reply to comment #3)

Quoted 2 lines

Probably some error with kernel?

You need a newer kernel to use that feature.

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.
#7 lore raw

[Bug 41744] Unigine Heaven shows black textures (Radeon HD4250)

In reply to [email protected]

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

--- Comment #5 from Gašper Sedej <[email protected]> 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?

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- 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

[Bug 41744] Unigine Heaven shows black textures (Radeon HD4250)

In reply to [email protected]

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

--- Comment #6 from Vadim <[email protected]> 2011-10-18 17:34:26 PDT --- (In reply to comment #5)

Quoted 7 lines

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

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.
#9 lore raw

[Bug 41744] Unigine Heaven shows black textures (Radeon HD4250)

In reply to [email protected]

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

--- Comment #7 from Gašper Sedej <[email protected]> 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)

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- 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

[Bug 41744] Unigine Heaven shows black textures (Radeon HD4250)

In reply to [email protected]

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

--- Comment #8 from kao_chen <[email protected]> 2011-11-12 05:18:54 PST --- Created attachment 53449
--> https://bugs.freedesktop.org/attachment.cgi?id=53449
starting log of oilrush

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.
#11 lore raw

[Bug 41744] Unigine Heaven shows black textures (Radeon HD4250)

In reply to [email protected]

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

--- Comment #9 from kao_chen <[email protected]> 2011-11-12 05:19:14 PST --- Created attachment 53450
--> https://bugs.freedesktop.org/attachment.cgi?id=53450
my glxinfo

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.
#12 lore raw

[Bug 41744] Unigine Heaven shows black textures (Radeon HD4250)

In reply to [email protected]

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

--- Comment #10 from kao_chen <[email protected]> 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

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.
#13 lore raw

[Bug 41744] Unigine Heaven shows black textures (Radeon HD4250)

In reply to [email protected]

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

--- Comment #11 from kao_chen <[email protected]> 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

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.
#14 lore raw

[Bug 41744] Unigine Heaven shows black textures (Radeon HD4250)

In reply to [email protected]

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

Andreas Boll <[email protected]> changed:

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

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #12 from Andreas Boll <[email protected]> 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.

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.