Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorLukas Stockner <lukas.stockner@freenet.de>2017-05-19 03:02:36 +0300
committerLukas Stockner <lukas.stockner@freenet.de>2017-05-19 03:06:54 +0300
commitffd83a34ab53f40a2ff0a67f893e120e94a04b25 (patch)
tree85472cc59952536f12e37ad57532e5e02608210c /intern
parent740cd287485d919452fa4cd56a700cc0070f0c6a (diff)
Fix T51502: Cycles denoising not using correctly aligned width for NLM on CUDA
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/device/device_cuda.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/device/device_cuda.cpp b/intern/cycles/device/device_cuda.cpp
index 4d8ca487799..90647c344e3 100644
--- a/intern/cycles/device/device_cuda.cpp
+++ b/intern/cycles/device/device_cuda.cpp
@@ -949,7 +949,7 @@ public:
cuda_push_context();
int4 rect = task->rect;
- int w = rect.z-rect.x;
+ int w = align_up(rect.z-rect.x, 4);
int h = rect.w-rect.y;
int r = task->nlm_state.r;
int f = task->nlm_state.f;