Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 567168 - media-libs/cogl-1.22.0: blackscreen with fglrx
Summary: media-libs/cogl-1.22.0: blackscreen with fglrx
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://bugzilla.gnome.org/show_bug.c...
Whiteboard:
Keywords:
Depends on:
Blocks: gnome-3.18
  Show dependency tree
 
Reported: 2015-11-30 17:13 UTC by Olcay
Modified: 2016-01-26 20:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
gl: Add a quirk for the GLSL version to use on AMD (gl_Add_a_quirk_for_the_GLSL_version_to_use_on_AMD.patch,1.79 KB, patch)
2015-12-04 21:11 UTC, Olcay
Details | Diff
Use better vendor strings from ATi/AMD (Use-better-vendor-strings-from-ATiAMD.patch,1023 bytes, patch)
2015-12-04 21:12 UTC, Olcay
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Olcay 2015-11-30 17:13:03 UTC
Hi,

fglrx 15.9 or 15.11 is not working with cogl-1.22.0
can't login via gdm result is blackscreen

for workaround as a patch : https://bbs.archlinux.org/viewtopic.php?pid=1571605#p1571605

--- 122/cogl/driver/gl/gl/cogl-driver-gl.c	2015-09-02 18:39:02.000000000 +0200
+++ 122b/cogl/driver/gl/gl/cogl-driver-gl.c	2015-10-18 10:37:14.052350142 +0200
@@ -419,7 +419,7 @@
   if (COGL_CHECK_GL_VERSION (ctx->glsl_major, ctx->glsl_minor, 1, 2))
     /* We want to use version 120 if it is available so that the
      * gl_PointCoord can be used. */
-    ctx->glsl_version_to_use = 120;
+    ctx->glsl_version_to_use = 150;
   else
     ctx->glsl_version_to_use = 110;

Reproducible: Always




emerge --info
Portage 2.2.26 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.9.3, glibc-2.22-r1, 4.2.6-gentoo x86_64)
=================================================================
System uname: Linux-4.2.6-gentoo-x86_64-Intel-R-_Core-TM-_i7-4770_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    16378572 total,    101100 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of repository gentoo: Mon, 30 Nov 2015 16:30:01 +0000
sh bash 4.3_p42
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.10-r3::gentoo, 3.4.3-r2::gentoo
dev-util/cmake:           3.4.0-r1::gentoo
dev-util/pkgconfig:       0.29::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.18.3::gentoo
sys-apps/sandbox:         2.9::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.2::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r1::gentoo
Repositories:

gentoo
    location: /run/media/olci/XBASEX/gentoo/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

yerel
    location: /usr/local/portage
    masters: gentoo

Installed sets: @steam
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=haswell -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=haswell -O2 -pipe"
DISTDIR="/run/media/olci/XBASEX/gentoo/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.linux.org.tr/gentoo/"
LANG="tr_TR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/run/media/olci/XBASEX/gentoo/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp/ramfs"
USE="X a52 aac aacplus acl acpi aes alsa amd64 berkdb bluetooth bluray branding btrfs bzip2 cairo cdda cdr cleartype cli colord corefonts cracklib crypt cups cxx dbus dri dri3 dts dvb dvd dvdr eds egl emboss encode evo exif f2fs faac fam fat firefox flac fortran freetype gdbm gdm gif glamor gnome gnome-keyring gnome-online-accounts gphoto2 gstreamer gtk gtk3 hfs iconv icu introspection ipv6 jack java jpeg lame lcd lcms ldap libkms libnotify libsecret lzo mad matroska mmx mmxext mng modules mono mp3 mp4 mpeg mtp multilib nautilus ncurses networkmanager nls nptl nsplugin ntfs ogg oggvorbis openal opencl opengl openmp openssl opus pam pango pcre pcre16 pdf plymouth png policykit ppds pulseaudio qt3support qt4 rar readline sdl seccomp session shotwell spell sse sse2 ssh ssl startup-notification svg symlink systemd tahoma tcpd theora tiff tracker truetype udev udisks unicode upnp upower usb v4l v4l2 vaapi vala vdpau vorbis vpx wavpack webgl wifi wxwidgets x264 x265 xattr xcb xetex xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="tr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="fglrx radeonsi radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Pacho Ramos gentoo-dev 2015-12-02 10:36:21 UTC
Please try this patch *instead* of yours:
https://git.gnome.org/browse/cogl/patch/?id=a583492ea2aa3ea8e78c269bd5db3f52f82aa79c

