Bug 51553 - VPP scaling defects when target size (w or h) is not aligned to 16 pixels
Summary: VPP scaling defects when target size (w or h) is not aligned to 16 pixels
Status: RESOLVED FIXED
Alias: None
Product: libva
Classification: Unclassified
Component: intel (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Zhao Halley
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-29 04:21 UTC by David Verbeiren
Modified: 2012-07-27 01:16 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Test code (1.03 MB, application/x-compressed-tar)
2012-06-29 04:21 UTC, David Verbeiren
Details
patch part 1 (7.57 KB, application/octet-stream)
2012-07-27 01:14 UTC, Zhao Halley
Details
patch part2 (35.09 KB, application/octet-stream)
2012-07-27 01:16 UTC, Zhao Halley
Details

Description David Verbeiren 2012-06-29 04:21:14 UTC
Created attachment 63600 [details]
Test code

Using VA VPP scaling, when one dimension (width or height) of the output region is not a multiple of 16, the result incorrectly extends to the next complete block of 16 columns (to the right) or rows (to the bottom), filling extraneous columns or rows with a repeat of the last valid column or row.

This was observed on a SNB system, running Ubuntu 12.04. libva and intel-driver were built from sources from the staging branch.

The attached test code reproduces this problem. Press enter in the console to increase target width and height by 1 pixel each time.
Comment 1 Zhao Halley 2012-07-27 01:14:59 UTC
Created attachment 64760 [details]
patch part 1

enable horizontal and vertical mask for boundary blocks
Comment 2 Zhao Halley 2012-07-27 01:16:07 UTC
Created attachment 64761 [details]
patch part2

load block mask for the last block in a loop of asm code


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.