The following commit introduced some display corruption on my machine (core i3-330M): commit daf8f6c76287452f2bc37af83d9078831ba0a8b0 Author: Peng Chen <peng.c.chen@intel.com> Date: Mon Jun 15 22:28:22 2015 +0800 support HEVC 10bits decoding v2: code cleanup v3: store shift in an int to make it more readable (Emil) A screenshot of the issue is available here (green squares on the right hand of the image): http://imgur.com/sxcfusK libva: HEAD of v1.6-branch intel-driver: HEAD of v1.6-branch xorg-server: 1.18.0 xorg-xf86-video-intel: HEAD of git master ffmpeg: 2.8.4 mpv: HEAD of git master Steps to reproduce the issue: Play any file using vaapi hw acceleration (mpv -vo=vaapi -hwdec=vaapi file)
Could you attach the output of 'lspci -nn'
Created attachment 120716 [details] lspci -nn
The same problem on Intel Core i5-450M After upgrade: libva (1.6.1-1 -> 1.6.2-1) libva-intel-driver (1.6.1-1 -> 1.6.2-1)
@@ -3825,17 +3829,17 @@ i965_check_alloc_surface_bo(VADriverContextP ctx, int bpp_1stplane = bpp_1stplane_by_fourcc(fourcc); - if (obj_surface->user_h_stride_set) { - ASSERT_RET(IS_ALIGNED(obj_surface->width, 128), VA_STATUS_ERROR_INVALID - } else - obj_surface->width = ALIGN(obj_surface->orig_width * bpp_1stplane, 128) + if ((tiled && !obj_surface->user_disable_tiling)) { + if (obj_surface->user_h_stride_set) { + ASSERT_RET(IS_ALIGNED(obj_surface->width, 128), VA_STATUS_ERROR_INVAL + } else + obj_surface->width = ALIGN(obj_surface->orig_width * bpp_1stplane, 12 - if (obj_surface->user_v_stride_set) { - ASSERT_RET(IS_ALIGNED(obj_surface->height, 32), VA_STATUS_ERROR_INVALID - } else - obj_surface->height = ALIGN(obj_surface->orig_height, 32); + if (obj_surface->user_v_stride_set) { + ASSERT_RET(IS_ALIGNED(obj_surface->height, 32), VA_STATUS_ERROR_INVAL + } else + obj_surface->height = ALIGN(obj_surface->orig_height, 32); - if ((tiled && !obj_surface->user_disable_tiling)) { ASSERT_RET(fourcc != VA_FOURCC_I420 && fourcc != VA_FOURCC_IYUV && fourcc != VA_FOURCC_YV12, hi benisty, could you help me to try above patch for i965_drv_video.c?
I'd be pleased to try your patch but could you please attach it ? the copy/paste patch is horribly broken, thanks.
Created attachment 120803 [details] a patch for testing
(In reply to PengChen from comment #6) > Created attachment 120803 [details] > a patch for testing That patch fixed the issue, thank you very much.
On Intel Core i5-450M this patch also fixes a bug. Thank you!
commit 10c4cdd103f730a9e07ffcf0f940e8f63ee5738d Author: peng.chen <peng.c.chen@intel.com> Date: Thu Jan 7 08:54:34 2016 +0800 only re-caculate surface width&height for tiled surface
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.