Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 607368 - media-libs/mesa-17.0.0_rc2: broken video colors with vdpau
Summary: media-libs/mesa-17.0.0_rc2: broken video colors with vdpau
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-27 08:32 UTC by Mateusz Lenik
Modified: 2017-02-08 11:34 UTC (History)
1 user (show)

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


Attachments
screenshot of vlc with broken colors (2017-01-27-093532_1168x857_scrot.png,813.45 KB, image/png)
2017-01-27 08:36 UTC, Mateusz Lenik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mateusz Lenik 2017-01-27 08:32:33 UTC
I'm not sure this is the right place to report this issue, however it only happens on VLC. I tried to reproduce it with ffmpeg (via ffplay) which also supports vdpau, but without luck.

The issue goes away when I change the Tools->Preferences->Video->Display->Output setting from automatic (or "VDPAU output", which seems to be the preferred one when supported) to "OpenGL GLX video output (XCB)".

I'm using Gallium 0.4 on AMD POLARIS10 (DRM 3.8.0 / 4.9.6-gentoo, LLVM 3.9.1).

$ emerge --info vlc libvdpau llvm mesa

Portage 2.3.3 (python 3.4.5-final-0, default/linux/amd64/13.0, gcc-5.4.0, glibc-2.23-r3, 4.9.6-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.9.6-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E5-2630_v4_@_2.20GHz-with-gentoo-2.3
KiB Mem:    32805780 total,  13599288 free
KiB Swap:   33554428 total,  33320064 free
Timestamp of repository gentoo: Fri, 27 Jan 2017 06:30:01 +0000
sh bash 4.4_p11
ld GNU ld (Gentoo 2.27 p1.0) 2.27
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.4_p11::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo, 3.5.2::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.23.2::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.12.6-r1::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.27::gentoo
sys-devel/gcc:            5.4.0-r2::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.9::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

mlen
    location: /var/lib/mlen-overlay
    sync-type: git
    sync-uri: https://github.com/mlen/gentoo-overlay.git
    masters: gentoo

crossdev
    location: /usr/local/portage-crossdev
    masters: gentoo
    priority: 10

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=broadwell -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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=broadwell -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs cgroup config-protect-if-modified distlocks ebuild-locks fail-clean 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://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j42 -l42"
PKGDIR="/usr/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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X aac aacplus acl alsa amd64 audit berkdb bluray bzip2 caps cli consolekit cracklib crypt cryptsetup cups cxx dbus dri dri3 dvd faac flac fortran gdbm geoclue geoloc geolocation gif glamor gnome-keyring gtk gtk3 gtkstyle hidpi hotwording iconv icu idn infinality introspection iproute2 ipv6 jpeg kerberos libedit libnotify llvm lvm mmx modules mp3 mpeg multilib ncurses nls nptl numa offensive ogg opengl openmp opus oss pam pch pcre pm-utils png policykit pulseaudio python qt5 readline samba seccomp session sound sse sse2 ssl startup-notification tcpd theora tiff truetype udev udisks unicode unwind v4l vdpau vim vim-syntax virt-network vorbis vpx vulkan webp widgets x264 xattr xft xinerama zlib zsh-completion" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" 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" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="x86_64 i386 arm" QEMU_USER_TARGETS="x86_64 i386 arm" RUBY_TARGETS="ruby21 ruby23 ruby24" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" 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

=================================================================
                        Package Settings
=================================================================

media-video/vlc-2.2.4-r1::gentoo was built with the following:
USE="X alsa avcodec avformat bluray dbus dvbpsi dvd encode ffmpeg flac gcrypt jpeg libnotify libsamplerate mp3 mpeg ncurses ogg opengl opus png pulseaudio qt5 samba swscale theora truetype udev v4l vdpau vorbis vpx x264 xcb xml -a52 -aalib (-altivec) -atmo (-audioqueue) -bidi -cdda -cddb -chromaprint -dc1394 -debug -directfb (-directx) -dts -dvb (-dxva2) -faad -fdk -fluidsynth -fontconfig -gme -gnome -gnutls -growl -gstreamer -httpd -ieee1394 -jack -kate -kde -libass -libav -libcaca -libtar -libtiger -linsys -lirc -live -lua (-macosx-dialog-provider) (-macosx-eyetv) (-macosx-qtkit) (-macosx-quartztext) -matroska -modplug -mtp -musepack (-neon) -omxil -opencv -optimisememory -postproc -projectm -qt4 -rdp -rtsp -run-as-root -schroedinger -sdl -sdl-image -sftp -shout -sid -skins -speex -svg -taglib -test -tremor -twolame -upnp -vaapi -vcdx -vlm -vnc -wma-fixed -x265 -xv -zeroconf -zvbi" ABI_X86="64" CPU_FLAGS_X86="mmx sse"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -L/usr/lib64/sidplay/builders/"


x11-libs/libvdpau-1.1.1::gentoo was built with the following:
USE="dri -doc -test" ABI_X86="64 -32 -x32"


sys-devel/llvm-3.9.1-r1::gentoo was built with the following:
USE="clang libedit libffi multitarget ncurses python sanitize static-analyzer xml -debug -default-compiler-rt -default-libcxx -doc -gold (-lldb) -ocaml -test" ABI_X86="64 -32 -x32" LLVM_TARGETS="AArch64 AMDGPU ARM BPF Hexagon MSP430 Mips NVPTX PowerPC Sparc SystemZ X86 XCore" PYTHON_TARGETS="python2_7"


media-libs/mesa-17.0.0_rc2::gentoo was built with the following:
USE="classic dri3 egl gallium gbm gles2 llvm nptl vdpau vulkan -bindist -d3d9 -debug -gles1 -opencl -openmax -osmesa -pax_kernel -pic (-selinux) -vaapi -valgrind -wayland -xa -xvmc" ABI_X86="64 -32 -x32" VIDEO_CARDS="radeonsi -freedreno -i915 -i965 -ilo -imx -intel -nouveau -r100 -r200 -r300 -r600 -radeon -vc4 -vivante -vmware"
Comment 1 Mateusz Lenik 2017-01-27 08:36:07 UTC
Created attachment 461558 [details]
screenshot of vlc with broken colors
Comment 2 Matt Whitlock 2017-01-31 09:27:18 UTC
I had the same exact problem. Downgrading to media-libs/mesa-13.0.3 fixes it.

I'd suggest changing the title of this bug report to mention media-libs/mesa-17.0.0_rc2, as that seems to be the culprit.
Comment 3 Matt Turner gentoo-dev 2017-02-01 05:54:51 UTC
Have you reported this upstream? Please do so if you have not already: https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa and add the bug to the URL field here.
Comment 4 Matt Whitlock 2017-02-02 01:20:17 UTC
(In reply to Matt Turner from comment #3)
> Have you reported this upstream?

Since Mateusz Lenik has not done it yet, I went ahead and opened a bug report upstream. I can't add the URL to this bug report (no permission), but here it is:

https://bugs.freedesktop.org/show_bug.cgi?id=99637
Comment 5 Chí-Thanh Christopher Nguyễn gentoo-dev 2017-02-02 08:59:06 UTC
Per the upstream but, this patch in master should address the issue.
https://cgit.freedesktop.org/mesa/mesa/commit/?id=31908d6a4a3309f4cd4b953d6eecdf41595b1299
Comment 6 Matt Whitlock 2017-02-02 09:04:44 UTC
(In reply to Chí-Thanh Christopher Nguyễn from comment #5)
> Per the upstream but, this patch in master should address the issue.
> https://cgit.freedesktop.org/mesa/mesa/commit/
> ?id=31908d6a4a3309f4cd4b953d6eecdf41595b1299

I dropped that patch into /etc/portage/patches/media-libs/mesa-17.0.0_rc2/ and reinstalled media-libs/mesa-17.0.0_rc2, and the problem is fixed.

I've closed the upstream bug report.
Comment 7 Matt Whitlock 2017-02-02 09:10:09 UTC
(In reply to Matt Whitlock from comment #6)
> I dropped that patch into /etc/portage/patches/media-libs/mesa-17.0.0_rc2/

I should note that I have the following in /etc/portage/env/media-libs/mesa:

    pre_src_prepare() {
        epatch_user
    }

I doubt the user patch would be applied without that hook.
Comment 8 Mateusz Lenik 2017-02-02 09:12:59 UTC
Patch will get applied -- this ebuild uses EAPI=6

Sorry for not reporting myself, -ENOTIME
Comment 9 Matt Whitlock 2017-02-06 16:14:08 UTC
Upstream has released the patch in 17.0.0_rc3. Could we get a version bump on Gentoo?
Comment 10 Mateusz Lenik 2017-02-08 11:34:12 UTC
17.0.0_rc3 fixes this issue, closing.