Also, what package is providing your fglrx driver?
Comment 2 Olcay 2015-12-02 17:36:39 UTC
(In reply to Pacho Ramos from comment #1)
> Please try this patch *instead* of yours:
> https://git.gnome.org/browse/cogl/patch/
> ?id=a583492ea2aa3ea8e78c269bd5db3f52f82aa79c
> 
> Also, what package is providing your fglrx driver?

Your patch didn't work

here are the details of blackscreen from beginning
blackscreen with white dot at upper left corner  
only cursor is visible
system works i can login i hear that login sound but i can't see 

fglrx 15.11 from https://bugs.gentoo.org/show_bug.cgi?id=566846
fglrx 15.9-r1 from offical gentoo repo
Comment 3 Olcay 2015-12-03 21:51:08 UTC
bumps https://bugzilla.gnome.org/show_bug.cgi?id=756306
Comment 4 Olcay 2015-12-04 21:11:28 UTC
Created attachment 418580 [details, diff]
gl: Add a quirk for the GLSL version to use on AMD

patch from https://bugzilla.gnome.org/show_bug.cgi?id=756306#c10
Comment 5 Olcay 2015-12-04 21:12:22 UTC
Created attachment 418582 [details, diff]
Use better vendor strings from ATi/AMD

patch from https://bugzilla.gnome.org/show_bug.cgi?id=756306#c8
Comment 6 Olcay 2015-12-04 21:14:51 UTC
proper patches from https://bugzilla.gnome.org/show_bug.cgi?id=756306 
now works fine for me
Comment 7 Pacho Ramos gentoo-dev 2015-12-24 14:46:03 UTC
Could you confirm in upstream bug that https://bugzilla.gnome.org/show_bug.cgi?id=756306#c19 works ok for you?
Comment 8 Olcay 2015-12-25 18:06:59 UTC
(In reply to Pacho Ramos from comment #7)
> Could you confirm in upstream bug that
> https://bugzilla.gnome.org/show_bug.cgi?id=756306#c19 works ok for you?

yes, works okay
Comment 9 Pacho Ramos gentoo-dev 2016-01-02 13:23:36 UTC
@gnome, does anyone in the team know what is wrong with the detection of GL >3.2 at:
https://bugzilla.gnome.org/show_bug.cgi?id=756306#c21
?

Otherwise it looks upstream will keep this broken on fglrx forever :(
Comment 10 Olcay 2016-01-02 23:21:24 UTC
Hi, @Pacho Ramos

May i change the patch like this, how i can be sure if that works or not 
even with bad patches i pass the login screen no matter what :)

if (COGL_CHECK_GL_VERSION (gl_major, gl_minor, 3, 2) &&
to:
if (COGL_CHECK_GL_VERSION (ctx->gl_major, ctx->gl_minor, 3, 2) &&

how i can check detection log

Thanks
Comment 11 Pacho Ramos gentoo-dev 2016-01-03 12:31:55 UTC
The problem is that upstream thinks that is simply working because that check is always failing and, then, even if it works for fglrx (that is the case for what that check needs to fail) it could break for other setups that need that check to succeed some time :/
Comment 12 Pacho Ramos gentoo-dev 2016-01-11 14:34:40 UTC
Are you sure this is not a collision with the line above the patch?
if (COGL_CHECK_GL_VERSION (ctx->glsl_major, ctx->glsl_minor, 1, 2))
Comment 13 Olcay 2016-01-15 22:16:15 UTC
(In reply to Pacho Ramos from comment #12)
> Are you sure this is not a collision with the line above the patch?
> if (COGL_CHECK_GL_VERSION (ctx->glsl_major, ctx->glsl_minor, 1, 2))

maybe but vendor's 3 digit version numbers may cause too 
you are right, they abandon the bug 
broken forever :)
Comment 14 Pacho Ramos gentoo-dev 2016-01-23 13:28:37 UTC
[master a56306e] media-libs/cogl: Apply upstream fixes, also fix cogl not working at all with fglrx drivers, we need to apply the fix conditionally until someone figures out how to properly check for fglrx presence for the patch (#567168, upstream bug #756306, thanks to Olcay for reporting and testing this).
Comment 15 Olcay 2016-01-25 22:08:43 UTC
(In reply to Pacho Ramos from comment #14)
> [master a56306e] media-libs/cogl: Apply upstream fixes, also fix cogl not
> working at all with fglrx drivers, we need to apply the fix conditionally
> until someone figures out how to properly check for fglrx presence for the
> patch (#567168, upstream bug #756306, thanks to Olcay for reporting and
> testing this).

Hi,

Can you make the patch as only applied within fglrx variable
VIDEO_CARDS="fglrx"


It would be more appropriate for gentoo way :)
Comment 16 Pacho Ramos gentoo-dev 2016-01-26 19:39:40 UTC
The patch is already applied only when:
use video_cards_fglrx && epatch	"${FILESDIR}"/${PN}-1.22.0-fglrx.patch
Comment 17 Olcay 2016-01-26 20:52:26 UTC
(In reply to Pacho Ramos from comment #16)
> The patch is already applied only when:
> use video_cards_fglrx && epatch	"${FILESDIR}"/${PN}-1.22.0-fglrx.patch

I'm sorry my fault i didn't notice thanks