Bugfix [#30835]: Cycles doesn't work with AMD Juniper GPU, compiller throws errors. Thanks for reporting!

Problem: AMD does not like something like this.
float3 *a;
flaot b = a->x;

You need to circumvent this by using:
float3 *a;
float b = (*a).x;
This commit is contained in:
Daniel Genrich
2012-04-09 15:31:31 +00:00
parent 25492d1e4c
commit 2e08b763c5

View File

@@ -296,7 +296,7 @@ __device_inline float3 path_radiance_sum(PathRadiance *L)
__device_inline void path_radiance_clamp(PathRadiance *L, float3 *L_sum, float clamp)
{
float sum = fabsf(L_sum->x) + fabsf(L_sum->y) + fabsf(L_sum->z);
float sum = fabsf((*L_sum).x) + fabsf((*L_sum).y) + fabsf((*L_sum).z);
if(!isfinite(sum)) {
/* invalid value, reject */