Window is always black until resized
Submitted by Li The G
Assigned to xf86-video-ati maintainers
Ever since upgrading from Ubuntu 14.04 to 16.04, and thus from Catalyst to radeon, opening windows / games with opengl in them is possible, BUT I have to resize the window in order to see anything.
I switch to the AMD card by using
A simple test is running
glxgears which renders a nice black window.
$ uname -a
Linux arbrak 4.4.0-105-generic #128-Ubuntu SMP Thu Dec 14 12:42:11 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
$ lspci | grep -i vga
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Neptune XT [Radeon HD 8970M] (rev ff)
$ DRI_PRIME=1 glxinfo | grep "OpenGL renderer"
OpenGL renderer string: AMD PITCAIRN (DRM 2.43.0 / 4.4.0-105-generic, LLVM 5.0.0)