diff options
author | Yang Ni <yangni@google.com> | 2016-11-11 12:30:09 -0800 |
---|---|---|
committer | Yang Ni <yangni@google.com> | 2016-12-06 09:24:52 -0800 |
commit | 75f0d3110b04346b901771f96ce15cdbe907278f (patch) | |
tree | a13ce3211bfb37b0d3088c5f5ff83e247c4167b2 /rsContext.h | |
parent | 6babd9ca03e1379380af0c1cfde6f6d3e92ccd29 (diff) | |
download | rs-75f0d3110b04346b901771f96ce15cdbe907278f.tar.gz |
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
Diffstat (limited to 'rsContext.h')
-rw-r--r-- | rsContext.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/rsContext.h b/rsContext.h index fe771ec5..e36eddb7 100644 --- a/rsContext.h +++ b/rsContext.h @@ -312,6 +312,7 @@ protected: int32_t mThreadPriority; bool mIsGraphicsContext; + bool mForceRSoV; bool mForceCpu; RsContextType mContextType; @@ -349,7 +350,10 @@ private: uint32_t runRootScript(); bool loadRuntime(const char* filename); - bool loadDriver(bool forceDefault); + // Loads the driver. + // forceDefault: If true, loads the default CPU driver. + // forceRSoV: If true, overrides forceDefault and loads the RSoV driver. + bool loadDriver(bool forceDefault, bool forceRSoV); static void * threadProc(void *); static void * helperThreadProc(void *); |