5fccd07875424d16622e535c3931601d1aac944c |
|
17-May-2017 |
Miao Wang <miaowang@google.com> |
Remove OVERRIDE_RS_DRIVER from libRS_internal - As a system lib, libRS_internal should not be conditionally compiled based on device specific config. - Remove OVERRIDE_RS_DRIVER and provide an API for HIDL implementation to specify the vendor driver to use. Bug: 37035983 Test: mm Test: manually push to sailfish & angler, GPU driver loads successfully and tests are passing. Change-Id: I2ad124f89f2fee5818531ba98fb2778c8eaeaddb Merged-In: I2ad124f89f2fee5818531ba98fb2778c8eaeaddb
/frameworks/rs/rsDriverLoader.cpp
|
59f6142d7657e43b4d21e077a28387431db02edf |
|
14-Mar-2017 |
Miao Wang <miaowang@google.com> |
Remove libgui and libui dependencies for vendor libs. - This CL removes dependencies on libgui, libui and other remaining dependences, if build with RS_VENDOR_LIB defined. - We cannot remove the dependencies for platform RenderScript CPU fallback, because of the legacy graphics APIs. - Vendor drivers will be built without graphics APIs, the reference build file will be posted in another CL. Bug: 34396220 Test: mm, CTS test pass with the vendor libs. Change-Id: If90b600a58d0f81488f56a1e21ca332f1a235162
/frameworks/rs/rsDriverLoader.cpp
|
2a61168a777ee434ce2c28945aa74f6a6bcf2820 |
|
28-Feb-2017 |
Miao Wang <miaowang@google.com> |
Remove libcutils dependency. - Implement property_get using __system_property_get, remove dependencies on cutils/properties.h. - remove rsCompatibilityLib.cpp since it only contains propery_get, and it is now in rsCppUtils.cpp. - Disable ATRACE. The systrace is current done in Java level. If we want to do it in the driver, we need to have our own implementation similar to native/utils/trace.cc - Remove CC_LIKELY macro. Bug: 34396220 Test: build Change-Id: I6a6cbcfb2ca15b9d1f09b9ce0579d39fdbe98727
/frameworks/rs/rsDriverLoader.cpp
|
62237219e567b9f972c86e7ca4e96f9b3d5ad4de |
|
28-Feb-2017 |
Miao Wang <miaowang@google.com> |
Remove RS_SERVER macros and references to unused headers. - The RS_SERVER macros were intended to have a version of RenderScript running on the desktop. It has not fully worked for a very long time. Bug: 35473587 Test: build and CTS tests pass Change-Id: I0da3fc9d4601951442384d05f9dbecaeddeff8cc
/frameworks/rs/rsDriverLoader.cpp
|
257223a176702c1b408d1530cba3f9a10c978c95 |
|
12-Jan-2017 |
Yang Ni <yangni@google.com> |
Fail gracefully than assert on RSoV context Bug: 30964317 Fail RSoV context creation without assertion if Vulkan initialization fails, e.g., if the GPU does not support Vulkan or if a GPU does not exist at all. Also avoided memory leak in Hal initialization code on failures to create CPU referenence or RSoV context. Test: RSoV on Volantis Change-Id: I49320607bb211e568008193fee1cca299fd4a80e
/frameworks/rs/rsDriverLoader.cpp
|
048464b9d95480f73a0897988e7e0003ad9662c1 |
|
12-Dec-2016 |
Yang Ni <yangni@google.com> |
Merge "Initial driver for RSoV (RenderScript over Vulkan/SPIR-V)"
|
75f0d3110b04346b901771f96ce15cdbe907278f |
|
11-Nov-2016 |
Yang Ni <yangni@google.com> |
Initial driver for RSoV (RenderScript over Vulkan/SPIR-V) Bug: 30964317 Supports the following: * Allocations of 32-bit integers and floating point numbers and vectors * Single-input single-output kernels * Co-existence of RSoV scripts and CPU intrinsics Added default .clang-format for driver code using Google C++ code style. The RSoV driver is loaded, if and only if the property debug.rs.rsov is set to non-zero. Test: RSTest and CTS with debug.rs.rsov set to 0; and RSoVTest with debug.rs.rsov set to 1. Change-Id: If63370a502d499e8fc5f4bbd2e90ce84b167c331
/frameworks/rs/rsDriverLoader.cpp
|
11496ac131bb691edf5bdcab3029dceef5c1e4e1 |
|
16-Nov-2016 |
Chih-Hung Hsieh <chh@google.com> |
Fix google-build-using-namespace warnings in rs. * Most files define classes in renderscript namespace. Define them in the namespace instead of "using namespace ...". Some files define global C++ names, and we replace "using namespace ..." with using declarations of the required names. * Add "NOLINT" comment to rsg_generator.c output code to suppress such warnings. Bug: 32670901 Test: build with WITH_TIDY=1 Change-Id: I9b0edcad3e1fb37c79927b05fd58fb1a301bdf22
/frameworks/rs/rsDriverLoader.cpp
|
ae2ec3febedfc29376b9104413fb4042028f1265 |
|
01-Jun-2016 |
David Gross <dgross@google.com> |
Delete simple reduction implementation. Bug: 27298560 Change-Id: I8c3d568e98aaf0b7d86881c985d13ed5b8e95338
/frameworks/rs/rsDriverLoader.cpp
|
8e70791ff732ce244077310bdfdaf75dc19baabc |
|
07-Jun-2016 |
David Gross <dgross@google.com> |
Add HAL version check, with fallback to CPU reference driver on failure. libRS_internal and the vendor driver (or CPU reference driver) must agree on HAL version. Bug: 27298560 Change-Id: Ie4886af9c9cf6a91a164b8cfedb5c010ffbf9cb0
/frameworks/rs/rsDriverLoader.cpp
|
6c1876bbef1b2c89975dce91230a168bd2d2ce4c |
|
15-Jan-2016 |
David Gross <dgross@google.com> |
Support for general reduction kernels. Requires coordinated change in frameworks/base. Requires coordinated change in frameworks/compile/libbcc in order for RsTest to run. At present, general reduction kernels are run single-threaded. Also: Remove dead struct field MTLaunchStructForEach::sig. Bug: 23535724 Change-Id: Ice17ccf20a902f8a106eaa62ec071d46e3c0ad8c
/frameworks/rs/rsDriverLoader.cpp
|
b995629a3fdd6c8dd8e99aa8ffabc08a2d106272 |
|
19-Aug-2015 |
Stephen Hines <srhines@google.com> |
Merge "Add a basic implementation of the reduce kernel API to the CPU reference implementation."
|
14ce007a633b10e3b9a3fae29d8f53a7e8c9b59f |
|
31-Jul-2015 |
Matt Wala <wala@google.com> |
Add a basic implementation of the reduce kernel API to the CPU reference implementation. Bug: 22631253 For now, this just runs a serial reduction on one thread. Change-Id: I34c96d24bb6f44274de72bb53160abcf79d143b0
/frameworks/rs/rsDriverLoader.cpp
|
e5e18cca3eefccf3a6aabd254ceb2c59f120a7d2 |
|
13-Aug-2015 |
Elliott Hughes <enh@google.com> |
Lose HAVE_ANDROID_OS in frameworks/rs. Change-Id: Iba57869192ba9b1fde995ff0e48b7a28b2cb122f
/frameworks/rs/rsDriverLoader.cpp
|
47a5881b8f85d65c74f2471fe6261d4cdb3dce5e |
|
24-Jul-2015 |
Miao Wang <miaowang@google.com> |
Add AllocationCreateStrided to support lib CPU driver - Able to create Allocations with arbitrary alignment requirement, making Incremental Intrinsic Support able to run with different native GPU RS runtime. - Make compat mode CPU driver using an additional rs_compat.spec. - Add a compat mode only USAGE_INCREMENTAL_SUPPORT. - Add AllocationCreateStrided() to take an Alignment requirement (power of 2). Only enbled when detect USAGE_INCREMENTAL_SUPPORT. Change-Id: I66f913c3a2474f93af5a244c0c84460a7a395e71
/frameworks/rs/rsDriverLoader.cpp
|
b268abd5528936d13a85b03f44458fe3a55cafad |
|
11-Jun-2015 |
Jon Parr <jon.parr@imgtec.com> |
Allow drivers to alter the default driver name on rsdHalInit Bug: 20894432 Permit partner drivers via Context::setDriverName to choose their own mDriverName rather than the default OVERRIDE_RS_DRIVER string. This can only be done once from within rsdHalInit otherwise it will be ignored and the default behaviour will apply. Change-Id: I49b81e60f7983a81f0e71fbef4b46f9bfc834849
/frameworks/rs/rsDriverLoader.cpp
|
8ce12815675bfaeb2768959b092d6db293ba36c5 |
|
19-May-2015 |
Jason Sams <jsams@google.com> |
Notify drivers when user get a pointer to allocation Requested by vendor for driver bring-up. bug 20894664 Change-Id: I7a1540236e557ef42ffde1c832b5d5ef36b91c96
/frameworks/rs/rsDriverLoader.cpp
|
f82b626e0479ce4a23ebff1fc088e073dcabaa30 |
|
12-May-2015 |
Jason Sams <jsams@google.com> |
Add USAGE_OEM Allow OEMs to pass data from other HW blocks via internal extension. Change-Id: I78c19f5eec462aff7d8a5408f2f16cfc9b78c036
/frameworks/rs/rsDriverLoader.cpp
|
4c368af7e705f0bcb77fa99495b2e33ef20d2699 |
|
06-May-2015 |
Stephen Hines <srhines@google.com> |
Add a way to link against different driver names. The existing linker path hard-coded "-lRSDriver" into the command line, but this won't work for partner drivers that have a different implementation loaded. In order to still properly handle use of the CPU driver, this needs to change depending on whether we actually loaded an OVERRIDE_RS_DRIVER or not. Change-Id: I0c4a4f12f5db819b234952bc8f364ac6300f147b
/frameworks/rs/rsDriverLoader.cpp
|
b2e33f32b66b820b1973232f0841c5de8616372b |
|
16-Mar-2015 |
Jason Sams <jsams@google.com> |
Fix problems creating graphics context. bug 19762899 Change-Id: Iacf34274b0bde4237ecb61bb2429b24f993b7e8d
/frameworks/rs/rsDriverLoader.cpp
|
6b1b173adc9e97f797d3324006f850cf840137ac |
|
13-Mar-2015 |
Miao Wang <miaowang@google.com> |
Make compat lib able to load through the new HAL. Change-Id: I15a10ffd08399b102e0e209958f5230937e8c83a
/frameworks/rs/rsDriverLoader.cpp
|
0ca7cbaea8d5cf18f25d1148be75fbb6e2d86c62 |
|
11-Mar-2015 |
Jason Sams <jsams@google.com> |
Refactor hal loading This CL make the loading of RS drivers more robust by looking up entry points in place of a structure of entry points. It also adds framework for a version handshake. Change-Id: Iae46bf0171785c0ca1048223816b6efc60c337ad
/frameworks/rs/rsDriverLoader.cpp
|