summaryrefslogtreecommitdiff
path: root/rsAllocation.h
Commit message (Collapse)AuthorAgeFilesLines
* Add multi-frame support to RenderScript:Miao Wang2016-01-261-1/+13
| | | | | | | | | | | | | Bug: 23535524 - Allow multi-consumer for a single BufferQueue with specifying the the number of buffers need. - Allow USAGE_IO_INPUT allocations share the same BufferQueue with an existing Allocation. - Individual allocations can still call ioReceive independently - Add getTimeStamp() for multi-frame processing. Change-Id: Ia8f48f5fc50d578c68306bb32f0eac9636f5f32a
* Add AllocationCreateStrided to support lib CPU driverMiao Wang2015-08-061-0/+5
| | | | | | | | | | | | - 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
* am 9a1f726c: Merge "Fix AllocationAdapter offseting"Jason Sams2015-03-091-0/+2
|\ | | | | | | | | * commit '9a1f726cb7fbdb8ac26e3f43bea88082e8c0c4cb': Fix AllocationAdapter offseting
| * Merge "Fix AllocationAdapter offseting"Jason Sams2015-03-091-0/+2
| |\
| | * Fix AllocationAdapter offsetingJason Sams2015-03-061-0/+2
| | | | | | | | | | | | Change-Id: I486d70067a36bf9dbf7ade43475360ac937327e0
* | | am ceb8d321: Merge "Fix the bug for AllocationRead() that cannot handle 3d ↵Miao Wang2015-02-241-3/+4
|\| | | | | | | | | | | | | | | | | | | | Allocation correctly. Add the following functions to make it symmetric for read and write." * commit 'ceb8d321879ba542b708910f9c835bc94eb6c4c8': Fix the bug for AllocationRead() that cannot handle 3d Allocation correctly. Add the following functions to make it symmetric for read and write.
| * | Fix the bug for AllocationRead() that cannot handle 3d AllocationMiao Wang2015-02-231-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | correctly. Add the following functions to make it symmetric for read and write. - AllocationElementData - AllocationElementRead - Allocation3DRead Change-Id: I8c89b5e3474c4c3c70e9795843a76e61f1f90f6a
* | | am e9c79f66: Merge "Revert "Replaced android::Vector with std::vector.""Yang Ni2015-02-191-1/+1
|\| | | | | | | | | | | | | | * commit 'e9c79f66478170e4e45e49c71f5e9324842916cf': Revert "Replaced android::Vector with std::vector."
| * | Revert "Replaced android::Vector with std::vector."Yang Ni2015-02-151-1/+1
| |/ | | | | | | | | | | | | | | | | | | b/19148482 This reverts commit 93d6bc872b7d9fba63abfa7513d56b38d9c3d371. I also made some changes to Make it work with HEAD. Change-Id: I5e516976ec1d85ffe1cf388c01795348a9441982
| * Implement arrays and allocation adaptersJason Sams2015-02-091-0/+14
| | | | | | | | | | | | WIP: now passing basic tests Change-Id: I3d8c1ab12975428def225f88a04e24a4158ca69c
* | Implement arrays and allocation adaptersJason Sams2015-02-091-0/+14
| | | | | | | | | | | | | | | | WIP: now passing basic tests (cherry picked from commit bc9dc27b84f4e5c72d4dbe8a8e01af87dd780f79) Change-Id: I1ddda310152140c7d7225ba42ef48ff93b30266d
* | am 365357ac: Merge "Cleanup of ForEachParams in cpu ref"Jason Sams2015-01-201-0/+15
|\| | | | | | | | | * commit '365357ac91d52c385e5af38ca6fe24d853f0ddb1': Cleanup of ForEachParams in cpu ref
| * Cleanup of ForEachParams in cpu refJason Sams2015-01-201-0/+15
| | | | | | | | Change-Id: I8cc51915b2a605c240d98e3010619b741a13bae2
| * Add gralloc flags to support HW driverJason Sams2014-11-101-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | We were not setting the right gralloc flags with USAGE_IO_INPUT. This CL allows the driver to add flags and always sets the RS bit. Change-Id: I1807bc071da201923b6e0e714d7ab49ff0d2ef51 Conflicts: rsAllocation.cpp
* | am f0d7aa28: Add a BufferItem parameter to onFrameAvailableDan Stoza2014-11-071-1/+1
|\ \ | | | | | | | | | | | | * commit 'f0d7aa28bd4620030d9c54d983f607e3b0051df0': Add a BufferItem parameter to onFrameAvailable
| * | Add a BufferItem parameter to onFrameAvailableDan Stoza2014-11-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Passes the BufferItem for the queued buffer to the onFrameAvailable callback so the consumer can track the BufferQueue's contents. Bug: 18111837 Change-Id: If9d07229c9b586c668e5f99074e9b63b0468feb0
* | | Merge commit 'e49da13c' into manualmergeJason Sams2014-10-241-0/+2
|\| | | |/ |/| | | | | | | | | Conflicts: rsAllocation.cpp Change-Id: I6ceade380f0415efe41d06435f426743cf410a6d
| * Add gralloc flags to support HW driverJason Sams2014-10-231-0/+2
| | | | | | | | | | | | | | | | | | | | We were not setting the right gralloc flags with USAGE_IO_INPUT. This CL allows the driver to add flags and always sets the RS bit. bug 18057326 Change-Id: I1807bc071da201923b6e0e714d7ab49ff0d2ef51
* | Replaced android::Vector with std::vector.Chris Wailes2014-08-181-1/+1
|/ | | | Change-Id: I4c6abd964dc4b1412ec2e592fc8e835fecfe53f6
* Add 64bit large object supportJason Sams2014-07-081-0/+1
| | | | | | | | | | | | Add HAL hooks for filling in LO fields. Change-Id: Ib9bdee714a062de519d2a9708c1016404a1b11a4 Conflicts: driver/rsdBcc.cpp driver/rsdCore.cpp rsAllocation.h rs_hal.h
* Adds support for multi-input kernels to Frameworks/RS.Chris Wailes2014-07-081-1/+2
| | | | | | | | | | | | | This patch modifies Frameworks/RS in the following ways: * Adjusted the data-layout of the C/C++ version of RsForEachStubParamStruct to accommodate a pointer to an array of input allocations and a pointer to an array of stride sizes for each of these allocatoins. * Adds a new code path for Java code to pass multiple allocations to a RS kernel. * Packs base pointers and step values for multi-input kernels into the new RsForEachStubParamStruct members. Change-Id: I46d2834c37075b2a2407fd8b010546818a4540d1
* Add getPointer for USAGE_SHARED allocations.Jason Sams2014-02-261-0/+3
| | | | Change-Id: I13a2af09bbbeec6cc6131b935979ac21c02820be
* Cleanup type offsets which cannot be calculated for flexible YUV.Jason Sams2013-09-031-0/+5
| | | | | | | | | Support flexible YUV bug 10567550 Change-Id: I4f6e5a8d86eeee635605460f1751208f3320969b (cherry picked from commit a75372759e288be3fb8835735a830b1f7d1a4c42)
* Fix RS build.Stephen Hines2013-08-151-2/+3
| | | | | | | ANativeWindowBuffer is not available in the NDK, so make it opaque. This also fixes a broken merge of mine. Change-Id: I6f07776ec2b6b147edd9e70646d71581d01a93a6
* Refactor hal to remove cpuConsumer from driversJason Sams2013-08-071-2/+24
| | | | | | | This CL should minimize build breaks due to BufferQueue changes in the future. Change-Id: I565a6eae5cc25603741fef32f2cfcb31a32eb757
* Add 3D allocation copies.Jason Sams2013-04-091-9/+4
| | | | | | | | Remove resize2d. bug 8567058 Change-Id: Ib143b7a417c7db88aa8da8714a63e0ee6091269a
* Add custom allocator support for Allocation objects.Tim Murray2013-03-111-0/+2
| | | | Change-Id: Iab546455354c2ee72797658fdcd49c90a5893527
* Cleanup lots of things related to IO_OUTPUT and error checking.Tim Murray2013-02-251-6/+2
| | | | Change-Id: Ic6802dd0ba9d3edc8c53f99002cdd905214a515c
* Implement usage IO INPUTJason Sams2013-02-221-1/+1
| | | | Change-Id: I4dedd697ecd7719ba307ac393aca5abd67128e0c
* Support typed YUV allocationsJason Sams2013-02-151-1/+1
| | | | Change-Id: I844051ee1be1462e497d238f5460f301be1aaa1d
* Add support for YUV allocations.Jason Sams2013-01-091-4/+1
| | | | Change-Id: I21a47c745a2f8435af4f37ec0ad624002f3db555
* Rename ISurfaceTexture and SurfaceTextureAndy McFadden2012-12-181-3/+3
| | | | | | | | | | The C++ class names don't match what the classes do, so rename ISurfaceTexture to IGraphicBufferProducer, and SurfaceTexture to GLConsumer. Bug 7736700 Change-Id: I268f78847fcb7094fdfd17484c7f20e128b950e1
* Add support for user-allocated buffers from the C++ API.Tim Murray2012-12-041-1/+1
| | | | | Bug: 7256604 Change-Id: Ia5d458ebadfd893e41130f90a1650258280a41cd
* Add support for 2D strided copies to/from an allocation with the C++ API.Tim Murray2012-11-271-4/+8
| | | | Change-Id: I55cd7512f683f8d36d2b75f894931fd0657521bc
* Separate CPU driver impl from reference driver.Jason Sams2012-11-191-3/+12
| | | | Change-Id: Ifb484edda665959b81d7b1f890d108bfa20a535d
* Add copy1DRangeToUnchecked.Tim Murray2012-11-131-0/+1
| | | | Change-Id: Iac550920b8e274819e43aca867dedc66eff47dcf
* Cache element type in allocation hal.Jason Sams2012-08-291-0/+1
| | | | Change-Id: I7351eab942dd8d46b8a4aac1f501f33d4d2e463b
* Cleanup pointer access in adapter and font.Jason Sams2012-07-271-1/+0
| | | | Change-Id: Ie500574adebb9bdb38c138f78582af2cd7610f76
* Move memory layout to driver.Jason Sams2012-07-251-6/+13
| | | | | | | | This change moves all allocation data copies to the hal. Also removes stride from the runtime. Follow on changes will remove the malloc pointer from the runtime. Change-Id: I30967c739800cd4b97186e9fc8b69f26a3f2787d
* Plumb context through for serialization.Jason Sams2012-07-241-4/+4
| | | | Change-Id: I2a49f57aa7576604deeac898a7cceb36ae68d66f
* Fix duplicate malloc pointers.Jason Sams2012-04-161-3/+3
| | | | Change-Id: I6525877cb93fe0f750339a8d7a747c7f5ce9a2f7
* Add support for stride != width.Jason Sams2012-04-031-0/+1
| | | | | | BUG=6111812 Change-Id: I419dbf90f94ca54b4189fa6e62a2449efd893676
* Implement USAGE_IO_INPUTJason Sams2012-03-231-0/+4
| | | | Change-Id: Idbf7bb21f5ab673ad77082c5c19921d2b276c04b
* Beging IO stream out from allocation to surface texture.Jason Sams2012-02-151-0/+6
| | | | Change-Id: I4d6b7f7740a896d39b811d6fe7532bb00db62373
* resolved conflicts for merge of cb66aec0 to graphics-devJason Sams2012-02-101-2/+1
|\ | | | | | | Change-Id: Ic8817f702b6993f046c89f2fc598c9fe3bf30fe8
| * Start implementing SurfaceTexture streaming into RS allocations.Jason Sams2012-02-101-0/+3
| | | | | | | | | | | | | | | | Change-Id: I561fbb63c63371ea59047c07fb2d68c21d16e76b Conflicts: libs/rs/rsAllocation.h
* | am 855eadf9: Merge "Fix potential bug with reordered size/offset arguments."Stephen Hines2012-01-301-7/+7
|\| | | | | | | | | * commit '855eadf942c8ff5c2665d7dc3b6d4b5ba630419a': Fix potential bug with reordered size/offset arguments.
| * Fix potential bug with reordered size/offset arguments.Stephen Hines2012-01-201-7/+7
| | | | | | | | | | | | This change also cleans up a few uint32_t/size_t issues. Change-Id: Iae0fc085c12149129b91fce0ebbc28c8cf358eaf
* | Start implementing SurfaceTexture streaming into RS allocations.Jason Sams2012-01-131-0/+2
| | | | | | | | Change-Id: I561fbb63c63371ea59047c07fb2d68c21d16e76b
* | Private API to support MFF transition.Jason Sams2011-11-231-2/+5
|/ | | | Change-Id: I17cc9dc46eb37e4397428ba64305b0fd8ed3ae81