[x265] [PATCH] asm : Fix for luma_vss test bench failure

nabajit at multicorewareinc.com nabajit at multicorewareinc.com
Fri Jan 24 11:13:01 CET 2014


# HG changeset patch
# User Nabajit Deka
# Date 1390558372 -19800
#      Fri Jan 24 15:42:52 2014 +0530
# Node ID 731daf9463f3669a050fbeedd462c3fe42940d1a
# Parent  807495b7a9fc918b78ac664b273e973f03668818
asm : Fix for luma_vss test bench failure

diff -r 807495b7a9fc -r 731daf9463f3 source/test/ipfilterharness.cpp
--- a/source/test/ipfilterharness.cpp	Fri Jan 24 11:50:23 2014 +0530
+++ b/source/test/ipfilterharness.cpp	Fri Jan 24 15:42:52 2014 +0530
@@ -51,6 +51,9 @@
 
     memset(IPF_C_output_p, 0xCD, ipf_t_size);
     memset(IPF_vec_output_p, 0xCD, ipf_t_size);
+    memset(IPF_C_output_s, 0xCD, ipf_t_size * sizeof(int16_t));
+    memset(IPF_vec_output_s, 0xCD, ipf_t_size * sizeof(int16_t));
+
 
     for (int i = 0; i < ipf_t_size; i++)                         // Initialize input buffer
     {
@@ -391,6 +394,14 @@
 {
     int rand_srcStride, rand_dstStride, rand_coeffIdx;
 
+    // NOTE: refill data to avoid overflow
+    const int max_filter_val = 64 * (1 << 8);
+
+    for (int i = 0; i < ipf_t_size; i++)
+    {
+        short_buff[i] = rand() % (2 * max_filter_val) - max_filter_val;
+    }
+
     for (int i = 0; i <= 100; i++)
     {
         rand_coeffIdx = rand() % 3;                // Random coeffIdex in the filter


More information about the x265-devel mailing list