SDK 2.5 Bug : access violation

Discussion created by spectral on Sep 8, 2011
Latest reply on Sep 14, 2011 by himanshu.gautam


I have some OpenCL code (works on other platforms) but crash with AMD SDK.

It seems that it does an access violation when accessing "shaderParams->params.matte.Kd". in line 9 !

But it print the correct value (1.f). If I remove the line 9 there is no problem !

It looks like a Bug in the SDK (I work on the CPU).



clReflectance shader_matte2(clScene* scene, ShaderGlobalParameters* globals, ShaderParameters* shaderParams, NextEventPath* nextEventPath) { clReflectance f; ClosureParameters p_21; p_21.params.diffuse.N = globals->N; printf("%f\n", shaderParams->params.matte.Kd); f = Integrator(scene, globals, 0, &p_21, nextEventPath)*shaderParams->params.matte.Cs; //f *= shaderParams->params.matte.Kd; return f; }