Re: [Mesa-dev] libclc: Improve libclc handling of built-in functions

2013-03-15 Thread Tom Stellard
On Thu, Mar 14, 2013 at 10:01:00PM -0500, Aaron Watry wrote: > This series depends on the one-off patch I just sent to add max(). > > 1) Fix the broken abs_diff integer built-in. > 2) Add clamp for both integer and floating types in a new shared/ dir in order >to reduce code duplication and im

Re: [Mesa-dev] libclc: Improve libclc handling of built-in functions

2013-03-14 Thread Aaron Watry
Note: I have tested all of these with the 32-bit signed integer data type for scalar kernels only... r600g chokes on almost anything else due to a missing vload/vstore implementation and buggy/incomplete handling of char/short/long data types in CL kernels. --Aaron On Thu, Mar 14, 2013 at 10:01

[Mesa-dev] libclc: Improve libclc handling of built-in functions

2013-03-14 Thread Aaron Watry
This series depends on the one-off patch I just sent to add max(). 1) Fix the broken abs_diff integer built-in. 2) Add clamp for both integer and floating types in a new shared/ dir in order to reduce code duplication and improve maintainability. 3) Move the max() function into the shared/ dire