[Bf-blender-cvs] [afd29854d30] cycles_oneapi: Cycles oneAPI: cleanup kernel_tex_image_interp_3d
Xavier Hallade
noreply at git.blender.org
Wed Jun 8 22:09:33 CEST 2022
Commit: afd29854d3044e1aabe557a32ac4b8408e235217
Author: Xavier Hallade
Date: Wed Jun 8 22:09:25 2022 +0200
Branches: cycles_oneapi
https://developer.blender.org/rBafd29854d3044e1aabe557a32ac4b8408e235217
Cycles oneAPI: cleanup kernel_tex_image_interp_3d
===================================================================
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 c556efa80e2..f4debcd806a 100644
--- a/intern/cycles/kernel/device/oneapi/image.h
+++ b/intern/cycles/kernel/device/oneapi/image.h
@@ -300,14 +300,16 @@ 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, interpolation);
+ return NanoVDBInterpolator<nanovdb::FpN>::interp_3d(info, x, y, 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, interpolation);
+ return NanoVDBInterpolator<nanovdb::Fp16>::interp_3d(info, x, y, z, interpolation);
}
#else
if (info.data_type == IMAGE_DATA_TYPE_NANOVDB_FLOAT ||
- info.data_type == IMAGE_DATA_TYPE_NANOVDB_FLOAT3) {
+ info.data_type == IMAGE_DATA_TYPE_NANOVDB_FLOAT3 ||
+ info.data_type == IMAGE_DATA_TYPE_NANOVDB_FPN ||
+ info.data_type == IMAGE_DATA_TYPE_NANOVDB_FP16) {
return make_float4(
TEX_IMAGE_MISSING_R, TEX_IMAGE_MISSING_G, TEX_IMAGE_MISSING_B, TEX_IMAGE_MISSING_A);
}
More information about the Bf-blender-cvs
mailing list