Bug 94574 - [Intel Skylake] [XV] No picture with mplayer and xv output
Summary: [Intel Skylake] [XV] No picture with mplayer and xv output
Status: NEW
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: Chris Wilson
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-16 17:12 UTC by Jan Burgmeier
Modified: 2016-03-16 17:17 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Output of lspci -vv (9.76 KB, text/plain)
2016-03-16 17:12 UTC, Jan Burgmeier
no flags Details
Patch to add modifieres also in sna_video_sprite.c (929 bytes, text/plain)
2016-03-16 17:17 UTC, Jan Burgmeier
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Burgmeier 2016-03-16 17:12:28 UTC
Created attachment 122349 [details]
Output of lspci -vv

Hi,

during playback with mplayer and xv output the Xorg log gets spammed with the following message: "failed to add fb, unable to update video". If drm.debug=6 is actiavted the kernel also outputs: "bad fb modifier 162129721185188224 for plane 0".

Used software versions:
 - Kernel: 4.4.5
 - Xorg: 1.18.2
 - xf86-video-intel: 2:2.99.917+git20160307
 - libdrm: 2.4.66

I dug a bit deeper and found, that the function sna_video_sprite_show looks quite equal to get_fb bur without the modifiers handling in the drm struct. I copied the modifiers pieces aver and video playback started working.

After stopping playback the last frame stays on top and looks like an 'overlay'. It will only close if the surrounding mplayer is closed.

Attached you will find a patch and lspci output.

I'am not familiar with the intel or drm code base so this might or might not be the correct way of fixing this.

Scaling is also not working with XVideo but as far as I saw this is already a known issue. If wished I could create a second bug report for it.

Kind regards
Jan Burgmeier
Comment 1 Jan Burgmeier 2016-03-16 17:17:38 UTC
Created attachment 122350 [details]
Patch to add modifieres also in sna_video_sprite.c


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct.