History log of /frameworks/rs/driver/runtime/rs_cl.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ab70dba4e1c76b6b7b6a1001fae3529b11ca6190 13-Feb-2016 Stephen Hines <srhines@google.com> Clean up warnings for RS runtime libraries.

Bug: http://b/27068813

This change turns on -Wno-deprecated for compilation of just the runtime
libraries (since they need to retain even our deprecated definitions).
It also fixes some issues with "endif" comments. I have also enabled
-Werror for the runtime library compilation, so that we don't trigger
any future problems.

Change-Id: I0771e70f5aeb4be17d4390d57dae97a0aaf560a4
(cherry picked from commit f72e74660567181b79673f2a476a6957db2507e5)
/frameworks/rs/driver/runtime/rs_cl.c
f7f9316f4cf373733285f947bea876ead7216715 18-Nov-2015 Verena Beckham <verena@codeplay.com> Add a new libclcore_g library which contains debug info.

Add a new libclcore_g.bc which is functionally equivalent to
libclcore.bc but is compiled with debug information and -O0.
To achieve this some allocation functions had to be written in C,
because they were previously available in LLVM IR without debug
information.
The RenderScript cts has been run to verify these changes, both as it
is and forcing it to link with the new libclcore_g library. Both runs
show no regressions.

Signed-off-by: Verena Beckham <verena@codeplay.com>

(cherry picked from commit fb99e0f905b0f73a505c7900b434531ce7c3e2e5)

Change-Id: I64c82ce6f571e766c3c607e926326040dff8257c
/frameworks/rs/driver/runtime/rs_cl.c
884bc7c83f113a25b82e66ca45b1c6839b97666f 06-Feb-2016 Pirama Arumuga Nainar <pirama@google.com> Implement fract, frexp and modf for half

http://b/23536224

Implementations are based on float32 implementations in
bionic/libm/upstream-bsd.

(cherry picked from commit b32dc1237e7e158bab7d15ab18618c4916e64415)

Change-Id: Ibf927cbab3aa45c7bedbc5ec23c6f31eafe92bd9
/frameworks/rs/driver/runtime/rs_cl.c
f9760483073d9f452e4701fbf367dc518f7e6531 04-Feb-2016 Pirama Arumuga Nainar <pirama@google.com> Implement copysign, ilogb and nextafter for half

http://b/23536224

Implementations are based on float32 implementations in
bionic/libm/upstream-bsd.

Change-Id: Id2f28caae22e86a2cc401996902bf8be93cb9328
/frameworks/rs/driver/runtime/rs_cl.c
e0f52d61fe6790093ef19c734dda2e2c9c0c0fbf 18-Nov-2015 Verena Beckham <verena@codeplay.com> Move scalar function implementations from into driver/runtime.

Move the implementation of all scalar SC_* functions from
rsCpuRuntimeMathFuncs.cpp to driver/runtime/rs_cl.c.
Removed the file rsCpuRuntimeMathFuncs.cpp since it is now empty.

Signed-off-by: Verena Beckham <verena@codeplay.com>
Change-Id: I2c5d063c67ad1d92bcf6b62841ca1fbb5a72bd9c
/frameworks/rs/driver/runtime/rs_cl.c
9cbc99ba45126a6a30ba13fc6d4e75e51ca14ea7 16-Nov-2015 Verena Beckham <verena@codeplay.com> Move implementation of fract(float) into driver/runtime.

Move the implementation of the float variant of fract from rs_math.rsh
into driver/runtime. The old implementation remains in place for older
versions, and the move occurs only for API level >= 24.

Signed-off-by: Verena Beckham <verena@codeplay.com>
Change-Id: Id94e7191604d5ccaee41b6634731ee997bf01983
/frameworks/rs/driver/runtime/rs_cl.c
54cd5d1771ea5c95e181befc66ef8e2a2c1b78cd 10-Dec-2015 Pirama Arumuga Nainar <pirama@google.com> Implement f16 math functions in the runtime

