System Information
Operating system: Linux-5.2.0-0.bpo.2-amd64-x86_64-with-debian-10.2 64 Bits
Graphics card: Radeon RX Vega (VEGA10, DRM 3.32.0, 5.2.0-0.bpo.2-amd64, LLVM 7.0.1) X.Org 4.5 (Core Profile) Mesa 18.3.6
Blender Version
Broken: version: 2.82 (sub 6), branch: master, commit date: 2019-12-26 19:15, hash: rBd35a31968707
Worked: (optional)
Short description of error
Rendering in Cycles with OpenCL fails with shader compilation errors.
Exact steps for others to reproduce the error
- Open Blender
- Select OpenCL devices in Preferences
- Change render engine to "Cycles"
- Change device to "GPU Compute"
- Render image
Complete log:
Read prefs: /home/richard/.config/blender/2.82/config/userpref.blend
/run/user/1000/gvfs/ non-existent directory
found bundled python: /home/richard/Downloads/blender-2.82-d35a31968707-linux-glibc217-x86_64/2.82/python
Cycles: compiling OpenCL program background...
Cycles: compiling OpenCL program background...
OpenCL build failed with error CL_BUILD_PROGRAM_FAILURE, errors in console.
OpenCL program background build output: /tmp/comgr-d7ec12/input/CompileSource:100145:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-d7ec12/input/CompileSource:100014:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-d7ec12/input/CompileSource:100174:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-d7ec12/input/CompileSource:100014:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-d7ec12/input/CompileSource:100177:44: error: passing 'int *' to parameter of type 'int *' changes address space of pointer
subd_triangle_patch_corners(kg, patch, corners);
^~~~~~~
/tmp/comgr-d7ec12/input/CompileSource:100053:86: note: passing argument to parameter 'corners' here
ccl_device_inline void subd_triangle_patch_corners(KernelGlobals *kg, int patch, int corners[4])
^
/tmp/comgr-d7ec12/input/CompileSource:100278:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-d7ec12/input/CompileSource:100014:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-d7ec12/input/CompileSource:100307:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-d7ec12/input/CompileSource:100014:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-d7ec12/input/CompileSource:100310:44: error: passing 'int *' to parameter of type 'int *' changes address space of pointer
subd_triangle_patch_corners(kg, patch, corners);
^~~~~~~
/tmp/comgr-d7ec12/input/CompileSource:100053:86: note: passing argument to parameter 'corners' here
ccl_device_inline void subd_triangle_patch_corners(KernelGlobals *kg, int patch, int corners[4])
^
/tmp/comgr-d7ec12/input/CompileSource:100412:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-d7ec12/input/CompileSource:100014:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-d7ec12/input/CompileSource:100441:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-d7ec12/input/CompileSource:100014:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-d7ec12/input/CompileSource:100444:44: error: passing 'int *' to parameter of type 'int *' changes address space of pointer
subd_triangle_patch_corners(kg, patch, corners);
^~~~~~~
/tmp/comgr-d7ec12/input/CompileSource:100053:86: note: passing argument to parameter 'corners' here
ccl_device_inline void subd_triangle_patch_corners(KernelGlobals *kg, int patch, int corners[4])
^
/tmp/comgr-d7ec12/input/CompileSource:100537:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-d7ec12/input/CompileSource:100014:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-d7ec12/input/CompileSource:100540:44: error: passing 'int *' to parameter of type 'int *' changes address space of pointer
subd_triangle_patch_corners(kg, patch, corners);
^~~~~~~
/tmp/comgr-d7ec12/input/CompileSource:100053:86: note: passing argument to parameter 'corners' here
ccl_device_inline void subd_triangle_patch_corners(KernelGlobals *kg, int patch, int corners[4])
^
/tmp/comgr-d7ec12/input/CompileSource:101459:88: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_verts_for_step(kg, tri_vindex, offset, numverts, numsteps, step + 1, next_verts);
^~~~~~~~~~
/tmp/comgr-d7ec12/input/CompileSource:101389:62: note: passing argument to parameter 'verts' here
float3 verts[3])
^
/tmp/comgr-d7ec12/input/CompileSource:101488:86: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_normals_for_step(kg, tri_vindex, offset, numverts, numsteps, step, normals);
^~~~~~~
/tmp/comgr-d7ec12/input/CompileSource:101416:64: note: passing argument to parameter 'normals' here
float3 normals[3])
^
/tmp/comgr-d7ec12/input/CompileSource:101490:61: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
kg, tri_vindex, offset, numverts, numsteps, step + 1, next_normals);
^~~~~~~~~~~~
/tmp/comgr-d7ec12/input/CompileSource:101416:64: note: passing argument to parameter 'normals' here
float3 normals[3])
^
/tmp/comgr-d7ec12/input/CompileSource:101679:53: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_vertices(kg, fobject, prim, time, verts);
^~~~~
/tmp/comgr-d7ec12/input/CompileSource:101438:65: note: passing argument to parameter 'verts' here
KernelGlobals *kg, int object, int prim, float time, float3 verts[3])
^
/tmp/comgr-d7ec12/input/CompileSource:101878:84: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_verts_for_step(kg, tri_vindex, offset, numverts, numsteps, step, verts);
^~~~~
/tmp/comgr-d7ec12/input/CompileSource:101389:62: note: passing argument to parameter 'verts' here
float3 verts[3])
^
/tmp/comgr-d7ec12/input/CompileSource:101879:88: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_verts_for_step(kg, tri_vindex, offset, numverts, numsteps, step + 1, next_verts);
^~~~~~~~~~
/tmp/comgr-d7ec12/input/CompileSource:101389:62: note: passing argument to parameter 'verts' here
float3 verts[3])
^
/tmp/comgr-d7ec12/input/CompileSource:101892:56: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
sd->P = motion_triangle_refine(kg, sd, isect, ray, verts);
^~~~~
/tmp/comgr-d7ec12/input/CompileSource:101543:90: note: passing argument to parameter 'verts' here
KernelGlobals *kg, ShaderData *sd, const Intersection *isect, const Ray *ray, float3 verts[3])
^
/tmp/comgr-d7ec12/input/CompileSource:101917:88: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_normals_for_step(kg, tri_vindex, offset, numverts, numsteps, step, normals);
^~~~~~~
/tmp/comgr-d7ec12/input/CompileSource:101416:64: note: passing argument to parameter 'normals' here
float3 normals[3])
^
/tmp/comgr-d7ec12/input/CompileSource:101919:63: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
kg, tri_vindex, offset, numverts, numsteps, step + 1, next_normals);
^~~~~~~~~~~~
/tmp/comgr-d7ec12/input/CompileSource:101416:64: note: passing argument to parameter 'normals' here
float3 normals[3])
^
/tmp/comgr-d7ec12/input/CompileSource:125202:42: error: passing 'float *' to parameter of type 'float *' changes address space of pointer
dist);
^~~~
/tmp/comgr-d7ec12/input/CompileSource:123857:61: note: passing argument to parameter 'dist' here
float dist[2])
^
/tmp/comgr-d7ec12/input/CompileSource:126553:42: error: passing 'float *' to parameter of type 'float *' changes address space of pointer
dist);
^~~~
/tmp/comgr-d7ec12/input/CompileSource:123857:61: note: passing argument to parameter 'dist' here
float dist[2])
^
/tmp/comgr-d7ec12/input/CompileSource:137602:40: error: passing 'float *' to parameter of type 'float *' changes address space of pointer
dist);
^~~~
/tmp/comgr-d7ec12/input/CompileSource:123857:61: note: passing argument to parameter 'dist' here
float dist[2])
^
/tmp/comgr-d7ec12/input/CompileSource:139132:40: error: passing 'float *' to parameter of type 'float *' changes address space of pointer
dist);
^~~~
/tmp/comgr-d7ec12/input/CompileSource:123857:61: note: passing argument to parameter 'dist' here
float dist[2])
^
/tmp/comgr-d7ec12/input/CompileSource:170080:39: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_vertices(kg, sd->prim, Co);
^~
/tmp/comgr-d7ec12/input/CompileSource:99732:78: note: passing argument to parameter 'P' here
ccl_device_inline void triangle_vertices(KernelGlobals *kg, int prim, float3 P[3])
^
/tmp/comgr-d7ec12/input/CompileSource:170082:68: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_vertices(kg, sd->object, sd->prim, sd->time, Co);
^~
/tmp/comgr-d7ec12/input/CompileSource:101438:65: note: passing argument to parameter 'verts' here
KernelGlobals *kg, int object, int prim, float time, float3 verts[3])
^
/tmp/comgr-d7ec12/input/CompileSource:178140:87: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
bool has_motion = triangle_world_space_vertices(kg, sd->object, sd->prim, sd->time, V);
^
/tmp/comgr-d7ec12/input/CompileSource:178089:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-d7ec12/input/CompileSource:178174:72: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_world_space_vertices(kg, sd->object, sd->prim, -1.0f, V);
^
/tmp/comgr-d7ec12/input/CompileSource:178089:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-d7ec12/input/CompileSource:178194:70: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_world_space_vertices(kg, sd->object, sd->prim, -1.0f, V);
^
/tmp/comgr-d7ec12/input/CompileSource:178089:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-d7ec12/input/CompileSource:178216:75: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
bool has_motion = triangle_world_space_vertices(kg, object, prim, time, V);
^
/tmp/comgr-d7ec12/input/CompileSource:178089:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-d7ec12/input/CompileSource:178330:64: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_world_space_vertices(kg, object, prim, -1.0f, V);
^
/tmp/comgr-d7ec12/input/CompileSource:178089:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-d7ec12/input/CompileSource:178352:62: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_world_space_vertices(kg, object, prim, -1.0f, V);
^
/tmp/comgr-d7ec12/input/CompileSource:178089:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
32 errors generated.
Error: Failed to compile opencl source (from CL or HIP source to LLVM IR).
Cycles: compiling OpenCL program split_subsurface_scatter...
Cycles: compiling OpenCL program split_shadow_blocked_dl...
Cycles: compiling OpenCL program split_shadow_blocked_ao...
Cycles: compiling OpenCL program split_holdout_emission_blurring_pathtermination_ao...
Cycles: compiling OpenCL program split_lamp_emission...
Cycles: compiling OpenCL program split_direct_lighting...
Cycles: compiling OpenCL program split_indirect_background...
Cycles: compiling OpenCL program split_shader_eval...
Cycles: compiling OpenCL program split_bundle...
Cycles: compiling OpenCL program split_subsurface_scatter...
Cycles: compiling OpenCL program split_direct_lighting...
Cycles: compiling OpenCL program split_shadow_blocked_dl...
Cycles: compiling OpenCL program split_indirect_background...
Cycles: compiling OpenCL program split_shadow_blocked_ao...
Cycles: compiling OpenCL program split_lamp_emission...
Cycles: compiling OpenCL program split_shader_eval...
Cycles: compiling OpenCL program split_holdout_emission_blurring_pathtermination_ao...
Cycles: compiling OpenCL program split_bundle...
OpenCL build failed with error CL_BUILD_PROGRAM_FAILURE, errors in console.
OpenCL program split_subsurface_scatter build output: /tmp/comgr-d5e691/input/CompileSource:101715:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-d5e691/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-d5e691/input/CompileSource:101744:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-d5e691/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-d5e691/input/CompileSource:101747:44: error: passing 'int *' to parameter of type 'int *' changes address space of pointer
subd_triangle_patch_corners(kg, patch, corners);
^~~~~~~
/tmp/comgr-d5e691/input/CompileSource:101623:86: note: passing argument to parameter 'corners' here
ccl_device_inline void subd_triangle_patch_corners(KernelGlobals *kg, int patch, int corners[4])
^
/tmp/comgr-d5e691/input/CompileSource:101848:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-d5e691/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-d5e691/input/CompileSource:101877:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-d5e691/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-d5e691/input/CompileSource:101880:44: error: passing 'int *' to parameter of type 'int *' changes address space of pointer
subd_triangle_patch_corners(kg, patch, corners);
^~~~~~~
/tmp/comgr-d5e691/input/CompileSource:101623:86: note: passing argument to parameter 'corners' here
ccl_device_inline void subd_triangle_patch_corners(KernelGlobals *kg, int patch, int corners[4])
^
/tmp/comgr-d5e691/input/CompileSource:101982:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-d5e691/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-d5e691/input/CompileSource:102011:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-d5e691/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-d5e691/input/CompileSource:102014:44: error: passing 'int *' to parameter of type 'int *' changes address space of pointer
subd_triangle_patch_corners(kg, patch, corners);
^~~~~~~
/tmp/comgr-d5e691/input/CompileSource:101623:86: note: passing argument to parameter 'corners' here
ccl_device_inline void subd_triangle_patch_corners(KernelGlobals *kg, int patch, int corners[4])
^
/tmp/comgr-d5e691/input/CompileSource:102107:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-d5e691/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-d5e691/input/CompileSource:102110:44: error: passing 'int *' to parameter of type 'int *' changes address space of pointer
subd_triangle_patch_corners(kg, patch, corners);
^~~~~~~
/tmp/comgr-d5e691/input/CompileSource:101623:86: note: passing argument to parameter 'corners' here
ccl_device_inline void subd_triangle_patch_corners(KernelGlobals *kg, int patch, int corners[4])
^
/tmp/comgr-d5e691/input/CompileSource:103029:88: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_verts_for_step(kg, tri_vindex, offset, numverts, numsteps, step + 1, next_verts);
^~~~~~~~~~
/tmp/comgr-d5e691/input/CompileSource:102959:62: note: passing argument to parameter 'verts' here
float3 verts[3])
^
/tmp/comgr-d5e691/input/CompileSource:103058:86: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_normals_for_step(kg, tri_vindex, offset, numverts, numsteps, step, normals);
^~~~~~~
/tmp/comgr-d5e691/input/CompileSource:102986:64: note: passing argument to parameter 'normals' here
float3 normals[3])
^
/tmp/comgr-d5e691/input/CompileSource:103060:61: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
kg, tri_vindex, offset, numverts, numsteps, step + 1, next_normals);
^~~~~~~~~~~~
/tmp/comgr-d5e691/input/CompileSource:102986:64: note: passing argument to parameter 'normals' here
float3 normals[3])
^
/tmp/comgr-d5e691/input/CompileSource:103249:53: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_vertices(kg, fobject, prim, time, verts);
^~~~~
/tmp/comgr-d5e691/input/CompileSource:103008:65: note: passing argument to parameter 'verts' here
KernelGlobals *kg, int object, int prim, float time, float3 verts[3])
^
/tmp/comgr-d5e691/input/CompileSource:103448:84: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_verts_for_step(kg, tri_vindex, offset, numverts, numsteps, step, verts);
^~~~~
/tmp/comgr-d5e691/input/CompileSource:102959:62: note: passing argument to parameter 'verts' here
float3 verts[3])
^
/tmp/comgr-d5e691/input/CompileSource:103449:88: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_verts_for_step(kg, tri_vindex, offset, numverts, numsteps, step + 1, next_verts);
^~~~~~~~~~
/tmp/comgr-d5e691/input/CompileSource:102959:62: note: passing argument to parameter 'verts' here
float3 verts[3])
^
/tmp/comgr-d5e691/input/CompileSource:103462:56: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
sd->P = motion_triangle_refine(kg, sd, isect, ray, verts);
^~~~~
/tmp/comgr-d5e691/input/CompileSource:103113:90: note: passing argument to parameter 'verts' here
KernelGlobals *kg, ShaderData *sd, const Intersection *isect, const Ray *ray, float3 verts[3])
^
/tmp/comgr-d5e691/input/CompileSource:103487:88: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_normals_for_step(kg, tri_vindex, offset, numverts, numsteps, step, normals);
^~~~~~~
/tmp/comgr-d5e691/input/CompileSource:102986:64: note: passing argument to parameter 'normals' here
float3 normals[3])
^
/tmp/comgr-d5e691/input/CompileSource:103489:63: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
kg, tri_vindex, offset, numverts, numsteps, step + 1, next_normals);
^~~~~~~~~~~~
/tmp/comgr-d5e691/input/CompileSource:102986:64: note: passing argument to parameter 'normals' here
float3 normals[3])
^
/tmp/comgr-d5e691/input/CompileSource:126772:42: error: passing 'float *' to parameter of type 'float *' changes address space of pointer
dist);
^~~~
/tmp/comgr-d5e691/input/CompileSource:125427:61: note: passing argument to parameter 'dist' here
float dist[2])
^
/tmp/comgr-d5e691/input/CompileSource:128123:42: error: passing 'float *' to parameter of type 'float *' changes address space of pointer
dist);
^~~~
/tmp/comgr-d5e691/input/CompileSource:125427:61: note: passing argument to parameter 'dist' here
float dist[2])
^
/tmp/comgr-d5e691/input/CompileSource:139172:40: error: passing 'float *' to parameter of type 'float *' changes address space of pointer
dist);
^~~~
/tmp/comgr-d5e691/input/CompileSource:125427:61: note: passing argument to parameter 'dist' here
float dist[2])
^
/tmp/comgr-d5e691/input/CompileSource:140702:40: error: passing 'float *' to parameter of type 'float *' changes address space of pointer
dist);
^~~~
/tmp/comgr-d5e691/input/CompileSource:125427:61: note: passing argument to parameter 'dist' here
float dist[2])
^
/tmp/comgr-d5e691/input/CompileSource:171650:39: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_vertices(kg, sd->prim, Co);
^~
/tmp/comgr-d5e691/input/CompileSource:101302:78: note: passing argument to parameter 'P' here
ccl_device_inline void triangle_vertices(KernelGlobals *kg, int prim, float3 P[3])
^
/tmp/comgr-d5e691/input/CompileSource:171652:68: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_vertices(kg, sd->object, sd->prim, sd->time, Co);
^~
/tmp/comgr-d5e691/input/CompileSource:103008:65: note: passing argument to parameter 'verts' here
KernelGlobals *kg, int object, int prim, float time, float3 verts[3])
^
/tmp/comgr-d5e691/input/CompileSource:179710:87: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
bool has_motion = triangle_world_space_vertices(kg, sd->object, sd->prim, sd->time, V);
^
/tmp/comgr-d5e691/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-d5e691/input/CompileSource:179744:72: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_world_space_vertices(kg, sd->object, sd->prim, -1.0f, V);
^
/tmp/comgr-d5e691/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-d5e691/input/CompileSource:179764:70: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_world_space_vertices(kg, sd->object, sd->prim, -1.0f, V);
^
/tmp/comgr-d5e691/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-d5e691/input/CompileSource:179786:75: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
bool has_motion = triangle_world_space_vertices(kg, object, prim, time, V);
^
/tmp/comgr-d5e691/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-d5e691/input/CompileSource:179900:64: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_world_space_vertices(kg, object, prim, -1.0f, V);
^
/tmp/comgr-d5e691/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-d5e691/input/CompileSource:179922:62: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_world_space_vertices(kg, object, prim, -1.0f, V);
^
/tmp/comgr-d5e691/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
32 errors generated.
Error: Failed to compile opencl source (from CL or HIP source to LLVM IR).
OpenCL build failed with error CL_BUILD_PROGRAM_FAILURE, errors in console.
OpenCL program split_bundle build output: /tmp/comgr-2c5033/input/CompileSource:101715:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-2c5033/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-2c5033/input/CompileSource:101744:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-2c5033/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-2c5033/input/CompileSource:101747:44: error: passing 'int *' to parameter of type 'int *' changes address space of pointer
subd_triangle_patch_corners(kg, patch, corners);
^~~~~~~
/tmp/comgr-2c5033/input/CompileSource:101623:86: note: passing argument to parameter 'corners' here
ccl_device_inline void subd_triangle_patch_corners(KernelGlobals *kg, int patch, int corners[4])
^
/tmp/comgr-2c5033/input/CompileSource:101848:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-2c5033/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-2c5033/input/CompileSource:101877:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-2c5033/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-2c5033/input/CompileSource:101880:44: error: passing 'int *' to parameter of type 'int *' changes address space of pointer
subd_triangle_patch_corners(kg, patch, corners);
^~~~~~~
/tmp/comgr-2c5033/input/CompileSource:101623:86: note: passing argument to parameter 'corners' here
ccl_device_inline void subd_triangle_patch_corners(KernelGlobals *kg, int patch, int corners[4])
^
/tmp/comgr-2c5033/input/CompileSource:101982:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-2c5033/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-2c5033/input/CompileSource:102011:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-2c5033/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-2c5033/input/CompileSource:102014:44: error: passing 'int *' to parameter of type 'int *' changes address space of pointer
subd_triangle_patch_corners(kg, patch, corners);
^~~~~~~
/tmp/comgr-2c5033/input/CompileSource:101623:86: note: passing argument to parameter 'corners' here
ccl_device_inline void subd_triangle_patch_corners(KernelGlobals *kg, int patch, int corners[4])
^
/tmp/comgr-2c5033/input/CompileSource:102107:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-2c5033/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-2c5033/input/CompileSource:102110:44: error: passing 'int *' to parameter of type 'int *' changes address space of pointer
subd_triangle_patch_corners(kg, patch, corners);
^~~~~~~
/tmp/comgr-2c5033/input/CompileSource:101623:86: note: passing argument to parameter 'corners' here
ccl_device_inline void subd_triangle_patch_corners(KernelGlobals *kg, int patch, int corners[4])
^
/tmp/comgr-2c5033/input/CompileSource:103029:88: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_verts_for_step(kg, tri_vindex, offset, numverts, numsteps, step + 1, next_verts);
^~~~~~~~~~
/tmp/comgr-2c5033/input/CompileSource:102959:62: note: passing argument to parameter 'verts' here
float3 verts[3])
^
/tmp/comgr-2c5033/input/CompileSource:103058:86: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_normals_for_step(kg, tri_vindex, offset, numverts, numsteps, step, normals);
^~~~~~~
/tmp/comgr-2c5033/input/CompileSource:102986:64: note: passing argument to parameter 'normals' here
float3 normals[3])
^
/tmp/comgr-2c5033/input/CompileSource:103060:61: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
kg, tri_vindex, offset, numverts, numsteps, step + 1, next_normals);
^~~~~~~~~~~~
/tmp/comgr-2c5033/input/CompileSource:102986:64: note: passing argument to parameter 'normals' here
float3 normals[3])
^
/tmp/comgr-2c5033/input/CompileSource:103249:53: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_vertices(kg, fobject, prim, time, verts);
^~~~~
/tmp/comgr-2c5033/input/CompileSource:103008:65: note: passing argument to parameter 'verts' here
KernelGlobals *kg, int object, int prim, float time, float3 verts[3])
^
/tmp/comgr-2c5033/input/CompileSource:103448:84: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_verts_for_step(kg, tri_vindex, offset, numverts, numsteps, step, verts);
^~~~~
/tmp/comgr-2c5033/input/CompileSource:102959:62: note: passing argument to parameter 'verts' here
float3 verts[3])
^
/tmp/comgr-2c5033/input/CompileSource:103449:88: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_verts_for_step(kg, tri_vindex, offset, numverts, numsteps, step + 1, next_verts);
^~~~~~~~~~
/tmp/comgr-2c5033/input/CompileSource:102959:62: note: passing argument to parameter 'verts' here
float3 verts[3])
^
/tmp/comgr-2c5033/input/CompileSource:103462:56: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
sd->P = motion_triangle_refine(kg, sd, isect, ray, verts);
^~~~~
/tmp/comgr-2c5033/input/CompileSource:103113:90: note: passing argument to parameter 'verts' here
KernelGlobals *kg, ShaderData *sd, const Intersection *isect, const Ray *ray, float3 verts[3])
^
/tmp/comgr-2c5033/input/CompileSource:103487:88: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_normals_for_step(kg, tri_vindex, offset, numverts, numsteps, step, normals);
^~~~~~~
/tmp/comgr-2c5033/input/CompileSource:102986:64: note: passing argument to parameter 'normals' here
float3 normals[3])
^
/tmp/comgr-2c5033/input/CompileSource:103489:63: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
kg, tri_vindex, offset, numverts, numsteps, step + 1, next_normals);
^~~~~~~~~~~~
/tmp/comgr-2c5033/input/CompileSource:102986:64: note: passing argument to parameter 'normals' here
float3 normals[3])
^
/tmp/comgr-2c5033/input/CompileSource:126772:42: error: passing 'float *' to parameter of type 'float *' changes address space of pointer
dist);
^~~~
/tmp/comgr-2c5033/input/CompileSource:125427:61: note: passing argument to parameter 'dist' here
float dist[2])
^
/tmp/comgr-2c5033/input/CompileSource:128123:42: error: passing 'float *' to parameter of type 'float *' changes address space of pointer
dist);
^~~~
/tmp/comgr-2c5033/input/CompileSource:125427:61: note: passing argument to parameter 'dist' here
float dist[2])
^
/tmp/comgr-2c5033/input/CompileSource:139172:40: error: passing 'float *' to parameter of type 'float *' changes address space of pointer
dist);
^~~~
/tmp/comgr-2c5033/input/CompileSource:125427:61: note: passing argument to parameter 'dist' here
float dist[2])
^
/tmp/comgr-2c5033/input/CompileSource:140702:40: error: passing 'float *' to parameter of type 'float *' changes address space of pointer
dist);
^~~~
/tmp/comgr-2c5033/input/CompileSource:125427:61: note: passing argument to parameter 'dist' here
float dist[2])
^
/tmp/comgr-2c5033/input/CompileSource:171650:39: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_vertices(kg, sd->prim, Co);
^~
/tmp/comgr-2c5033/input/CompileSource:101302:78: note: passing argument to parameter 'P' here
ccl_device_inline void triangle_vertices(KernelGlobals *kg, int prim, float3 P[3])
^
/tmp/comgr-2c5033/input/CompileSource:171652:68: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_vertices(kg, sd->object, sd->prim, sd->time, Co);
^~
/tmp/comgr-2c5033/input/CompileSource:103008:65: note: passing argument to parameter 'verts' here
KernelGlobals *kg, int object, int prim, float time, float3 verts[3])
^
/tmp/comgr-2c5033/input/CompileSource:179710:87: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
bool has_motion = triangle_world_space_vertices(kg, sd->object, sd->prim, sd->time, V);
^
/tmp/comgr-2c5033/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-2c5033/input/CompileSource:179744:72: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_world_space_vertices(kg, sd->object, sd->prim, -1.0f, V);
^
/tmp/comgr-2c5033/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-2c5033/input/CompileSource:179764:70: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_world_space_vertices(kg, sd->object, sd->prim, -1.0f, V);
^
/tmp/comgr-2c5033/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-2c5033/input/CompileSource:179786:75: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
bool has_motion = triangle_world_space_vertices(kg, object, prim, time, V);
^
/tmp/comgr-2c5033/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-2c5033/input/CompileSource:179900:64: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_world_space_vertices(kg, object, prim, -1.0f, V);
^
/tmp/comgr-2c5033/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-2c5033/input/CompileSource:179922:62: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_world_space_vertices(kg, object, prim, -1.0f, V);
^
/tmp/comgr-2c5033/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
32 errors generated.
Error: Failed to compile opencl source (from CL or HIP source to LLVM IR).
OpenCL build failed with error CL_BUILD_PROGRAM_FAILURE, errors in console.
OpenCL program split_holdout_emission_blurring_pathtermination_ao build output: /tmp/comgr-c0ca5b/input/CompileSource:101715:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-c0ca5b/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-c0ca5b/input/CompileSource:101744:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-c0ca5b/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-c0ca5b/input/CompileSource:101747:44: error: passing 'int *' to parameter of type 'int *' changes address space of pointer
subd_triangle_patch_corners(kg, patch, corners);
^~~~~~~
/tmp/comgr-c0ca5b/input/CompileSource:101623:86: note: passing argument to parameter 'corners' here
ccl_device_inline void subd_triangle_patch_corners(KernelGlobals *kg, int patch, int corners[4])
^
/tmp/comgr-c0ca5b/input/CompileSource:101848:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-c0ca5b/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-c0ca5b/input/CompileSource:101877:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-c0ca5b/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-c0ca5b/input/CompileSource:101880:44: error: passing 'int *' to parameter of type 'int *' changes address space of pointer
subd_triangle_patch_corners(kg, patch, corners);
^~~~~~~
/tmp/comgr-c0ca5b/input/CompileSource:101623:86: note: passing argument to parameter 'corners' here
ccl_device_inline void subd_triangle_patch_corners(KernelGlobals *kg, int patch, int corners[4])
^
/tmp/comgr-c0ca5b/input/CompileSource:101982:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-c0ca5b/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-c0ca5b/input/CompileSource:102011:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-c0ca5b/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-c0ca5b/input/CompileSource:102014:44: error: passing 'int *' to parameter of type 'int *' changes address space of pointer
subd_triangle_patch_corners(kg, patch, corners);
^~~~~~~
/tmp/comgr-c0ca5b/input/CompileSource:101623:86: note: passing argument to parameter 'corners' here
ccl_device_inline void subd_triangle_patch_corners(KernelGlobals *kg, int patch, int corners[4])
^
/tmp/comgr-c0ca5b/input/CompileSource:102107:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-c0ca5b/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-c0ca5b/input/CompileSource:102110:44: error: passing 'int *' to parameter of type 'int *' changes address space of pointer
subd_triangle_patch_corners(kg, patch, corners);
^~~~~~~
/tmp/comgr-c0ca5b/input/CompileSource:101623:86: note: passing argument to parameter 'corners' here
ccl_device_inline void subd_triangle_patch_corners(KernelGlobals *kg, int patch, int corners[4])
^
/tmp/comgr-c0ca5b/input/CompileSource:103029:88: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_verts_for_step(kg, tri_vindex, offset, numverts, numsteps, step + 1, next_verts);
^~~~~~~~~~
/tmp/comgr-c0ca5b/input/CompileSource:102959:62: note: passing argument to parameter 'verts' here
float3 verts[3])
^
/tmp/comgr-c0ca5b/input/CompileSource:103058:86: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_normals_for_step(kg, tri_vindex, offset, numverts, numsteps, step, normals);
^~~~~~~
/tmp/comgr-c0ca5b/input/CompileSource:102986:64: note: passing argument to parameter 'normals' here
float3 normals[3])
^
/tmp/comgr-c0ca5b/input/CompileSource:103060:61: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
kg, tri_vindex, offset, numverts, numsteps, step + 1, next_normals);
^~~~~~~~~~~~
/tmp/comgr-c0ca5b/input/CompileSource:102986:64: note: passing argument to parameter 'normals' here
float3 normals[3])
^
/tmp/comgr-c0ca5b/input/CompileSource:103249:53: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_vertices(kg, fobject, prim, time, verts);
^~~~~
/tmp/comgr-c0ca5b/input/CompileSource:103008:65: note: passing argument to parameter 'verts' here
KernelGlobals *kg, int object, int prim, float time, float3 verts[3])
^
/tmp/comgr-c0ca5b/input/CompileSource:103448:84: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_verts_for_step(kg, tri_vindex, offset, numverts, numsteps, step, verts);
^~~~~
/tmp/comgr-c0ca5b/input/CompileSource:102959:62: note: passing argument to parameter 'verts' here
float3 verts[3])
^
/tmp/comgr-c0ca5b/input/CompileSource:103449:88: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_verts_for_step(kg, tri_vindex, offset, numverts, numsteps, step + 1, next_verts);
^~~~~~~~~~
/tmp/comgr-c0ca5b/input/CompileSource:102959:62: note: passing argument to parameter 'verts' here
float3 verts[3])
^
/tmp/comgr-c0ca5b/input/CompileSource:103462:56: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
sd->P = motion_triangle_refine(kg, sd, isect, ray, verts);
^~~~~
/tmp/comgr-c0ca5b/input/CompileSource:103113:90: note: passing argument to parameter 'verts' here
KernelGlobals *kg, ShaderData *sd, const Intersection *isect, const Ray *ray, float3 verts[3])
^
/tmp/comgr-c0ca5b/input/CompileSource:103487:88: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_normals_for_step(kg, tri_vindex, offset, numverts, numsteps, step, normals);
^~~~~~~
/tmp/comgr-c0ca5b/input/CompileSource:102986:64: note: passing argument to parameter 'normals' here
float3 normals[3])
^
/tmp/comgr-c0ca5b/input/CompileSource:103489:63: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
kg, tri_vindex, offset, numverts, numsteps, step + 1, next_normals);
^~~~~~~~~~~~
/tmp/comgr-c0ca5b/input/CompileSource:102986:64: note: passing argument to parameter 'normals' here
float3 normals[3])
^
/tmp/comgr-c0ca5b/input/CompileSource:126772:42: error: passing 'float *' to parameter of type 'float *' changes address space of pointer
dist);
^~~~
/tmp/comgr-c0ca5b/input/CompileSource:125427:61: note: passing argument to parameter 'dist' here
float dist[2])
^
/tmp/comgr-c0ca5b/input/CompileSource:128123:42: error: passing 'float *' to parameter of type 'float *' changes address space of pointer
dist);
^~~~
/tmp/comgr-c0ca5b/input/CompileSource:125427:61: note: passing argument to parameter 'dist' here
float dist[2])
^
/tmp/comgr-c0ca5b/input/CompileSource:139172:40: error: passing 'float *' to parameter of type 'float *' changes address space of pointer
dist);
^~~~
/tmp/comgr-c0ca5b/input/CompileSource:125427:61: note: passing argument to parameter 'dist' here
float dist[2])
^
/tmp/comgr-c0ca5b/input/CompileSource:140702:40: error: passing 'float *' to parameter of type 'float *' changes address space of pointer
dist);
^~~~
/tmp/comgr-c0ca5b/input/CompileSource:125427:61: note: passing argument to parameter 'dist' here
float dist[2])
^
/tmp/comgr-c0ca5b/input/CompileSource:171650:39: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_vertices(kg, sd->prim, Co);
^~
/tmp/comgr-c0ca5b/input/CompileSource:101302:78: note: passing argument to parameter 'P' here
ccl_device_inline void triangle_vertices(KernelGlobals *kg, int prim, float3 P[3])
^
/tmp/comgr-c0ca5b/input/CompileSource:171652:68: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_vertices(kg, sd->object, sd->prim, sd->time, Co);
^~
/tmp/comgr-c0ca5b/input/CompileSource:103008:65: note: passing argument to parameter 'verts' here
KernelGlobals *kg, int object, int prim, float time, float3 verts[3])
^
/tmp/comgr-c0ca5b/input/CompileSource:179710:87: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
bool has_motion = triangle_world_space_vertices(kg, sd->object, sd->prim, sd->time, V);
^
/tmp/comgr-c0ca5b/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-c0ca5b/input/CompileSource:179744:72: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_world_space_vertices(kg, sd->object, sd->prim, -1.0f, V);
^
/tmp/comgr-c0ca5b/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-c0ca5b/input/CompileSource:179764:70: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_world_space_vertices(kg, sd->object, sd->prim, -1.0f, V);
^
/tmp/comgr-c0ca5b/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-c0ca5b/input/CompileSource:179786:75: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
bool has_motion = triangle_world_space_vertices(kg, object, prim, time, V);
^
/tmp/comgr-c0ca5b/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-c0ca5b/input/CompileSource:179900:64: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_world_space_vertices(kg, object, prim, -1.0f, V);
^
/tmp/comgr-c0ca5b/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-c0ca5b/input/CompileSource:179922:62: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_world_space_vertices(kg, object, prim, -1.0f, V);
^
/tmp/comgr-c0ca5b/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
32 errors generated.
Error: Failed to compile opencl source (from CL or HIP source to LLVM IR).
OpenCL build failed with error CL_BUILD_PROGRAM_FAILURE, errors in console.
OpenCL program split_shader_eval build output: /tmp/comgr-8afb65/input/CompileSource:101715:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-8afb65/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-8afb65/input/CompileSource:101744:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-8afb65/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-8afb65/input/CompileSource:101747:44: error: passing 'int *' to parameter of type 'int *' changes address space of pointer
subd_triangle_patch_corners(kg, patch, corners);
^~~~~~~
/tmp/comgr-8afb65/input/CompileSource:101623:86: note: passing argument to parameter 'corners' here
ccl_device_inline void subd_triangle_patch_corners(KernelGlobals *kg, int patch, int corners[4])
^
/tmp/comgr-8afb65/input/CompileSource:101848:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-8afb65/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-8afb65/input/CompileSource:101877:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-8afb65/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-8afb65/input/CompileSource:101880:44: error: passing 'int *' to parameter of type 'int *' changes address space of pointer
subd_triangle_patch_corners(kg, patch, corners);
^~~~~~~
/tmp/comgr-8afb65/input/CompileSource:101623:86: note: passing argument to parameter 'corners' here
ccl_device_inline void subd_triangle_patch_corners(KernelGlobals *kg, int patch, int corners[4])
^
/tmp/comgr-8afb65/input/CompileSource:101982:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-8afb65/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-8afb65/input/CompileSource:102011:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-8afb65/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-8afb65/input/CompileSource:102014:44: error: passing 'int *' to parameter of type 'int *' changes address space of pointer
subd_triangle_patch_corners(kg, patch, corners);
^~~~~~~
/tmp/comgr-8afb65/input/CompileSource:101623:86: note: passing argument to parameter 'corners' here
ccl_device_inline void subd_triangle_patch_corners(KernelGlobals *kg, int patch, int corners[4])
^
/tmp/comgr-8afb65/input/CompileSource:102107:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-8afb65/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-8afb65/input/CompileSource:102110:44: error: passing 'int *' to parameter of type 'int *' changes address space of pointer
subd_triangle_patch_corners(kg, patch, corners);
^~~~~~~
/tmp/comgr-8afb65/input/CompileSource:101623:86: note: passing argument to parameter 'corners' here
ccl_device_inline void subd_triangle_patch_corners(KernelGlobals *kg, int patch, int corners[4])
^
/tmp/comgr-8afb65/input/CompileSource:103029:88: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_verts_for_step(kg, tri_vindex, offset, numverts, numsteps, step + 1, next_verts);
^~~~~~~~~~
/tmp/comgr-8afb65/input/CompileSource:102959:62: note: passing argument to parameter 'verts' here
float3 verts[3])
^
/tmp/comgr-8afb65/input/CompileSource:103058:86: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_normals_for_step(kg, tri_vindex, offset, numverts, numsteps, step, normals);
^~~~~~~
/tmp/comgr-8afb65/input/CompileSource:102986:64: note: passing argument to parameter 'normals' here
float3 normals[3])
^
/tmp/comgr-8afb65/input/CompileSource:103060:61: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
kg, tri_vindex, offset, numverts, numsteps, step + 1, next_normals);
^~~~~~~~~~~~
/tmp/comgr-8afb65/input/CompileSource:102986:64: note: passing argument to parameter 'normals' here
float3 normals[3])
^
/tmp/comgr-8afb65/input/CompileSource:103249:53: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_vertices(kg, fobject, prim, time, verts);
^~~~~
/tmp/comgr-8afb65/input/CompileSource:103008:65: note: passing argument to parameter 'verts' here
KernelGlobals *kg, int object, int prim, float time, float3 verts[3])
^
/tmp/comgr-8afb65/input/CompileSource:103448:84: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_verts_for_step(kg, tri_vindex, offset, numverts, numsteps, step, verts);
^~~~~
/tmp/comgr-8afb65/input/CompileSource:102959:62: note: passing argument to parameter 'verts' here
float3 verts[3])
^
/tmp/comgr-8afb65/input/CompileSource:103449:88: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_verts_for_step(kg, tri_vindex, offset, numverts, numsteps, step + 1, next_verts);
^~~~~~~~~~
/tmp/comgr-8afb65/input/CompileSource:102959:62: note: passing argument to parameter 'verts' here
float3 verts[3])
^
/tmp/comgr-8afb65/input/CompileSource:103462:56: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
sd->P = motion_triangle_refine(kg, sd, isect, ray, verts);
^~~~~
/tmp/comgr-8afb65/input/CompileSource:103113:90: note: passing argument to parameter 'verts' here
KernelGlobals *kg, ShaderData *sd, const Intersection *isect, const Ray *ray, float3 verts[3])
^
/tmp/comgr-8afb65/input/CompileSource:103487:88: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_normals_for_step(kg, tri_vindex, offset, numverts, numsteps, step, normals);
^~~~~~~
/tmp/comgr-8afb65/input/CompileSource:102986:64: note: passing argument to parameter 'normals' here
float3 normals[3])
^
/tmp/comgr-8afb65/input/CompileSource:103489:63: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
kg, tri_vindex, offset, numverts, numsteps, step + 1, next_normals);
^~~~~~~~~~~~
/tmp/comgr-8afb65/input/CompileSource:102986:64: note: passing argument to parameter 'normals' here
float3 normals[3])
^
/tmp/comgr-8afb65/input/CompileSource:126772:42: error: passing 'float *' to parameter of type 'float *' changes address space of pointer
dist);
^~~~
/tmp/comgr-8afb65/input/CompileSource:125427:61: note: passing argument to parameter 'dist' here
float dist[2])
^
/tmp/comgr-8afb65/input/CompileSource:128123:42: error: passing 'float *' to parameter of type 'float *' changes address space of pointer
dist);
^~~~
/tmp/comgr-8afb65/input/CompileSource:125427:61: note: passing argument to parameter 'dist' here
float dist[2])
^
/tmp/comgr-8afb65/input/CompileSource:139172:40: error: passing 'float *' to parameter of type 'float *' changes address space of pointer
dist);
^~~~
/tmp/comgr-8afb65/input/CompileSource:125427:61: note: passing argument to parameter 'dist' here
float dist[2])
^
/tmp/comgr-8afb65/input/CompileSource:140702:40: error: passing 'float *' to parameter of type 'float *' changes address space of pointer
dist);
^~~~
/tmp/comgr-8afb65/input/CompileSource:125427:61: note: passing argument to parameter 'dist' here
float dist[2])
^
/tmp/comgr-8afb65/input/CompileSource:171650:39: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_vertices(kg, sd->prim, Co);
^~
/tmp/comgr-8afb65/input/CompileSource:101302:78: note: passing argument to parameter 'P' here
ccl_device_inline void triangle_vertices(KernelGlobals *kg, int prim, float3 P[3])
^
/tmp/comgr-8afb65/input/CompileSource:171652:68: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_vertices(kg, sd->object, sd->prim, sd->time, Co);
^~
/tmp/comgr-8afb65/input/CompileSource:103008:65: note: passing argument to parameter 'verts' here
KernelGlobals *kg, int object, int prim, float time, float3 verts[3])
^
/tmp/comgr-8afb65/input/CompileSource:179710:87: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
bool has_motion = triangle_world_space_vertices(kg, sd->object, sd->prim, sd->time, V);
^
/tmp/comgr-8afb65/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-8afb65/input/CompileSource:179744:72: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_world_space_vertices(kg, sd->object, sd->prim, -1.0f, V);
^
/tmp/comgr-8afb65/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-8afb65/input/CompileSource:179764:70: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_world_space_vertices(kg, sd->object, sd->prim, -1.0f, V);
^
/tmp/comgr-8afb65/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-8afb65/input/CompileSource:179786:75: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
bool has_motion = triangle_world_space_vertices(kg, object, prim, time, V);
^
/tmp/comgr-8afb65/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-8afb65/input/CompileSource:179900:64: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_world_space_vertices(kg, object, prim, -1.0f, V);
^
/tmp/comgr-8afb65/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-8afb65/input/CompileSource:179922:62: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_world_space_vertices(kg, object, prim, -1.0f, V);
^
/tmp/comgr-8afb65/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
32 errors generated.
Error: Failed to compile opencl source (from CL or HIP source to LLVM IR).
OpenCL build failed with error CL_BUILD_PROGRAM_FAILURE, errors in console.
OpenCL program split_lamp_emission build output: /tmp/comgr-b4b747/input/CompileSource:101715:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-b4b747/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-b4b747/input/CompileSource:101744:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-b4b747/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-b4b747/input/CompileSource:101747:44: error: passing 'int *' to parameter of type 'int *' changes address space of pointer
subd_triangle_patch_corners(kg, patch, corners);
^~~~~~~
/tmp/comgr-b4b747/input/CompileSource:101623:86: note: passing argument to parameter 'corners' here
ccl_device_inline void subd_triangle_patch_corners(KernelGlobals *kg, int patch, int corners[4])
^
/tmp/comgr-b4b747/input/CompileSource:101848:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-b4b747/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-b4b747/input/CompileSource:101877:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-b4b747/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-b4b747/input/CompileSource:101880:44: error: passing 'int *' to parameter of type 'int *' changes address space of pointer
subd_triangle_patch_corners(kg, patch, corners);
^~~~~~~
/tmp/comgr-b4b747/input/CompileSource:101623:86: note: passing argument to parameter 'corners' here
ccl_device_inline void subd_triangle_patch_corners(KernelGlobals *kg, int patch, int corners[4])
^
/tmp/comgr-b4b747/input/CompileSource:101982:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-b4b747/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-b4b747/input/CompileSource:102011:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-b4b747/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-b4b747/input/CompileSource:102014:44: error: passing 'int *' to parameter of type 'int *' changes address space of pointer
subd_triangle_patch_corners(kg, patch, corners);
^~~~~~~
/tmp/comgr-b4b747/input/CompileSource:101623:86: note: passing argument to parameter 'corners' here
ccl_device_inline void subd_triangle_patch_corners(KernelGlobals *kg, int patch, int corners[4])
^
/tmp/comgr-b4b747/input/CompileSource:102107:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-b4b747/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-b4b747/input/CompileSource:102110:44: error: passing 'int *' to parameter of type 'int *' changes address space of pointer
subd_triangle_patch_corners(kg, patch, corners);
^~~~~~~
/tmp/comgr-b4b747/input/CompileSource:101623:86: note: passing argument to parameter 'corners' here
ccl_device_inline void subd_triangle_patch_corners(KernelGlobals *kg, int patch, int corners[4])
^
/tmp/comgr-b4b747/input/CompileSource:103029:88: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_verts_for_step(kg, tri_vindex, offset, numverts, numsteps, step + 1, next_verts);
^~~~~~~~~~
/tmp/comgr-b4b747/input/CompileSource:102959:62: note: passing argument to parameter 'verts' here
float3 verts[3])
^
/tmp/comgr-b4b747/input/CompileSource:103058:86: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_normals_for_step(kg, tri_vindex, offset, numverts, numsteps, step, normals);
^~~~~~~
/tmp/comgr-b4b747/input/CompileSource:102986:64: note: passing argument to parameter 'normals' here
float3 normals[3])
^
/tmp/comgr-b4b747/input/CompileSource:103060:61: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
kg, tri_vindex, offset, numverts, numsteps, step + 1, next_normals);
^~~~~~~~~~~~
/tmp/comgr-b4b747/input/CompileSource:102986:64: note: passing argument to parameter 'normals' here
float3 normals[3])
^
/tmp/comgr-b4b747/input/CompileSource:103249:53: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_vertices(kg, fobject, prim, time, verts);
^~~~~
/tmp/comgr-b4b747/input/CompileSource:103008:65: note: passing argument to parameter 'verts' here
KernelGlobals *kg, int object, int prim, float time, float3 verts[3])
^
/tmp/comgr-b4b747/input/CompileSource:103448:84: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_verts_for_step(kg, tri_vindex, offset, numverts, numsteps, step, verts);
^~~~~
/tmp/comgr-b4b747/input/CompileSource:102959:62: note: passing argument to parameter 'verts' here
float3 verts[3])
^
/tmp/comgr-b4b747/input/CompileSource:103449:88: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_verts_for_step(kg, tri_vindex, offset, numverts, numsteps, step + 1, next_verts);
^~~~~~~~~~
/tmp/comgr-b4b747/input/CompileSource:102959:62: note: passing argument to parameter 'verts' here
float3 verts[3])
^
/tmp/comgr-b4b747/input/CompileSource:103462:56: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
sd->P = motion_triangle_refine(kg, sd, isect, ray, verts);
^~~~~
/tmp/comgr-b4b747/input/CompileSource:103113:90: note: passing argument to parameter 'verts' here
KernelGlobals *kg, ShaderData *sd, const Intersection *isect, const Ray *ray, float3 verts[3])
^
/tmp/comgr-b4b747/input/CompileSource:103487:88: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_normals_for_step(kg, tri_vindex, offset, numverts, numsteps, step, normals);
^~~~~~~
/tmp/comgr-b4b747/input/CompileSource:102986:64: note: passing argument to parameter 'normals' here
float3 normals[3])
^
/tmp/comgr-b4b747/input/CompileSource:103489:63: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
kg, tri_vindex, offset, numverts, numsteps, step + 1, next_normals);
^~~~~~~~~~~~
/tmp/comgr-b4b747/input/CompileSource:102986:64: note: passing argument to parameter 'normals' here
float3 normals[3])
^
/tmp/comgr-b4b747/input/CompileSource:126772:42: error: passing 'float *' to parameter of type 'float *' changes address space of pointer
dist);
^~~~
/tmp/comgr-b4b747/input/CompileSource:125427:61: note: passing argument to parameter 'dist' here
float dist[2])
^
/tmp/comgr-b4b747/input/CompileSource:128123:42: error: passing 'float *' to parameter of type 'float *' changes address space of pointer
dist);
^~~~
/tmp/comgr-b4b747/input/CompileSource:125427:61: note: passing argument to parameter 'dist' here
float dist[2])
^
/tmp/comgr-b4b747/input/CompileSource:139172:40: error: passing 'float *' to parameter of type 'float *' changes address space of pointer
dist);
^~~~
/tmp/comgr-b4b747/input/CompileSource:125427:61: note: passing argument to parameter 'dist' here
float dist[2])
^
/tmp/comgr-b4b747/input/CompileSource:140702:40: error: passing 'float *' to parameter of type 'float *' changes address space of pointer
dist);
^~~~
/tmp/comgr-b4b747/input/CompileSource:125427:61: note: passing argument to parameter 'dist' here
float dist[2])
^
/tmp/comgr-b4b747/input/CompileSource:171650:39: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_vertices(kg, sd->prim, Co);
^~
/tmp/comgr-b4b747/input/CompileSource:101302:78: note: passing argument to parameter 'P' here
ccl_device_inline void triangle_vertices(KernelGlobals *kg, int prim, float3 P[3])
^
/tmp/comgr-b4b747/input/CompileSource:171652:68: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_vertices(kg, sd->object, sd->prim, sd->time, Co);
^~
/tmp/comgr-b4b747/input/CompileSource:103008:65: note: passing argument to parameter 'verts' here
KernelGlobals *kg, int object, int prim, float time, float3 verts[3])
^
/tmp/comgr-b4b747/input/CompileSource:179710:87: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
bool has_motion = triangle_world_space_vertices(kg, sd->object, sd->prim, sd->time, V);
^
/tmp/comgr-b4b747/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-b4b747/input/CompileSource:179744:72: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_world_space_vertices(kg, sd->object, sd->prim, -1.0f, V);
^
/tmp/comgr-b4b747/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-b4b747/input/CompileSource:179764:70: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_world_space_vertices(kg, sd->object, sd->prim, -1.0f, V);
^
/tmp/comgr-b4b747/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-b4b747/input/CompileSource:179786:75: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
bool has_motion = triangle_world_space_vertices(kg, object, prim, time, V);
^
/tmp/comgr-b4b747/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-b4b747/input/CompileSource:179900:64: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_world_space_vertices(kg, object, prim, -1.0f, V);
^
/tmp/comgr-b4b747/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-b4b747/input/CompileSource:179922:62: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_world_space_vertices(kg, object, prim, -1.0f, V);
^
/tmp/comgr-b4b747/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
32 errors generated.
Error: Failed to compile opencl source (from CL or HIP source to LLVM IR).
OpenCL build failed with error CL_BUILD_PROGRAM_FAILURE, errors in console.
OpenCL program split_shadow_blocked_ao build output: /tmp/comgr-8da079/input/CompileSource:101715:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-8da079/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-8da079/input/CompileSource:101744:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-8da079/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-8da079/input/CompileSource:101747:44: error: passing 'int *' to parameter of type 'int *' changes address space of pointer
subd_triangle_patch_corners(kg, patch, corners);
^~~~~~~
/tmp/comgr-8da079/input/CompileSource:101623:86: note: passing argument to parameter 'corners' here
ccl_device_inline void subd_triangle_patch_corners(KernelGlobals *kg, int patch, int corners[4])
^
/tmp/comgr-8da079/input/CompileSource:101848:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-8da079/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-8da079/input/CompileSource:101877:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-8da079/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-8da079/input/CompileSource:101880:44: error: passing 'int *' to parameter of type 'int *' changes address space of pointer
subd_triangle_patch_corners(kg, patch, corners);
^~~~~~~
/tmp/comgr-8da079/input/CompileSource:101623:86: note: passing argument to parameter 'corners' here
ccl_device_inline void subd_triangle_patch_corners(KernelGlobals *kg, int patch, int corners[4])
^
/tmp/comgr-8da079/input/CompileSource:101982:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-8da079/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-8da079/input/CompileSource:102011:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-8da079/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-8da079/input/CompileSource:102014:44: error: passing 'int *' to parameter of type 'int *' changes address space of pointer
subd_triangle_patch_corners(kg, patch, corners);
^~~~~~~
/tmp/comgr-8da079/input/CompileSource:101623:86: note: passing argument to parameter 'corners' here
ccl_device_inline void subd_triangle_patch_corners(KernelGlobals *kg, int patch, int corners[4])
^
/tmp/comgr-8da079/input/CompileSource:102107:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-8da079/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-8da079/input/CompileSource:102110:44: error: passing 'int *' to parameter of type 'int *' changes address space of pointer
subd_triangle_patch_corners(kg, patch, corners);
^~~~~~~
/tmp/comgr-8da079/input/CompileSource:101623:86: note: passing argument to parameter 'corners' here
ccl_device_inline void subd_triangle_patch_corners(KernelGlobals *kg, int patch, int corners[4])
^
/tmp/comgr-8da079/input/CompileSource:103029:88: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_verts_for_step(kg, tri_vindex, offset, numverts, numsteps, step + 1, next_verts);
^~~~~~~~~~
/tmp/comgr-8da079/input/CompileSource:102959:62: note: passing argument to parameter 'verts' here
float3 verts[3])
^
/tmp/comgr-8da079/input/CompileSource:103058:86: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_normals_for_step(kg, tri_vindex, offset, numverts, numsteps, step, normals);
^~~~~~~
/tmp/comgr-8da079/input/CompileSource:102986:64: note: passing argument to parameter 'normals' here
float3 normals[3])
^
/tmp/comgr-8da079/input/CompileSource:103060:61: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
kg, tri_vindex, offset, numverts, numsteps, step + 1, next_normals);
^~~~~~~~~~~~
/tmp/comgr-8da079/input/CompileSource:102986:64: note: passing argument to parameter 'normals' here
float3 normals[3])
^
/tmp/comgr-8da079/input/CompileSource:103249:53: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_vertices(kg, fobject, prim, time, verts);
^~~~~
/tmp/comgr-8da079/input/CompileSource:103008:65: note: passing argument to parameter 'verts' here
KernelGlobals *kg, int object, int prim, float time, float3 verts[3])
^
/tmp/comgr-8da079/input/CompileSource:103448:84: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_verts_for_step(kg, tri_vindex, offset, numverts, numsteps, step, verts);
^~~~~
/tmp/comgr-8da079/input/CompileSource:102959:62: note: passing argument to parameter 'verts' here
float3 verts[3])
^
/tmp/comgr-8da079/input/CompileSource:103449:88: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_verts_for_step(kg, tri_vindex, offset, numverts, numsteps, step + 1, next_verts);
^~~~~~~~~~
/tmp/comgr-8da079/input/CompileSource:102959:62: note: passing argument to parameter 'verts' here
float3 verts[3])
^
/tmp/comgr-8da079/input/CompileSource:103462:56: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
sd->P = motion_triangle_refine(kg, sd, isect, ray, verts);
^~~~~
/tmp/comgr-8da079/input/CompileSource:103113:90: note: passing argument to parameter 'verts' here
KernelGlobals *kg, ShaderData *sd, const Intersection *isect, const Ray *ray, float3 verts[3])
^
/tmp/comgr-8da079/input/CompileSource:103487:88: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_normals_for_step(kg, tri_vindex, offset, numverts, numsteps, step, normals);
^~~~~~~
/tmp/comgr-8da079/input/CompileSource:102986:64: note: passing argument to parameter 'normals' here
float3 normals[3])
^
/tmp/comgr-8da079/input/CompileSource:103489:63: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
kg, tri_vindex, offset, numverts, numsteps, step + 1, next_normals);
^~~~~~~~~~~~
/tmp/comgr-8da079/input/CompileSource:102986:64: note: passing argument to parameter 'normals' here
float3 normals[3])
^
/tmp/comgr-8da079/input/CompileSource:126772:42: error: passing 'float *' to parameter of type 'float *' changes address space of pointer
dist);
^~~~
/tmp/comgr-8da079/input/CompileSource:125427:61: note: passing argument to parameter 'dist' here
float dist[2])
^
/tmp/comgr-8da079/input/CompileSource:128123:42: error: passing 'float *' to parameter of type 'float *' changes address space of pointer
dist);
^~~~
/tmp/comgr-8da079/input/CompileSource:125427:61: note: passing argument to parameter 'dist' here
float dist[2])
^
/tmp/comgr-8da079/input/CompileSource:139172:40: error: passing 'float *' to parameter of type 'float *' changes address space of pointer
dist);
^~~~
/tmp/comgr-8da079/input/CompileSource:125427:61: note: passing argument to parameter 'dist' here
float dist[2])
^
/tmp/comgr-8da079/input/CompileSource:140702:40: error: passing 'float *' to parameter of type 'float *' changes address space of pointer
dist);
^~~~
/tmp/comgr-8da079/input/CompileSource:125427:61: note: passing argument to parameter 'dist' here
float dist[2])
^
/tmp/comgr-8da079/input/CompileSource:171650:39: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_vertices(kg, sd->prim, Co);
^~
/tmp/comgr-8da079/input/CompileSource:101302:78: note: passing argument to parameter 'P' here
ccl_device_inline void triangle_vertices(KernelGlobals *kg, int prim, float3 P[3])
^
/tmp/comgr-8da079/input/CompileSource:171652:68: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_vertices(kg, sd->object, sd->prim, sd->time, Co);
^~
/tmp/comgr-8da079/input/CompileSource:103008:65: note: passing argument to parameter 'verts' here
KernelGlobals *kg, int object, int prim, float time, float3 verts[3])
^
/tmp/comgr-8da079/input/CompileSource:179710:87: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
bool has_motion = triangle_world_space_vertices(kg, sd->object, sd->prim, sd->time, V);
^
/tmp/comgr-8da079/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-8da079/input/CompileSource:179744:72: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_world_space_vertices(kg, sd->object, sd->prim, -1.0f, V);
^
/tmp/comgr-8da079/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-8da079/input/CompileSource:179764:70: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_world_space_vertices(kg, sd->object, sd->prim, -1.0f, V);
^
/tmp/comgr-8da079/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-8da079/input/CompileSource:179786:75: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
bool has_motion = triangle_world_space_vertices(kg, object, prim, time, V);
^
/tmp/comgr-8da079/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-8da079/input/CompileSource:179900:64: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_world_space_vertices(kg, object, prim, -1.0f, V);
^
/tmp/comgr-8da079/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-8da079/input/CompileSource:179922:62: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_world_space_vertices(kg, object, prim, -1.0f, V);
^
/tmp/comgr-8da079/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
32 errors generated.
Error: Failed to compile opencl source (from CL or HIP source to LLVM IR).
OpenCL build failed with error CL_BUILD_PROGRAM_FAILURE, errors in console.
OpenCL program split_indirect_background build output: /tmp/comgr-5df02a/input/CompileSource:101715:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-5df02a/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-5df02a/input/CompileSource:101744:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-5df02a/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-5df02a/input/CompileSource:101747:44: error: passing 'int *' to parameter of type 'int *' changes address space of pointer
subd_triangle_patch_corners(kg, patch, corners);
^~~~~~~
/tmp/comgr-5df02a/input/CompileSource:101623:86: note: passing argument to parameter 'corners' here
ccl_device_inline void subd_triangle_patch_corners(KernelGlobals *kg, int patch, int corners[4])
^
/tmp/comgr-5df02a/input/CompileSource:101848:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-5df02a/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-5df02a/input/CompileSource:101877:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-5df02a/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-5df02a/input/CompileSource:101880:44: error: passing 'int *' to parameter of type 'int *' changes address space of pointer
subd_triangle_patch_corners(kg, patch, corners);
^~~~~~~
/tmp/comgr-5df02a/input/CompileSource:101623:86: note: passing argument to parameter 'corners' here
ccl_device_inline void subd_triangle_patch_corners(KernelGlobals *kg, int patch, int corners[4])
^
/tmp/comgr-5df02a/input/CompileSource:101982:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-5df02a/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-5df02a/input/CompileSource:102011:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-5df02a/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-5df02a/input/CompileSource:102014:44: error: passing 'int *' to parameter of type 'int *' changes address space of pointer
subd_triangle_patch_corners(kg, patch, corners);
^~~~~~~
/tmp/comgr-5df02a/input/CompileSource:101623:86: note: passing argument to parameter 'corners' here
ccl_device_inline void subd_triangle_patch_corners(KernelGlobals *kg, int patch, int corners[4])
^
/tmp/comgr-5df02a/input/CompileSource:102107:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-5df02a/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-5df02a/input/CompileSource:102110:44: error: passing 'int *' to parameter of type 'int *' changes address space of pointer
subd_triangle_patch_corners(kg, patch, corners);
^~~~~~~
/tmp/comgr-5df02a/input/CompileSource:101623:86: note: passing argument to parameter 'corners' here
ccl_device_inline void subd_triangle_patch_corners(KernelGlobals *kg, int patch, int corners[4])
^
/tmp/comgr-5df02a/input/CompileSource:103029:88: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_verts_for_step(kg, tri_vindex, offset, numverts, numsteps, step + 1, next_verts);
^~~~~~~~~~
/tmp/comgr-5df02a/input/CompileSource:102959:62: note: passing argument to parameter 'verts' here
float3 verts[3])
^
/tmp/comgr-5df02a/input/CompileSource:103058:86: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_normals_for_step(kg, tri_vindex, offset, numverts, numsteps, step, normals);
^~~~~~~
/tmp/comgr-5df02a/input/CompileSource:102986:64: note: passing argument to parameter 'normals' here
float3 normals[3])
^
/tmp/comgr-5df02a/input/CompileSource:103060:61: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
kg, tri_vindex, offset, numverts, numsteps, step + 1, next_normals);
^~~~~~~~~~~~
/tmp/comgr-5df02a/input/CompileSource:102986:64: note: passing argument to parameter 'normals' here
float3 normals[3])
^
/tmp/comgr-5df02a/input/CompileSource:103249:53: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_vertices(kg, fobject, prim, time, verts);
^~~~~
/tmp/comgr-5df02a/input/CompileSource:103008:65: note: passing argument to parameter 'verts' here
KernelGlobals *kg, int object, int prim, float time, float3 verts[3])
^
/tmp/comgr-5df02a/input/CompileSource:103448:84: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_verts_for_step(kg, tri_vindex, offset, numverts, numsteps, step, verts);
^~~~~
/tmp/comgr-5df02a/input/CompileSource:102959:62: note: passing argument to parameter 'verts' here
float3 verts[3])
^
/tmp/comgr-5df02a/input/CompileSource:103449:88: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_verts_for_step(kg, tri_vindex, offset, numverts, numsteps, step + 1, next_verts);
^~~~~~~~~~
/tmp/comgr-5df02a/input/CompileSource:102959:62: note: passing argument to parameter 'verts' here
float3 verts[3])
^
/tmp/comgr-5df02a/input/CompileSource:103462:56: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
sd->P = motion_triangle_refine(kg, sd, isect, ray, verts);
^~~~~
/tmp/comgr-5df02a/input/CompileSource:103113:90: note: passing argument to parameter 'verts' here
KernelGlobals *kg, ShaderData *sd, const Intersection *isect, const Ray *ray, float3 verts[3])
^
/tmp/comgr-5df02a/input/CompileSource:103487:88: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_normals_for_step(kg, tri_vindex, offset, numverts, numsteps, step, normals);
^~~~~~~
/tmp/comgr-5df02a/input/CompileSource:102986:64: note: passing argument to parameter 'normals' here
float3 normals[3])
^
/tmp/comgr-5df02a/input/CompileSource:103489:63: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
kg, tri_vindex, offset, numverts, numsteps, step + 1, next_normals);
^~~~~~~~~~~~
/tmp/comgr-5df02a/input/CompileSource:102986:64: note: passing argument to parameter 'normals' here
float3 normals[3])
^
/tmp/comgr-5df02a/input/CompileSource:126772:42: error: passing 'float *' to parameter of type 'float *' changes address space of pointer
dist);
^~~~
/tmp/comgr-5df02a/input/CompileSource:125427:61: note: passing argument to parameter 'dist' here
float dist[2])
^
/tmp/comgr-5df02a/input/CompileSource:128123:42: error: passing 'float *' to parameter of type 'float *' changes address space of pointer
dist);
^~~~
/tmp/comgr-5df02a/input/CompileSource:125427:61: note: passing argument to parameter 'dist' here
float dist[2])
^
/tmp/comgr-5df02a/input/CompileSource:139172:40: error: passing 'float *' to parameter of type 'float *' changes address space of pointer
dist);
^~~~
/tmp/comgr-5df02a/input/CompileSource:125427:61: note: passing argument to parameter 'dist' here
float dist[2])
^
/tmp/comgr-5df02a/input/CompileSource:140702:40: error: passing 'float *' to parameter of type 'float *' changes address space of pointer
dist);
^~~~
/tmp/comgr-5df02a/input/CompileSource:125427:61: note: passing argument to parameter 'dist' here
float dist[2])
^
/tmp/comgr-5df02a/input/CompileSource:171650:39: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_vertices(kg, sd->prim, Co);
^~
/tmp/comgr-5df02a/input/CompileSource:101302:78: note: passing argument to parameter 'P' here
ccl_device_inline void triangle_vertices(KernelGlobals *kg, int prim, float3 P[3])
^
/tmp/comgr-5df02a/input/CompileSource:171652:68: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_vertices(kg, sd->object, sd->prim, sd->time, Co);
^~
/tmp/comgr-5df02a/input/CompileSource:103008:65: note: passing argument to parameter 'verts' here
KernelGlobals *kg, int object, int prim, float time, float3 verts[3])
^
/tmp/comgr-5df02a/input/CompileSource:179710:87: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
bool has_motion = triangle_world_space_vertices(kg, sd->object, sd->prim, sd->time, V);
^
/tmp/comgr-5df02a/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-5df02a/input/CompileSource:179744:72: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_world_space_vertices(kg, sd->object, sd->prim, -1.0f, V);
^
/tmp/comgr-5df02a/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-5df02a/input/CompileSource:179764:70: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_world_space_vertices(kg, sd->object, sd->prim, -1.0f, V);
^
/tmp/comgr-5df02a/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-5df02a/input/CompileSource:179786:75: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
bool has_motion = triangle_world_space_vertices(kg, object, prim, time, V);
^
/tmp/comgr-5df02a/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-5df02a/input/CompileSource:179900:64: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_world_space_vertices(kg, object, prim, -1.0f, V);
^
/tmp/comgr-5df02a/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-5df02a/input/CompileSource:179922:62: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_world_space_vertices(kg, object, prim, -1.0f, V);
^
/tmp/comgr-5df02a/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
32 errors generated.
Error: Failed to compile opencl source (from CL or HIP source to LLVM IR).
OpenCL build failed with error CL_BUILD_PROGRAM_FAILURE, errors in console.
OpenCL program split_shadow_blocked_dl build output: /tmp/comgr-3fabc4/input/CompileSource:101715:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-3fabc4/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-3fabc4/input/CompileSource:101744:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-3fabc4/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-3fabc4/input/CompileSource:101747:44: error: passing 'int *' to parameter of type 'int *' changes address space of pointer
subd_triangle_patch_corners(kg, patch, corners);
^~~~~~~
/tmp/comgr-3fabc4/input/CompileSource:101623:86: note: passing argument to parameter 'corners' here
ccl_device_inline void subd_triangle_patch_corners(KernelGlobals *kg, int patch, int corners[4])
^
/tmp/comgr-3fabc4/input/CompileSource:101848:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-3fabc4/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-3fabc4/input/CompileSource:101877:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-3fabc4/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-3fabc4/input/CompileSource:101880:44: error: passing 'int *' to parameter of type 'int *' changes address space of pointer
subd_triangle_patch_corners(kg, patch, corners);
^~~~~~~
/tmp/comgr-3fabc4/input/CompileSource:101623:86: note: passing argument to parameter 'corners' here
ccl_device_inline void subd_triangle_patch_corners(KernelGlobals *kg, int patch, int corners[4])
^
/tmp/comgr-3fabc4/input/CompileSource:101982:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-3fabc4/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-3fabc4/input/CompileSource:102011:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-3fabc4/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-3fabc4/input/CompileSource:102014:44: error: passing 'int *' to parameter of type 'int *' changes address space of pointer
subd_triangle_patch_corners(kg, patch, corners);
^~~~~~~
/tmp/comgr-3fabc4/input/CompileSource:101623:86: note: passing argument to parameter 'corners' here
ccl_device_inline void subd_triangle_patch_corners(KernelGlobals *kg, int patch, int corners[4])
^
/tmp/comgr-3fabc4/input/CompileSource:102107:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-3fabc4/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-3fabc4/input/CompileSource:102110:44: error: passing 'int *' to parameter of type 'int *' changes address space of pointer
subd_triangle_patch_corners(kg, patch, corners);
^~~~~~~
/tmp/comgr-3fabc4/input/CompileSource:101623:86: note: passing argument to parameter 'corners' here
ccl_device_inline void subd_triangle_patch_corners(KernelGlobals *kg, int patch, int corners[4])
^
/tmp/comgr-3fabc4/input/CompileSource:103029:88: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_verts_for_step(kg, tri_vindex, offset, numverts, numsteps, step + 1, next_verts);
^~~~~~~~~~
/tmp/comgr-3fabc4/input/CompileSource:102959:62: note: passing argument to parameter 'verts' here
float3 verts[3])
^
/tmp/comgr-3fabc4/input/CompileSource:103058:86: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_normals_for_step(kg, tri_vindex, offset, numverts, numsteps, step, normals);
^~~~~~~
/tmp/comgr-3fabc4/input/CompileSource:102986:64: note: passing argument to parameter 'normals' here
float3 normals[3])
^
/tmp/comgr-3fabc4/input/CompileSource:103060:61: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
kg, tri_vindex, offset, numverts, numsteps, step + 1, next_normals);
^~~~~~~~~~~~
/tmp/comgr-3fabc4/input/CompileSource:102986:64: note: passing argument to parameter 'normals' here
float3 normals[3])
^
/tmp/comgr-3fabc4/input/CompileSource:103249:53: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_vertices(kg, fobject, prim, time, verts);
^~~~~
/tmp/comgr-3fabc4/input/CompileSource:103008:65: note: passing argument to parameter 'verts' here
KernelGlobals *kg, int object, int prim, float time, float3 verts[3])
^
/tmp/comgr-3fabc4/input/CompileSource:103448:84: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_verts_for_step(kg, tri_vindex, offset, numverts, numsteps, step, verts);
^~~~~
/tmp/comgr-3fabc4/input/CompileSource:102959:62: note: passing argument to parameter 'verts' here
float3 verts[3])
^
/tmp/comgr-3fabc4/input/CompileSource:103449:88: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_verts_for_step(kg, tri_vindex, offset, numverts, numsteps, step + 1, next_verts);
^~~~~~~~~~
/tmp/comgr-3fabc4/input/CompileSource:102959:62: note: passing argument to parameter 'verts' here
float3 verts[3])
^
/tmp/comgr-3fabc4/input/CompileSource:103462:56: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
sd->P = motion_triangle_refine(kg, sd, isect, ray, verts);
^~~~~
/tmp/comgr-3fabc4/input/CompileSource:103113:90: note: passing argument to parameter 'verts' here
KernelGlobals *kg, ShaderData *sd, const Intersection *isect, const Ray *ray, float3 verts[3])
^
/tmp/comgr-3fabc4/input/CompileSource:103487:88: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_normals_for_step(kg, tri_vindex, offset, numverts, numsteps, step, normals);
^~~~~~~
/tmp/comgr-3fabc4/input/CompileSource:102986:64: note: passing argument to parameter 'normals' here
float3 normals[3])
^
/tmp/comgr-3fabc4/input/CompileSource:103489:63: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
kg, tri_vindex, offset, numverts, numsteps, step + 1, next_normals);
^~~~~~~~~~~~
/tmp/comgr-3fabc4/input/CompileSource:102986:64: note: passing argument to parameter 'normals' here
float3 normals[3])
^
/tmp/comgr-3fabc4/input/CompileSource:126772:42: error: passing 'float *' to parameter of type 'float *' changes address space of pointer
dist);
^~~~
/tmp/comgr-3fabc4/input/CompileSource:125427:61: note: passing argument to parameter 'dist' here
float dist[2])
^
/tmp/comgr-3fabc4/input/CompileSource:128123:42: error: passing 'float *' to parameter of type 'float *' changes address space of pointer
dist);
^~~~
/tmp/comgr-3fabc4/input/CompileSource:125427:61: note: passing argument to parameter 'dist' here
float dist[2])
^
/tmp/comgr-3fabc4/input/CompileSource:139172:40: error: passing 'float *' to parameter of type 'float *' changes address space of pointer
dist);
^~~~
/tmp/comgr-3fabc4/input/CompileSource:125427:61: note: passing argument to parameter 'dist' here
float dist[2])
^
/tmp/comgr-3fabc4/input/CompileSource:140702:40: error: passing 'float *' to parameter of type 'float *' changes address space of pointer
dist);
^~~~
/tmp/comgr-3fabc4/input/CompileSource:125427:61: note: passing argument to parameter 'dist' here
float dist[2])
^
/tmp/comgr-3fabc4/input/CompileSource:171650:39: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_vertices(kg, sd->prim, Co);
^~
/tmp/comgr-3fabc4/input/CompileSource:101302:78: note: passing argument to parameter 'P' here
ccl_device_inline void triangle_vertices(KernelGlobals *kg, int prim, float3 P[3])
^
/tmp/comgr-3fabc4/input/CompileSource:171652:68: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_vertices(kg, sd->object, sd->prim, sd->time, Co);
^~
/tmp/comgr-3fabc4/input/CompileSource:103008:65: note: passing argument to parameter 'verts' here
KernelGlobals *kg, int object, int prim, float time, float3 verts[3])
^
/tmp/comgr-3fabc4/input/CompileSource:179710:87: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
bool has_motion = triangle_world_space_vertices(kg, sd->object, sd->prim, sd->time, V);
^
/tmp/comgr-3fabc4/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-3fabc4/input/CompileSource:179744:72: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_world_space_vertices(kg, sd->object, sd->prim, -1.0f, V);
^
/tmp/comgr-3fabc4/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-3fabc4/input/CompileSource:179764:70: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_world_space_vertices(kg, sd->object, sd->prim, -1.0f, V);
^
/tmp/comgr-3fabc4/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-3fabc4/input/CompileSource:179786:75: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
bool has_motion = triangle_world_space_vertices(kg, object, prim, time, V);
^
/tmp/comgr-3fabc4/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-3fabc4/input/CompileSource:179900:64: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_world_space_vertices(kg, object, prim, -1.0f, V);
^
/tmp/comgr-3fabc4/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-3fabc4/input/CompileSource:179922:62: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_world_space_vertices(kg, object, prim, -1.0f, V);
^
/tmp/comgr-3fabc4/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
32 errors generated.
Error: Failed to compile opencl source (from CL or HIP source to LLVM IR).
OpenCL build failed with error CL_BUILD_PROGRAM_FAILURE, errors in console.
OpenCL program split_direct_lighting build output: /tmp/comgr-3bb89a/input/CompileSource:101715:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-3bb89a/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-3bb89a/input/CompileSource:101744:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-3bb89a/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-3bb89a/input/CompileSource:101747:44: error: passing 'int *' to parameter of type 'int *' changes address space of pointer
subd_triangle_patch_corners(kg, patch, corners);
^~~~~~~
/tmp/comgr-3bb89a/input/CompileSource:101623:86: note: passing argument to parameter 'corners' here
ccl_device_inline void subd_triangle_patch_corners(KernelGlobals *kg, int patch, int corners[4])
^
/tmp/comgr-3bb89a/input/CompileSource:101848:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-3bb89a/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-3bb89a/input/CompileSource:101877:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-3bb89a/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-3bb89a/input/CompileSource:101880:44: error: passing 'int *' to parameter of type 'int *' changes address space of pointer
subd_triangle_patch_corners(kg, patch, corners);
^~~~~~~
/tmp/comgr-3bb89a/input/CompileSource:101623:86: note: passing argument to parameter 'corners' here
ccl_device_inline void subd_triangle_patch_corners(KernelGlobals *kg, int patch, int corners[4])
^
/tmp/comgr-3bb89a/input/CompileSource:101982:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-3bb89a/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-3bb89a/input/CompileSource:102011:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-3bb89a/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-3bb89a/input/CompileSource:102014:44: error: passing 'int *' to parameter of type 'int *' changes address space of pointer
subd_triangle_patch_corners(kg, patch, corners);
^~~~~~~
/tmp/comgr-3bb89a/input/CompileSource:101623:86: note: passing argument to parameter 'corners' here
ccl_device_inline void subd_triangle_patch_corners(KernelGlobals *kg, int patch, int corners[4])
^
/tmp/comgr-3bb89a/input/CompileSource:102107:36: error: passing 'float2 *' to parameter of type 'float2 *' changes address space of pointer
subd_triangle_patch_uv(kg, sd, uv);
^~
/tmp/comgr-3bb89a/input/CompileSource:101584:54: note: passing argument to parameter 'uv' here
float2 uv[3])
^
/tmp/comgr-3bb89a/input/CompileSource:102110:44: error: passing 'int *' to parameter of type 'int *' changes address space of pointer
subd_triangle_patch_corners(kg, patch, corners);
^~~~~~~
/tmp/comgr-3bb89a/input/CompileSource:101623:86: note: passing argument to parameter 'corners' here
ccl_device_inline void subd_triangle_patch_corners(KernelGlobals *kg, int patch, int corners[4])
^
/tmp/comgr-3bb89a/input/CompileSource:103029:88: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_verts_for_step(kg, tri_vindex, offset, numverts, numsteps, step + 1, next_verts);
^~~~~~~~~~
/tmp/comgr-3bb89a/input/CompileSource:102959:62: note: passing argument to parameter 'verts' here
float3 verts[3])
^
/tmp/comgr-3bb89a/input/CompileSource:103058:86: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_normals_for_step(kg, tri_vindex, offset, numverts, numsteps, step, normals);
^~~~~~~
/tmp/comgr-3bb89a/input/CompileSource:102986:64: note: passing argument to parameter 'normals' here
float3 normals[3])
^
/tmp/comgr-3bb89a/input/CompileSource:103060:61: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
kg, tri_vindex, offset, numverts, numsteps, step + 1, next_normals);
^~~~~~~~~~~~
/tmp/comgr-3bb89a/input/CompileSource:102986:64: note: passing argument to parameter 'normals' here
float3 normals[3])
^
/tmp/comgr-3bb89a/input/CompileSource:103249:53: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_vertices(kg, fobject, prim, time, verts);
^~~~~
/tmp/comgr-3bb89a/input/CompileSource:103008:65: note: passing argument to parameter 'verts' here
KernelGlobals *kg, int object, int prim, float time, float3 verts[3])
^
/tmp/comgr-3bb89a/input/CompileSource:103448:84: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_verts_for_step(kg, tri_vindex, offset, numverts, numsteps, step, verts);
^~~~~
/tmp/comgr-3bb89a/input/CompileSource:102959:62: note: passing argument to parameter 'verts' here
float3 verts[3])
^
/tmp/comgr-3bb89a/input/CompileSource:103449:88: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_verts_for_step(kg, tri_vindex, offset, numverts, numsteps, step + 1, next_verts);
^~~~~~~~~~
/tmp/comgr-3bb89a/input/CompileSource:102959:62: note: passing argument to parameter 'verts' here
float3 verts[3])
^
/tmp/comgr-3bb89a/input/CompileSource:103462:56: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
sd->P = motion_triangle_refine(kg, sd, isect, ray, verts);
^~~~~
/tmp/comgr-3bb89a/input/CompileSource:103113:90: note: passing argument to parameter 'verts' here
KernelGlobals *kg, ShaderData *sd, const Intersection *isect, const Ray *ray, float3 verts[3])
^
/tmp/comgr-3bb89a/input/CompileSource:103487:88: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_normals_for_step(kg, tri_vindex, offset, numverts, numsteps, step, normals);
^~~~~~~
/tmp/comgr-3bb89a/input/CompileSource:102986:64: note: passing argument to parameter 'normals' here
float3 normals[3])
^
/tmp/comgr-3bb89a/input/CompileSource:103489:63: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
kg, tri_vindex, offset, numverts, numsteps, step + 1, next_normals);
^~~~~~~~~~~~
/tmp/comgr-3bb89a/input/CompileSource:102986:64: note: passing argument to parameter 'normals' here
float3 normals[3])
^
/tmp/comgr-3bb89a/input/CompileSource:126772:42: error: passing 'float *' to parameter of type 'float *' changes address space of pointer
dist);
^~~~
/tmp/comgr-3bb89a/input/CompileSource:125427:61: note: passing argument to parameter 'dist' here
float dist[2])
^
/tmp/comgr-3bb89a/input/CompileSource:128123:42: error: passing 'float *' to parameter of type 'float *' changes address space of pointer
dist);
^~~~
/tmp/comgr-3bb89a/input/CompileSource:125427:61: note: passing argument to parameter 'dist' here
float dist[2])
^
/tmp/comgr-3bb89a/input/CompileSource:139172:40: error: passing 'float *' to parameter of type 'float *' changes address space of pointer
dist);
^~~~
/tmp/comgr-3bb89a/input/CompileSource:125427:61: note: passing argument to parameter 'dist' here
float dist[2])
^
/tmp/comgr-3bb89a/input/CompileSource:140702:40: error: passing 'float *' to parameter of type 'float *' changes address space of pointer
dist);
^~~~
/tmp/comgr-3bb89a/input/CompileSource:125427:61: note: passing argument to parameter 'dist' here
float dist[2])
^
/tmp/comgr-3bb89a/input/CompileSource:171650:39: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_vertices(kg, sd->prim, Co);
^~
/tmp/comgr-3bb89a/input/CompileSource:101302:78: note: passing argument to parameter 'P' here
ccl_device_inline void triangle_vertices(KernelGlobals *kg, int prim, float3 P[3])
^
/tmp/comgr-3bb89a/input/CompileSource:171652:68: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
motion_triangle_vertices(kg, sd->object, sd->prim, sd->time, Co);
^~
/tmp/comgr-3bb89a/input/CompileSource:103008:65: note: passing argument to parameter 'verts' here
KernelGlobals *kg, int object, int prim, float time, float3 verts[3])
^
/tmp/comgr-3bb89a/input/CompileSource:179710:87: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
bool has_motion = triangle_world_space_vertices(kg, sd->object, sd->prim, sd->time, V);
^
/tmp/comgr-3bb89a/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-3bb89a/input/CompileSource:179744:72: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_world_space_vertices(kg, sd->object, sd->prim, -1.0f, V);
^
/tmp/comgr-3bb89a/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-3bb89a/input/CompileSource:179764:70: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_world_space_vertices(kg, sd->object, sd->prim, -1.0f, V);
^
/tmp/comgr-3bb89a/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-3bb89a/input/CompileSource:179786:75: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
bool has_motion = triangle_world_space_vertices(kg, object, prim, time, V);
^
/tmp/comgr-3bb89a/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-3bb89a/input/CompileSource:179900:64: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_world_space_vertices(kg, object, prim, -1.0f, V);
^
/tmp/comgr-3bb89a/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
/tmp/comgr-3bb89a/input/CompileSource:179922:62: error: passing 'float3 *' to parameter of type 'float3 *' changes address space of pointer
triangle_world_space_vertices(kg, object, prim, -1.0f, V);
^
/tmp/comgr-3bb89a/input/CompileSource:179659:65: note: passing argument to parameter 'V' here
KernelGlobals *kg, int object, int prim, float time, float3 V[3])
^
32 errors generated.
Error: Failed to compile opencl source (from CL or HIP source to LLVM IR).
Split kernel error: failed to load kernel_path_init
Error: Split kernel error: failed to load kernel_path_init
Saved session recovery to '/tmp/quit.blend'
Blender quit