summaryrefslogtreecommitdiff
path: root/rsElement.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix uninitialized fields in rsElement for composite data typesPirama Arumuga Nainar2016-04-151-0/+2
| | | | | | | | | | | | Bug: http://b/24142721 mBits and mBitsUnpadded are used to compute the size of an element. The Element::compute was not initializing them properly for composite data types, and thus returning zero as the size for a composite type within a composite type. Change-Id: I86240657c60b2007020ff3852c7d136d20a9ca89 (cherry picked from commit 8b3ca7f67231b4c27ef32d02fee1fe225306ab4f)
* Separate libRS.so into public and internal libsYang Ni2016-03-211-26/+0
| | | | | | | | | | | | | | 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
* Revert "Added a flag to APIs for rsObj creation"Yang Ni2016-03-081-11/+6
| | | | | | This reverts commit 04dcca95461a2ffab4ce5209a453b752ab5c606b. Change-Id: I0016bbff79626b033201a88f466cbb2d60f86717
* Added a flag to APIs for rsObj creationYang Ni2016-03-031-6/+11
| | | | | | | | | | | Bug: 25570907 This flag will distinguish calls from Java/JNI vs. Single-Source RS. For the latter, the user ref count should remain zero to avoid memory leaks. Change-Id: Id3604f93b166089e3aca896d1c6c509b3ea19bcf (cherry picked from commit a7725cbfcdfe2eaf868571c77f004a4d7208e8ef)
* Revert "Replaced android::Vector with std::vector."Yang Ni2015-02-151-10/+6
| | | | | | | | | | b/19148482 This reverts commit 93d6bc872b7d9fba63abfa7513d56b38d9c3d371. I also made some changes to Make it work with HEAD. Change-Id: I5e516976ec1d85ffe1cf388c01795348a9441982
* Replace NULL macros with nullptr literals.Chris Wailes2014-08-201-6/+6
| | | | Change-Id: I918c40879aa547438f77e7d1a95fa2aa33bec398
* Replaced android::Vector with std::vector.Chris Wailes2014-08-181-6/+10
| | | | Change-Id: I4c6abd964dc4b1412ec2e592fc8e835fecfe53f6
* Add missing delete operators to Type and Element.Tim Murray2014-07-101-0/+7
| | | | | | bug 15861251 Change-Id: I6cbf64f6cb24d2fb3f8ee048c08a982efd4a683e
* Add 64bit large object supportJason Sams2014-07-081-0/+8
| | | | | | | | | | | | Add HAL hooks for filling in LO fields. Change-Id: Ib9bdee714a062de519d2a9708c1016404a1b11a4 Conflicts: driver/rsdBcc.cpp driver/rsdCore.cpp rsAllocation.h rs_hal.h
* Move element and type allocations to the HAL allocator.Tim Murray2014-07-081-2/+16
| | | | Change-Id: Ibbd7ac14008ad02da13655d7793eaa9e37254057
* Update structs and defines for 64-bit.Tim Murray2014-06-101-0/+6
| | | | | | Also adds RS_FIND_OFFSETS, which prints address info for various types that allow us to easily update __pad. Change-Id: I4d57248e155d113c83ff69f4f8f64160aa24fb9b
* Merge "Move rs.h functions over to extern "C"."Tim Murray2013-07-221-2/+2
|\
| * Move rs.h functions over to extern "C".Tim Murray2013-07-221-2/+2
| | | | | | | | Change-Id: I0503a64d93dda558455dfebca90a0c820c80d7b1
* | Remove more String8Jason Sams2013-07-171-21/+20
|/ | | | Change-Id: I2b43c3c104eab7cb3b6573bea4858f6c2d0a76ca
* Remove internal element builder and vector code.Jason Sams2013-07-091-31/+26
| | | | | | Remove additional String8 references from shared includes. Change-Id: Iede11384b9fc5a303d15d47fd4074c800dc6ad5f
* Start making RS 64-bit clean.Tim Murray2013-03-201-3/+3
| | | | Change-Id: Ie40ad9a1d2b59094c86eb7e40b358e60120ce213
* Move memory layout to driver.Jason Sams2012-07-251-1/+1
| | | | | | | | 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-2/+2
| | | | Change-Id: I2a49f57aa7576604deeac898a7cceb36ae68d66f
* resolved conflicts for merge of 08289f55 to graphics-devSteve Block2012-01-091-1/+1
|\ | | | | | | Change-Id: I2c95cd461e364cbeae7ffbaea7ad5c87713d7df7
| * Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGESteve Block2012-01-081-1/+1
| | | | | | | | | | | | | | See https://android-git.corp.google.com/g/#/c/157220 Bug: 5449033 Change-Id: Ic9c19d30693bd56755f55906127cd6bd7126096c
* | Adding tests for element/mesh getters.Alex Sakhartchouk2011-12-221-12/+26
| | | | | | | | | | | | Fixing bugs found by tests. Change-Id: I6592a3b65f16b21255e7788fe8ee8aaafe268638
* | Adding simple hal struct to type.Alex Sakhartchouk2011-12-201-1/+1
| | | | | | | | | | | | Fixing off by 1 error in the element. Change-Id: I0b142942c760cb861007af7099d35d0363f4e13b
* | Element HAL sturct, script side gettersAlex Sakhartchouk2011-12-151-0/+26
|/ | | | Change-Id: If98dd4c22bce58dca2c9739c8aee935a2dd0b493
* Expand RS vector3 types to vector4.Alex Sakhartchouk2011-11-151-0/+17
| | | | | | | | | | | | | | | | BUG=5609007 The underlying LLVM implementation for vector3 types does this implicitly. If RS does not adjust its implementation, we will always be misaligned for any subsequent data after a vector3 type. We previously inserted padding into the reflected layers from llvm-rs-cc (hence the skip padding part of this change). We can safely ignore the padding now that the Java/native code is updated to use the expanded size. The compiler will also need modification to ensure that we don't mistakenly skip over any end-of-struct padding. Fixing the 3 component vector padding problem. Change-Id: If68af42287deb8f4b28addcd19a9fa314656be44
* Rename (IF_)LOGV(_IF) to (IF_)ALOGV(_IF) DO NOT MERGESteve Block2011-10-261-3/+3
| | | | | | | See https://android-git.corp.google.com/g/#/c/143865 Bug: 5449033 Change-Id: I0122812ed6ff6f5b59fe4a43ab8bff0577adde0a
* adding getters to Sampler ProgramRaster, ProgramStore, Element.Alex Sakhartchouk2011-10-181-1/+2
| | | | | | Element adds ability to get subelement info. Tests for new stuff. Change-Id: I4a77b91e4e0e73c95ab28b42c50732a64e71e7b9
* Fixing the lockless fifo destory bug.Alex Sakhartchouk2011-08-191-29/+9
| | | | | | Removing unused code from element. build. Change-Id: I4bb324a666486d6d3fa45cc1995d0e96cb99f70a
* Fixing asynchronous performance issues.Alex Sakhartchouk2011-08-161-86/+92
| | | | Change-Id: I10f02cd37a33a6c655814d24e0a4291dc044fba3
* Fix for the renderscript ref counting bug.Alex Sakhartchouk2011-07-121-6/+6
| | | | | | This only manifested itself in the situations where elements containing multiple ref counted objects were copied from Java. Change-Id: I2c1cc89fe7f792259b3f033674142eb33d17a507
* Add code for generating fifo command packing.Jason Sams2011-05-061-2/+4
| | | | Change-Id: I2d2ef095344b200b10457de96ae1d85821edc91e
* Modifying libRS internal communication to handle network rendering.Alex Sakhartchouk2011-04-251-3/+6
| | | | Change-Id: I8c8b3cc3402ecf4ba774e1d668dce25ff0af0e5a
* Cleaning up the serialization change.Alex Sakhartchouk2011-01-311-4/+0
| | | | | | Renaming the define to be more in line with what it does and removing the host stub header file. Change-Id: Ibd3a0a6a398c7f81cc661f71e4478707fe1679ed
* Making sure we can build libRS on the host for serialization.Alex Sakhartchouk2011-01-311-3/+1
| | | | Change-Id: If0a5d77b20c0e1e2d124fa0737643a5dd1d4409a
* More error checksJason Sams2010-11-221-2/+0
| | | | Change-Id: Id2b9ab7a76bbdf2ed745f5e36e552dc9b101982f
* Code cleanup to make formatting consistentAlex Sakhartchouk2010-11-101-48/+27
| | | | | | across all the renderscript files. Change-Id: Idf5fcc60877e44c8f074f7176e37f70b3b895a3c
* Moving attrib creation to Mesh. Adding arrays as shader inputs.Alex Sakhartchouk2010-11-081-18/+22
| | | | | | Removing fixed size arrays. Change-Id: I0213e403a2f1283dd43f21bea770aeb059561903
* Adding nvidia extension for limited npot support.Alex Sakhartchouk2010-10-271-6/+5
| | | | | | Updating a3d loading to be async. Change-Id: I4be71d2002b9ad6ab8896d63e625f031e6b7ea6c
* Begin adding async allocation creation.Jason Sams2010-10-261-0/+1
| | | | | | | | Change-Id: I5d1381699e2b334c1d824f357bd6b310a5f79be8 Implement async bitmap upload and clean up types. Change-Id: Icbe9894e04c1319351c1cd75b0e0017855198f20
* Fix refcounting bugs where the sys refcountJason Sams2010-10-211-3/+1
| | | | | | | | | | could be corrupted during async type creation. Change-Id: If42828e92990598b0cb5da81c82ea513f94725f2 Fix stack object deletion bug. Change-Id: I2c723aa5ad15e0c99dc9cd0cfbc7db80bace172a
* Changing scenegraph sample to use arrays.Alex Sakhartchouk2010-10-131-4/+5
| | | | Change-Id: Ifa454d503c1445efcad6e31243b65d75e62e3035
* Update allocation from bitmap.Alex Sakhartchouk2010-10-111-1/+1
| | | | | | GL attribute cleanup in type. Change-Id: I504dcf6744ad13d65e068e784b6608c999ab48c6
* Adding support for all allowed textures.Alex Sakhartchouk2010-09-231-31/+30
| | | | | | | Cleaning up unused code Adding error messages Change-Id: I3a92476738ff7699d49feeafcd3eee6f70621acb
* Shader changes to allow for more flexible constant binding.Alex Sakhartchouk2010-09-141-0/+28
| | | | Change-Id: Ic66e6e2a371c6e3d5dce1b00f63acab8c09bd110
* Add arrays to elements.Jason Sams2010-09-071-8/+22
| | | | Change-Id: I624b03bfc1fd26136afd9305a96026b91b1fad3c
* Fix field packer bug for U32 data.Jason Sams2010-08-121-2/+2
| | | | | | | Fix initial refcounts in allocations. Support null references in allocations. Change-Id: Ifba6406ba750e69737bd77fa7df5d7fb8e27a5b4
* Adding allocation reference counting to the a3d models.Alex Sakhartchouk2010-08-111-0/+5
| | | | Change-Id: I225b431d09bfebbebf49df75b7df5e4d5961a564
* Refcounting in allocations.Jason Sams2010-08-091-9/+50
| | | | Change-Id: Ida2dfb404b2cd832e622d981d73a938d5bc5b821
* Populate java objects with native data from a3d file.Alex Sakhartchouk2010-07-151-0/+26
| | | | | | | Remove legacy constructor from programraster Make a3d object creation synchronous Change-Id: Ic7d7547cf6eee6f9a7c6e3ee12cd104e80056a7b
* Move ImageProcessing and ModelViewer to reflected files.Jason Sams2010-06-211-39/+0
| | | | | | Implement boolean support. Change-Id: Iac2dc28067ac430b3e413fc651dfaa0b96214e2e
* Creating the jni and java layer to integrate a3dAlex Sakhartchouk2010-06-041-2/+2
| | | | Change-Id: I438359633bae59bf9188cd2c4664a92ca16c5f37