Bug 89916 - DRI PRIME renders only black window
Summary: DRI PRIME renders only black window
Status: RESOLVED MOVED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Radeon (show other bugs)
Version: DRI git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-06 11:40 UTC by towo
Modified: 2019-11-19 09:03 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description towo 2015-04-06 11:40:21 UTC
a have a Lenovo Notebook which contains a FX-7500.
There are 2 graphics devices in:

root@lenovo-nb:/home/towo# lspci | egrep -i "displ|vga"
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Kaveri [Radeon R6/R7 Graphics]
01:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Jet PRO [Radeon R5 M230] (rev ff)

The system is using the Kaveri graphics.


towo:lenovo-nb> glxinfo | grep "OpenGL renderer string"
OpenGL renderer string: Gallium 0.4 on AMD KAVERI

towo:lenovo-nb> xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x86 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 3 associated providers: 1 name:radeon
Provider 1: id: 0x4f cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 0 outputs: 0 associated providers: 1 name:radeon

both devices are listed.

xrandr --setprovideroffloadsink 0x4f 0x86
towo:lenovo-nb> DRI_PRIME=1 glxinfo | grep "renderer string"
OpenGL renderer string: Gallium 0.4 on AMD HAINAN

seems to work correct.

DRI_PRIME=1 glxgears

shows only a black window, but the fps are shown in the terminal, i start from.

towo:lenovo-nb> LIBGL_DEBUG=verbose DRI_PRIME=1 glxgears 
libGL: screen 0 does not appear to be DRI3 capable
libGL: pci id for fd 4: 1002:6665, driver radeonsi
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/tls/radeonsi_dri.so
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
8793 frames in 5.0 seconds = 1758.569 FPS

doesn't even give any error, but the windows stayes black.

I use xfce 4.12 and have tryed 3 different compositors, with all i get the same black window. Resizing the windows does not help (that i read in many bug reports).
kernel is 4.0.0-rc6, xserver is 1.16.4, mesa is 10.6-git and radeon driver is 7.5.0
There are zero errors in the terminal or logfiles.
Comment 1 Michel Dänzer 2015-04-14 07:15:04 UTC
Please attach the Xorg log file and the output of dmesg.
Comment 2 Adrian Gabor 2015-04-14 12:29:35 UTC
Radeon dual graphics doesn't work with DRI2 regardless of compositor.

Please try DRI3. I have an HAINAN dGPU as well and it works flawless with DRI3.
Comment 3 towo 2015-04-14 12:54:45 UTC
At the moment i use radeon ddx from git (older snapshot) with dri3.
Most apps work, but for example

DRI_PRIME=1 kodi

let freeze the whole xserver and let a zombie process left for /usr/bin/X.

Working over ssh still working. But reboot or halt is not possible, only hard switch off.

I will try to use a new git snapshot and will tell, what's going on with it.
Comment 4 Martin Peres 2019-11-19 09:03:17 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/drm/amd/issues/599.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.