-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/31/2012 12:47 PM, Ulrich Pegelow wrote:
> Am 30.10.2012 22:13, schrieb Jens Fendler: If you are anyhow going
> to do some further testing, please also give this one a try:
> 
> __kernel void blendop_mask_RAW (__read_only image2d_t in_a,
> __read_only image2d_t in_b, __write_only image2d_t mask, const int
> width, const int height, const float gopacity, const int blendif,
> global const float *blendif_parameters) { const int x =
> get_global_id(0); const int y = get_global_id(1);
> 
> if(x >= width || y >= height) return;
> 
> float opacity = clamp(gopacity, 0.0f, 1.0f);
> 
> write_imagef(mask, (int2)(x, y), opacity); }
> 
> The clamp() is a no-op here as gopacity will always be within
> [0.0; 1.0]. However, the compiler doesn't know and might be fooled
> to not do its supoosedly bad optimization.

Unfortunately, this one also does not work. Same behaviour as before..

Jens

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlCRM3YACgkQbyTZFOIr/d2zYwCfTWhtkksPzCKGcyZz6znFvFpG
smgAmwenFHdOerWCQZb9YxvFGVc3LoNp
=s7ta
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
darktable-devel mailing list
darktable-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/darktable-devel

Reply via email to