Bug: 23536224
Bug: 26099914

Change-Id: I67cd1d5c8e45822f4ce847d8cff402ba31b03660
/frameworks/rs/driver/runtime/rs_cl.c
a5aafe5bc0ca314e32b574f14482926902adf65c 07-Dec-2015 Pirama Arumuga Nainar <pirama@google.com> Remove dead declarations of smoothstep

There are no references to smoothstep outside of these declarations.
Remove them.

Change-Id: Ia5aff51cd5ff174aef596096ed9dbb8b0a18dba2
/frameworks/rs/driver/runtime/rs_cl.c
dd635b0a5095b1b2dfae0458069d03c6a13c3473 29-Oct-2015 Yong Chen <yong.a.chen@intel.com> X86: Add missing functions for libclcore files

Change-Id: Ia9b70843dfa32acabf8d71ce77e253f8a376c16a
Signed-off-by: Yong Chen <yong.a.chen@intel.com>
/frameworks/rs/driver/runtime/rs_cl.c
a673fb0db28eac2300fcfa04549138c1c9202014 23-Jul-2015 Stephen Hines <srhines@google.com> Ensure that SSE-specific functions get built separately for debug runtime.

Bug: 22530323

The build rules for the debug context don't allow the SSE optimized
versions of some functions to be used. Since we bundle all of these
functions into a single file, this results in the debug runtime missing
some symbols (clamp, length, dot, sqrt). This change ensures that the
debug runtime for x86 gets the generic definitions of these functions
instead of dropping them completely.

Change-Id: Idedfbb5c1badf0b88530a7e926dda6141443ea1f
/frameworks/rs/driver/runtime/rs_cl.c
be2163801c33d6849ae580d42b919b8803d55095 22-Mar-2015 Jean-Luc Brouillet <jeanluc@google.com> Reorganize the header files in a way that's easier to document.

This CL does not change any specification found in a .spec file,
it just reorganizes the distribution of the content.

It also changes a few files that included headers that no longer
exist.

Change-Id: I4a290a30ad3bdc31bac7a7be24e7a7dea2af2618
/frameworks/rs/driver/runtime/rs_cl.c
41371c7c23c4115cf0b3e7dc83240d5bcfb828b3 26-Mar-2015 Jason Sams <jsams@google.com> Revert "Reorganize the header files in a way that's easier to document."

This reverts commit 386e87ecf4114084c10dd385edc1c2baebe80a04.

Change-Id: Icaeedd9badfec2c51a8120c72eb6297736d68c2a
/frameworks/rs/driver/runtime/rs_cl.c
386e87ecf4114084c10dd385edc1c2baebe80a04 22-Mar-2015 Jean-Luc Brouillet <jeanluc@google.com> Reorganize the header files in a way that's easier to document.

This CL does not change any specification found in a .spec file,
it just reorganizes the distribution of the content.

It also changes a few files that included headers that no longer
exist.

Change-Id: I9474ea6706449312fc7a5715d5bef3eabb288bb9
/frameworks/rs/driver/runtime/rs_cl.c
81303a1d9d90c50ab2afe18209aa3222ddbb64c4 21-Aug-2014 Jason Sams <jsams@google.com> am de08b7b4: Merge "Fix ulong" into lmp-dev

* commit 'de08b7b40dd02c6f2f1087af9a2e381b08b57b4e':
Fix ulong
d8b8f8a16415496acc9844a89599ce7f377bd04d 20-Aug-2014 Jason Sams <jsams@google.com> Fix ulong

The new 64 bit functions were mismatches between long and ulong
Make all functions consistent.

bug 16846318

Change-Id: I806f392c12af881b54aa287153bd66ad7aa1b81e
/frameworks/rs/driver/runtime/rs_cl.c
3a3dfe7ecba55a3a832b44e4337276c09a6a25e9 06-Aug-2014 Dan Albert <danalbert@google.com> Fix the build.

For some reason this call to posinf() was taking a parameter.

Change-Id: Ic94d19184b3fec232f407a24c0b895554dbbe8ad
/frameworks/rs/driver/runtime/rs_cl.c
d2d7c18c6ec3752ea19ca44157198f4a85d72464 18-Jul-2014 Jason Sams <jsams@google.com> Add native variants of more math lib functions.

Thunk though to normal impl for CPU path. This is intended
to support GPU hw with dedicated fast ops.

Change-Id: Ide52c2c5cbabc7128c84dbbdc60a240236616476
/frameworks/rs/driver/runtime/rs_cl.c
a140d9d93009aa5733f91bba86c9d5227279e457 18-Jul-2014 Jason Sams <jsams@google.com> Add native variants of more math lib functions.

Thunk though to normal impl for CPU path. This is intended
to support GPU hw with dedicated fast ops.

Change-Id: Ide52c2c5cbabc7128c84dbbdc60a240236616476
/frameworks/rs/driver/runtime/rs_cl.c
461178e21e0141f56e63f345de3f833d0edf72a3 20-Jun-2014 Jason Sams <jsams@google.com> Fix rootn(-5, 0) to return inf

Function is equal to pow(-5, 1/0)

Change-Id: Ic17abcf76b9a36979accd84ee78ff3362ed91203
/frameworks/rs/driver/runtime/rs_cl.c
c944fc899e868612d25d5e70e3f038bbdb4a73b2 13-May-2014 Jason Sams <jsams@google.com> Fix errors with native_powr and small numbers.

There are still small errors around zero, but the error is greatly reduced.

Change-Id: I4571130f758225b17281040abddf8cd825fad447
/frameworks/rs/driver/runtime/rs_cl.c
53826db2ea7f26a241be881c2b454ab3e1e5dd50 08-May-2014 Jason Sams <jsams@google.com> Implement long/double min/max

Change-Id: I87a8fced5a9f33d40aa15f0c247c804fad09adb8
/frameworks/rs/driver/runtime/rs_cl.c
69cf14d340132b99784a0d1497a3e9cbb23ca54b 29-Apr-2014 Jason Sams <jsams@google.com> Merge "Fix precision issues with half_recip, half_sqrt, and half_rsqrt"
ba92a7085bbb8916334a6571ff33355873883173 29-Apr-2014 Jason Sams <jsams@google.com> Fix precision issues with half_recip,
half_sqrt, and half_rsqrt

Change-Id: I37affd7e817dd66784a541beec811bb1bca701c2
/frameworks/rs/driver/runtime/rs_cl.c
3a830c08a468ffba0caa22da00001230117d7a84 26-Apr-2014 Stephen Hines <srhines@google.com> Fix x86_64 multiply defined symbol errors.

Change-Id: Ib4c2ffc8b9f9dfd57ec4e0ca76d61459dfbbd775
/frameworks/rs/driver/runtime/rs_cl.c
bcd5b9af756d10317faf54fa3742f89dfacef152 08-Mar-2014 Jean-Luc Brouillet <jeanluc@google.com> Enable more advanced CTS tests.

Add the possibility to make the generated random values for one argument
be dependent on another one. Add the possibility to add precision limits.
Change the way precision of results is verified.

This is a redo of the mess that's CL 84333 and 84332

Change-Id: I6c59ee4588627540b5bf1952adaf70b061ccc025
/frameworks/rs/driver/runtime/rs_cl.c
0b0bcff691d047da1d658889866c6a0347850f1c 26-Feb-2014 Jean-Luc Brouillet <jeanluc@google.com> Fix the sign issue on pown().

Change-Id: I9ee826c81c14f7c3ed137608643e5cfc0f078bce
/frameworks/rs/driver/runtime/rs_cl.c
3e0d1e79789df55021b459ae13590844b67aebd2 25-Feb-2014 Jean-Luc Brouillet <jeanluc@google.com> Fix normalize and fast_normalize.

Did not handle 0 length vectors correctly. Also fast_normalize did
not handle negative scalars correctly.

modified: rs_cl.c

Change-Id: Ide13b0bcb004009200173bc1f6f59a0303ef4f87
/frameworks/rs/driver/runtime/rs_cl.c
d941ee179d5003617d1ab308d522b5951908a34f 13-Feb-2014 Jason Sams <jsams@google.com> Merge "Fix normalize(float)"
fce65a4abe55263645d468e36bcd42264ef5dfa3 08-Feb-2014 Jason Sams <jsams@google.com> Fix normalize(float)

Change-Id: I3770812f3ff64e9a1ab44ad0e3746541252d2116
/frameworks/rs/driver/runtime/rs_cl.c
c117d8dad895ab9bae4ba6077365f0dfd33ece47 07-Feb-2014 Stephen Hines <srhines@google.com> Fix clz implementation for types with size < 4 bytes.

Bug: 12911231

Change-Id: I2b612b34ae7d69c2793ba44d2b43ab96432e3828
/frameworks/rs/driver/runtime/rs_cl.c
0ec1635641a2075c9d2349219632650401f88881 23-Jan-2014 Jean-Luc Brouillet <jeanluc@google.com> Implement version of step() that takes a scalar edge and a vector for the other argument.

Tests to be done in another CL.

Bug: 12112379

Change-Id: I28a865a9a8f272e9ac4808dacd1ad35a16731a0b
/frameworks/rs/driver/runtime/rs_cl.c
4da42506a08ed7fdb61615b3524f111df939fc6e 03-Oct-2013 Stephen Hines <srhines@google.com> Remove references/use of ARCH_X86_HAVE_* in frameworks/rs.

Bug: 11048298

These SSE-related defines are unnecessary because all x86 Android devices
have these features. We switch all the checks to __i386__ instead.

This also fixes an issue where non-ARM bitcode files were being created with
the ARM defines present. This is problematic when we then try to do things
that would be arch-specific (i.e. the presence of SSE-enabled functions for
clamp(), ...).

This also cleans up the different target architecture specified in the x86
bitcode files so that they match the platform target (i686-unknown-linux).

Change-Id: I4776bbdce360de26e8a00e05d2cb19341d94a173
/frameworks/rs/driver/runtime/rs_cl.c
146e138f5c6eb4980ee6d85d33b951b87b6e8efe 20-Aug-2013 Stephen Hines <srhines@google.com> Refactor the libbcc runtime for x86 platform

This patch is merged/rebased from AOSP, where it was initially submitted to
frameworks/compile/libbcc by Jun Tian <jun.j.tian@intel.com>. All conflicts
have been resolved.

This patch refactors the libbcc runtime code to support x86 platform.
It removed the redundant x86 code and added the missing functions in
libclcore_x86.bc.
It resolved the RenderScript failures on the x86 platform.

Bug: 9961583
Change-Id: I2c8be0f710960ee5e0614721f5edfbaf028c67e1
/frameworks/rs/driver/runtime/rs_cl.c
582b3646d6634f74a13828cceb1414823c18e66f 01-Jun-2013 Stephen Hines <srhines@google.com> Take absolute value of value for fast_length().

Bug: 9018865
Change-Id: I3f6539a4f97d0b1276341adc0752ce510f13cda5
/frameworks/rs/driver/runtime/rs_cl.c
5a47020542c52af3e879c1cd67674ca979ff0a18 30-May-2013 Stephen Hines <srhines@google.com> Move RS runtime to frameworks/rs.

Bug: 7342767
Change-Id: Ia45064a5257b8ce460918f327670e3be550d4b56
/frameworks/rs/driver/runtime/rs_cl.c