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/rsov/driver/rsovContext.h
|
30dfb1368d0a3440cfedc882c27cc236d799f77c |
|
06-Jan-2017 |
Yang Ni <yangni@google.com> |
Fallback to CPU execution if RSoV compilation fails Bug: 30964317 With a few additional changes: * Cleaned up the RSoV script initialization code to get rid of memory leaks; * Updated the RSoVAllocation destructor to destroy the buffer but not the uninitialized image. * Updated allocation initialization code to correctly calculate allocation size when rows are not aligned to the default minimum alignment (16 bytes). * Added a utility function to check if a script is completely backed by CPU, and updated the CPU context lookup callback function to use this utility to correctly return a CPU driver-specific script for a HAL script. Test: RSoVTest and RsTest Change-Id: If85b8f01bde3190a9397aaedce8b9808d09716e6
/frameworks/rs/rsov/driver/rsovContext.h
|
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/rsov/driver/rsovContext.h
|