Bug 75479 - [BDW] AVC_cqp_encoding had lower pass rate comparing with IVB
Summary: [BDW] AVC_cqp_encoding had lower pass rate comparing with IVB
Status: RESOLVED FIXED
Alias: None
Product: libva
Classification: Unclassified
Component: intel (show other bugs)
Version: unspecified
Hardware: Other Linux (All)
: medium major
Assignee: Pengfei
QA Contact: Sean V Kelley
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-25 06:23 UTC by zhenxiang.li
Modified: 2016-06-16 06:24 UTC (History)
5 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Data compare to vpg/win7 driver (96.59 KB, text/plain)
2014-06-06 01:49 UTC, Focus.Luo
Details

Description zhenxiang.li 2014-02-25 06:23:42 UTC
Environment:
-------------
Libva:          
(staging)8be6d274d931d8041934efa63caaee75a5984755
Libva_intel_driver:             (staging)bd630edd844b88ea543a027654db296ff7da16cd

Command line:
-------------
1. /opt/X11R7/bin/avcenc 720 576 iceage_720x576_491.yuv iceage_720x576_491.yuv.enc.h264 qp=44 mode=0
2. /root/media_tools/encoder/ldecod.exe -i iceage_720x576_491.yuv.enc.h264 -o iceage_720x576_491.yuv.jm.dump -r iceage_720x576_491.yuv
3. get the psnr value:
   /root/media_tools/encoder/metrics_calc_lite.ia32e -i1 iceage_720x576_491.yuv -i2 iceage_720x576_491.yuv.jm.dump -w 720 -h 576 -nopfm psnr y

Bug Info:
-------------
-It happened when the qp value is equal or gt 40, mode=0, 1, 2;
-The following data is produced from the above command(mode=0);
        h264_size   bitrate  y-psnr
-ivb    3299058     1574     28.87887
-hsw    3561618     1700     28.88024
-bdw    5314288     2536     27.52403
Comment 1 zhenxiang.li 2014-02-25 07:35:58 UTC
Besides, gst10_AVC_cqp_encoding had lower pass rate than HSW:
       BDW               HSW         IVB
mode=0 68/84             84/84       84/84
mode=1 80/84             81/84       84/84
mode=2 69/84             74/84       84/84
Cases failed when qp value is bigger than 40 or 44 as well as using avcenc encoding, and mode=2 has the most impact.
Comment 2 Gordon Jin 2014-02-27 04:51:07 UTC
promoting to high priority as it severely impacts the pass rate.
Comment 3 ykzhao 2014-02-28 00:46:46 UTC
Will you please spilt this into two bugs? (For haswell and broadwell).

BTW: Do we use the windows driver data on the Haswell for the reference during the comparison? o we use the windows driver data on the Broadwell for the reference during the comparison?

Thanks.
    Yakui
Comment 4 zhenxiang.li 2014-02-28 12:59:03 UTC
Hi.
  The reference data was produced with Windows driver on HSW.
Comment 5 ykzhao 2014-03-07 02:37:28 UTC
It will be better that the compared data is produced by using windows driver on the BDW machine.

Thanks.
    Yakui
Comment 6 zhenxiang.li 2014-04-18 01:26:15 UTC
Blocked by getting the windows encoding data or vpg driver encoding data on BDW, but still in progress.
Comment 7 Focus.Luo 2014-06-06 01:49:13 UTC
Created attachment 100495 [details]
Data compare to vpg/win7 driver

Identified it was driver issue, VPG/Win7 driver didn't have this issue
Comment 8 Focus.Luo 2014-06-06 01:52:59 UTC
Changed to High priority.
By using BDW E0 stepping, the issue still happened:
                        passed/total cases
		mode=0	    67/84	
		mode=0	    80/84	
		mode=0	    69/84
Comment 9 Sean V Kelley 2014-06-06 20:46:39 UTC
Is there a reason why this code has not been moved to Master yet?  Anything that is a High priority bug must be on Master and not Staging.  Staging is by definition Work-In-Progress.   Since this is not on Master, then this bug importance should be lowered.

Thanks,

Sean
Comment 10 Focus.Luo 2014-06-09 05:54:13 UTC
In fact, currently on Master branch also had this issue. 
For Q2 release, Val team plan to use 3 cycles test to cover it:
1), The first test cycle used the staging branch start on ww23.2 which would help Dev team to build the Q2 release packages and also let validation team know whether there are any risk for Q2 release.
2), The 2th and 3th cycles test will use the master branch for ; The 2th cycle will be started on ww24.1; The 3th cycle ETA ww25.3. 

Thanks
Focus
Comment 11 zhixinx.liu 2014-06-13 00:59:50 UTC
use new patch to check this problem, the test result is 
       BDW               HSW         IVB
mode=0 84/84             84/84       84/84
mode=1 83/84             81/84       84/84
mode=2 72/84             74/84       84/84
current data is very close to HSW, so change importance from high to medium.


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.