Use Media Read message if possible on Gen8+

Graphics / Video Acceleration / VA-API - Xiang, Haihao [intel.com] - 24 October 2016 17:36 UTC

AVS can't gurantee bit-match for a large surface. This fixes the failure reported by gtest case Common/JPEGEncodeInputTest.Full/95.

before: [ FAILED ] Common/JPEGEncodeInputTest.Full/95, where GetParam() = (Fixed Size 7680x4320, 0x501176 pointing to "I420") (9239 ms) [----------] 1 test from Common/JPEGEncodeInputTest (9239 ms total)

[----------] Global test environment tear-down [==========] 1 test from 1 test case ran. (9361 ms total) [ PASSED ] 0 tests. [ FAILED ] 1 test, listed below: [ FAILED ] Common/JPEGEncodeInputTest.Full/95, where GetParam() = (Fixed Size 7680x4320, 0x501176 pointing to "I420")

after: [ OK ] Common/JPEGEncodeInputTest.Full/95 (15250 ms) [----------] 1 test from Common/JPEGEncodeInputTest (15250 ms total)

[----------] Global test environment tear-down [==========] 1 test from 1 test case ran. (15365 ms total) [ PASSED ] 1 test.

78b6841 Use Media Read message if possible on Gen8+
src/gen8_post_processing.c | 56 +++++++++++++++-
src/shaders/post_processing/gen8/Makefile.am | 2 +
.../gen8/PL2_media_read_buf0123.g8a | 65 +++++++++++++++++++
.../gen8/PL3_media_read_buf0123.g8a | 68 ++++++++++++++++++++
src/shaders/post_processing/gen8/pl2_to_pl2.asm | 2 +
src/shaders/post_processing/gen8/pl2_to_pl2.g8b | 44 +++++++++++++
src/shaders/post_processing/gen8/pl2_to_pl3.asm | 2 +
src/shaders/post_processing/gen8/pl2_to_pl3.g8b | 44 +++++++++++++
src/shaders/post_processing/gen8/pl3_to_pl2.asm | 2 +
src/shaders/post_processing/gen8/pl3_to_pl2.g8b | 47 ++++++++++++++
src/shaders/post_processing/gen8/pl3_to_pl3.asm | 4 +-
src/shaders/post_processing/gen8/pl3_to_pl3.g8b | 47 ++++++++++++++
src/shaders/post_processing/gen9/pl2_to_pl2.g9b | 44 +++++++++++++
src/shaders/post_processing/gen9/pl2_to_pl3.g9b | 44 +++++++++++++
src/shaders/post_processing/gen9/pl3_to_pl2.g9b | 47 ++++++++++++++
src/shaders/post_processing/gen9/pl3_to_pl3.g9b | 47 ++++++++++++++
16 files changed, 563 insertions(+), 2 deletions(-)

Upstream: cgit.freedesktop.org


  • Share