mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-02-05 11:40:04 -05:00
Fix point swapping.
This commit is contained in:
parent
efd261bd5b
commit
22fdc98128
@ -275,7 +275,10 @@ void iter(
|
|||||||
{{endfor}}
|
{{endfor}}
|
||||||
apply_xf_{{std_xforms[-1]}}(x, y, color, rctx);
|
apply_xf_{{std_xforms[-1]}}(x, y, color, rctx);
|
||||||
|
|
||||||
int sw = (threadIdx.y * 32 + threadIdx.x * 33) & {{NTHREADS-1}};
|
// Rotate points between threads.
|
||||||
|
int swr = threadIdx.y + threadIdx.x
|
||||||
|
+ (round & 1) * (threadIdx.x / {{NTHREADS / 32}});
|
||||||
|
int sw = (swr * 32 + threadIdx.x) & {{NTHREADS-1}};
|
||||||
int sr = threadIdx.y * 32 + threadIdx.x;
|
int sr = threadIdx.y * 32 + threadIdx.x;
|
||||||
|
|
||||||
swap[sw] = fuse ? 1.0f : 0.0f;
|
swap[sw] = fuse ? 1.0f : 0.0f;
|
||||||
|
Loading…
Reference in New Issue
Block a user