[Bf-blender-cvs] [f286e4fd0a9] cycles_oneapi: Cycles oneAPI: use adjusted interpolation variable for NanoVDB half support
Xavier Hallade
noreply at git.blender.org
Wed Jun 8 22:02:38 CEST 2022
Commit: f286e4fd0a9f1fed02b0ca90d9e2fb281d4cdc04
Author: Xavier Hallade
Date: Wed Jun 8 22:01:44 2022 +0200
Branches: cycles_oneapi
https://developer.blender.org/rBf286e4fd0a9f1fed02b0ca90d9e2fb281d4cdc04
Cycles oneAPI: use adjusted interpolation variable for NanoVDB half support
===================================================================
M intern/cycles/kernel/device/oneapi/image.h
===================================================================
diff --git a/intern/cycles/kernel/device/oneapi/image.h b/intern/cycles/kernel/device/oneapi/image.h
index 133fbaaddcb..c556efa80e2 100644
--- a/intern/cycles/kernel/device/oneapi/image.h
+++ b/intern/cycles/kernel/device/oneapi/image.h
@@ -300,10 +300,10 @@ ccl_device float4 kernel_tex_image_interp_3d(KernelGlobals, int id, float3 P, in
return NanoVDBInterpolator<nanovdb::Vec3f>::interp_3d(info, x, y, z, interpolation);
}
else if (info.data_type == IMAGE_DATA_TYPE_NANOVDB_FPN) {
- return NanoVDBInterpolator<nanovdb::FpN>::interp_3d(info, P.x, P.y, P.z, interp);
+ return NanoVDBInterpolator<nanovdb::FpN>::interp_3d(info, P.x, P.y, P.z, interpolation);
}
else if (info.data_type == IMAGE_DATA_TYPE_NANOVDB_FP16) {
- return NanoVDBInterpolator<nanovdb::Fp16>::interp_3d(info, P.x, P.y, P.z, interp);
+ return NanoVDBInterpolator<nanovdb::Fp16>::interp_3d(info, P.x, P.y, P.z, interpolation);
}
#else
if (info.data_type == IMAGE_DATA_TYPE_NANOVDB_FLOAT ||
More information about the Bf-blender-cvs
mailing list