Commit 3e40afdf authored by Andrey Filippov's avatar Andrey Filippov

Added a hack for positive scales (> 10.0f)

parent 393a5381
......@@ -5053,7 +5053,16 @@ __device__ void convertCorrectTile(
clt_src += DTT_SIZE1;
clt_dst += DTT_SIZE;
}
} else if (tscale > 0) { // positive - scale and set. For motion blur positive should be first
// A hack to accumulate with positive scale
} else if (tscale > 10.0f) { // > 10 - scale by (tscale-10) and add
float tscale1 = tscale - 10.0f;
for (int j = 0; j < DTT_SIZE * 4; j++){ // all 4 components, 8 rows
// shared memory tiles use DTT_SIZE1
*clt_dst += *clt_src * tscale1;
clt_src += DTT_SIZE1;
clt_dst += DTT_SIZE;
}
} else if (tscale > 0) { // positive - scale and set. For motion blur positive should be first
#pragma unroll
for (int j = 0; j < DTT_SIZE * 4; j++){ // all 4 components, 8 rows
// shared memory tiles use DTT_SIZE1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment