summaryrefslogtreecommitdiff
path: root/rsContext.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Move gDebuggerPresent to libRS.so, and fix up driver after split.Stephen Hines2016-07-251-2/+4
| | | | | | | | | | | | Now that libRS.so has been split into public/private libraries, we must also move gDebuggerPresent into the public side. lldb uses this as a flag to indicate that the driver can proceed (after waiting for the debugger to attach). Change-Id: I4c8f5c466644a51d50368ac8dd91f0bfd699302d (cherry picked from commit 98cb2d1420a22536649af2c493a58595f7c2542e) Bug: 30312793
* Merge "Avoid destroying Device separately" into nyc-devYang Ni2016-04-051-4/+2
|\
| * Avoid destroying Device separatelyYang Ni2016-04-041-4/+2
| | | | | | | | | | | | | | | | | | Bug: 27983025 Device should be destroyed inside the destructor of the associated Context. Change-Id: I921a89974e1174f837349a89aef9b03efa4882f5
* | Guard general reduction logging output under property "debug.rs.reduce".David Gross2016-04-011-1/+1
|/ | | | | Bug: 27299475 Change-Id: I5be634fe38d20b9fe6867ad3c0c0b982442b52fd
* Merge "Multithreaded execution of certain general reduction kernels; ↵David Gross2016-03-291-0/+2
|\ | | | | | | reduction test overhaul." into nyc-dev
| * Multithreaded execution of certain general reduction kernels; reduction test ↵David Gross2016-03-291-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | overhaul. A reduction kernel is eligible for multithreaded execution if it has a combiner function and it is launched over a 1D iteration space. Note: Properties debug.rs.reduce-accum and debug.rs.reduce-split-accum are added for debugging multithreaded reduction. The following changes are made to reduction tests in RsTest: - Overhaul the test framework -- now data-driven, and can execute the same test multiple times with different seeds and input sizes, features separate sets of quick correctness tests, full correctness tests, and performance tests. (Performance tests are not run by default.) - Report timing information for test execution. - Report more information for fz* kernel testing. - Remove dp kernel testing -- this involved floating-point arithmetic which is not guaranteed to produce identical results between java and rs or for different rs multithreaded executions. - Add sumgcd kernel testing. This is intended to be representative of a compute-heavy kernel. - findMinAndMax kernel testing must compare cell value not cell index -- two or more cells might have the same min or max value, and java and various rs multithreaded executions are not guaranteed to find the same cell. - Fix bug in findMinAndMax kernel's combiner function. (It behaved incorrectly when operating on an accumulator datum that has been initialized but never passed to the accumulator function.) - RsTest now requests largeHeap. Bug: 27299475 Change-Id: I58f99c21389dbae5c8e3ad85d98700dc165664bb
* | Separate libRS.so into public and internal libsYang Ni2016-03-211-42/+1
|/ | | | | | | | | | | | | | Bug: 26546579 libRS_internal.so is not going to be whitelisted by the NDK linker, therefore loadable only by the internal implementation, but not any application code. libRS is going to contain only publicly exported functions, i.e. the functions declared in frameworks/rs/rs.h, including those in rsApiFuncDecl.h (generated from rs.spec). Change-Id: Iac58695316edc9aff87ade2bac3b4a44d1a68b23
* Derive the bcc optimization level from the input bitcode.Stephen McGroarty2015-09-021-3/+0
| | | | | | | | | | This patch derives the optimization level of the slang bitcode and passes that to bcc. This patch replaces the old method, where a flag was passed to the RenderScript context and the context would set the optimization level accordingly. Change-Id: Ie64a2d0125ca30da4ae7522961dca144d0457f03 Signed-off-by: Stephen McGroarty <stephen@codeplay.com>
* Lose HAVE_ANDROID_OS in frameworks/rs.Elliott Hughes2015-08-121-2/+2
| | | | Change-Id: Iba57869192ba9b1fde995ff0e48b7a28b2cb122f
* Add a flag to the API to specify -O0 on the bcc command line.verena beckham2015-07-171-0/+4
| | | | | | | | | Add a flag RS_CONTEXT_OPT_LEVEL_0 which sets a field mOptLevel in the Context to 0 when calling bcc. Using this flag will result in an object file that is easier to debug. Change-Id: I9673506710cc9f34c415b694fe5d6bc7e967f1db Signed-off-by: verena beckham <verena@codeplay.com>
* Added in wait for attach context flag.Stephen McGroarty2015-05-191-0/+12
| | | | | | | | | | Added in a small flag which is passed to the context from the Java/C++ API which causes the context to delay execution until a debugger is a attached. This gives time to the developer to attach a debugger to the process before the kernel is executed. Change-Id: I5bb8e75100436920f9e1a0f414f3b0bcf0d2b439 Signed-off-by: Stephen McGroarty <stephen@codeplay.com>
* Fix cache path initialization and set.Jason Sams2015-05-191-0/+18
| | | | | | | | | Add null terminator to strings Return nullptr if string is not set bug 20894664 Change-Id: I33f5d84d56f6299558f5d8713694e40afc82dd20
* Add a way to link against different driver names.Stephen Hines2015-05-061-0/+1
| | | | | | | | | | 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
* Fix object loggingJason Sams2015-04-141-1/+0
| | | | Change-Id: I1731637412cf9e894f2b73dc32ab3370f6467160
* Add cache dir to context object.Tim Murray2015-04-091-1/+4
| | | | Change-Id: Icc3220329fbaee7d453259fbe1cbf34d145d195c
* Fix CTS.RSCpp failures due to dispatch table entry missing inMiao Wang2015-03-271-2/+2
| | | | | | | | libRS.so for __LP64__ Bug: 19953162 Change-Id: Ic240052255c8d3056c0af455a4bd2cfbbb16b17d
* Add fatal error checkJason Sams2015-03-181-0/+8
| | | | | | | | Prevent launching additional commands if the process is dying This increases the chance the developer will get the error message before we segfault somewhere. Change-Id: I575906b22364c0d03859140570ca29bf8f336c01
* Refactor hal loadingJason Sams2015-03-111-85/+7
| | | | | | | | | 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
* Revert "Replaced android::Vector with std::vector."Yang Ni2015-02-151-6/+5
| | | | | | | | | | b/19148482 This reverts commit 93d6bc872b7d9fba63abfa7513d56b38d9c3d371. I also made some changes to Make it work with HEAD. Change-Id: I5e516976ec1d85ffe1cf388c01795348a9441982
* Make rsContext be able to have info about the path of native libsMiao Wang2015-02-031-0/+7
| | | | | | | | | for 64bit Renderscript compat lib. - Native lib path stored in Java and queried from JNI. - Then set to Context during context creation. Change-Id: I3c997cf849efb7b9a0b0ac35d5b62289d70e7434
* Fix thread priorities.Jason Sams2015-01-231-13/+24
| | | | | | | Graphics ran a display priority. Compute should run at a lower priority. Change-Id: I72055eeb2b62813d3b1d17f2d8e863b178019c8f
* am 6e6cdbc3: Add flag to disable 64-bit driver.Tim Murray2014-09-101-0/+4
|\ | | | | | | | | * commit '6e6cdbc303bef581cfb7d1fd0902cb42c89010cc': Add flag to disable 64-bit driver.
| * Add flag to disable 64-bit driver.Tim Murray2014-09-101-0/+4
| | | | | | | | | | | | bug 17428047 Change-Id: I888dd310449bf9079e352cb4aef31344c05b0ba8
* | resolved conflicts for merge of 81cfa2c5 to lmp-dev-plus-aospStephen Hines2014-08-211-32/+32
|\ \ | | | | | | | | | Change-Id: Ia3a7f084693825d4e46a4864788332a7d039d38f
| * | Replace NULL macros with nullptr literals.Chris Wailes2014-08-201-32/+32
| | | | | | | | | | | | Change-Id: I918c40879aa547438f77e7d1a95fa2aa33bec398
* | | am 3fa79f84: Merge changes I4c6abd96,I9bcf36d0Stephen Hines2014-08-201-5/+6
|\| | | |/ |/| | | | | | | * commit '3fa79f84fcce0b5f59498980a2bb8e355cf53cd4': Replaced android::Vector with std::vector. Adjust to handle the change to std::vector in libbcc.
| * Replaced android::Vector with std::vector.Chris Wailes2014-08-181-5/+6
| | | | | | | | Change-Id: I4c6abd964dc4b1412ec2e592fc8e835fecfe53f6
* | Add debug.rs.debug to force debug mode.Jason Sams2014-07-241-0/+5
| | | | | | | | Change-Id: Ia78cd133f2b29c36f117852157ca78c2389792d5
* | am 6c6f7539: am 8c8eb23d: Merge "Add 64bit large object support"Tim Murray2014-07-091-1/+1
|\| | | | | | | | | * commit '6c6f7539377ec779a9ea36bfcc5859ad41f6e677': Add 64bit large object support
| * Add 64bit large object supportJason Sams2014-07-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Add HAL hooks for filling in LO fields. Change-Id: Ib9bdee714a062de519d2a9708c1016404a1b11a4 Conflicts: driver/rsdBcc.cpp driver/rsdCore.cpp rsAllocation.h rs_hal.h
* | am 16bbe7cb: am 1c3b028e: Merge "Pass context creation flags to driver init."Jason Sams2014-06-261-0/+1
|\| | | | | | | | | * commit '16bbe7cbad7731fed3721a4a6e6691be90d9f104': Pass context creation flags to driver init.
| * Pass context creation flags to driver init.Jason Sams2014-06-251-0/+1
| | | | | | | | Change-Id: I08806939c0fdaf87ff234a78f7f309d0d0dc548c
* | am 05469137: am b429ee59: Merge "Add error check when init RS thread in sync ↵Tim Murray2014-04-171-1/+6
|\| | | | | | | | | | | | | mode." * commit '05469137d372647e1de914eb0d68fa38c2c2a6ee': Add error check when init RS thread in sync mode.
| * Merge "Add error check when init RS thread in sync mode."Tim Murray2014-04-171-1/+6
| |\
| | * Add error check when init RS thread in sync mode.Xiaofei Wan2014-03-311-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | RS should return false and stop further waiting when it failed to init RS thread, otherwise it will cause RS caller ANR errors. Update destructor function for the exception handling accordingly. Change-Id: I80a946e6be6b23cc93388b5f56d58ad6dc809d8b Signed-off-by: Xiaofei Wan <xiaofei.wan@intel.com>
* | | am 033786bd: am 6757e6be: Merge "Fix potential deadlock caused by RenderScript"Jason Sams2014-04-021-1/+3
|\| | | | | | | | | | | | | | * commit '033786bd9fb7d7ffbf0ffdf120d8f541c59477cf': Fix potential deadlock caused by RenderScript
| * | Fix potential deadlock caused by RenderScriptSangkyu Lee2014-04-021-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the context is created with RS_CONTEXT_SYNCHRONOUS flag, there is no thread to join. Unfortunately, deadlock can occur if mThreadId has a joinable thread ID since mThreadId is uninitialized. Change-Id: I0315237a41d3ca33f0aa691c7de1ae29d2c02b57
* | | am 73056923: am 149cec79: Merge "Disable acceleration when the context is ↵Jason Sams2014-04-011-1/+1
|\| | | | | | | | | | | | | | | | | | | | legacy graphics." * commit '73056923235f220426717926b8eea31350083872': Disable acceleration when the context is legacy graphics.
| * | Disable acceleration when the context is legacy graphics.Jason Sams2014-03-311-1/+1
| |/ | | | | | | | | | | bug 13728313 Change-Id: I63d8a352cc6d44f1b87ba5ded7f95b297f512e92
* / FramebufferNativeWindow.h is obsoleteAndy McFadden2014-03-051-1/+0
|/ | | | Change-Id: I38a5e58da6069940b1715f95cb0943eeceeb7c61
* am b64224c2: am 68bc6d3a: Merge "Work-around 64bit build issues."Ian Rogers2014-01-311-1/+3
|\ | | | | | | | | * commit 'b64224c24146014af3bda6a8b8c6ef0ec5781845': Work-around 64bit build issues.
| * Work-around 64bit build issues.Ian Rogers2014-01-291-1/+3
| | | | | | | | | | | | Log errors and abort as a temporary work-around for 64bit support. Change-Id: I7f6b483d671189bd12ae0ef79515fcdd871eba17
| * implement finishJason Sams2013-12-021-0/+8
| | | | | | | | Change-Id: If1ec99d0dbcf7aebf9d90d7779bf3ff34a8963f2
* | Make object destruction asynchronous.Tim Murray2014-01-081-0/+29
| | | | | | | | Change-Id: Ie4a5e35f11da6f26dca273d79462952b0e3722c1
* | implement finishJason Sams2013-12-021-0/+8
| | | | | | | | Change-Id: If1ec99d0dbcf7aebf9d90d7779bf3ff34a8963f2
* | Switch ALOGE->ALOGV or ALOGD for non-error conditions.Stephen Hines2013-11-141-2/+2
|/ | | | Change-Id: I099c00c645d19e5c8f538b4a995af4f3f80e135a
* Add flags word to context initialization.Tim Murray2013-09-091-6/+9
| | | | | | bug 10427951 Change-Id: If3b9337712bd16655de4a42ccf829bbcd9e01b6e
* Fix RS build.Stephen Hines2013-08-151-1/+2
| | | | | | | ANativeWindowBuffer is not available in the NDK, so make it opaque. This also fixes a broken merge of mine. Change-Id: I6f07776ec2b6b147edd9e70646d71581d01a93a6
* resolved conflicts for merge of f0b81d23 to klp-devStephen Hines2013-08-151-1/+5
|\ | | | | | | Change-Id: I8dbcf6f11bebb97d31c0a95c01c5a3238c1a7f63
| * Implement property_get() for the compatibility library.Stephen Hines2013-08-151-1/+5
| | | | | | | | | | | | | | | | | | | | Bug: 10315692 This change also allows us to remove the dependency on libcutils for the compatibility library. The implementation is the exact version that is in libcutils. Change-Id: If285962d6631cf9ca1030718c436e122f9be1d4f