cf5afcb229806de1b62dee5a7cc0c7ba6a69f482 |
|
20-Mar-2017 |
David Gross <dgross@google.com> |
Make bitcode wrapper info available to MetadataExtractor. Copy bitcode wrapper information (compiler version, optimization level) from bitcode wrapper to Module metadata, where it can be found by MetadataExtractor instantiated from Module. Previously, such a MetadataExtractor ignored the information in the bitcode wrapper; instead, it - nonsensically set compiler version to RS_VERSION, which is an API level rather than a slang version; and - set optimization level to 3. Remove unused MetadataExtractor::getTargetAPI(): - Old behavior: - For user bitcode, got actual targetAPI. - For libclcore, got 0. - For linked bitcode (user bitcode + libclcore), got uninitialized/garbage value. - It's not clear what a sensible value would be for libclcore or for linked bitcode (or perhaps it should be an error to query the targetAPI in those cases). What a sensible value would be depends on how we intend to use it. This change enables a forthcoming libbcc change that needs to know the slang version. Bug: http://b/29154200 Bug: http://b/28070272 Test: full_fugu-eng Tried ( modified slang, modified bcc) and (unmodified slang, modified bcc): - libbcc/tests/run_lit_tests.sh; RsTest; cts -m RenderscriptTest - confirmed that our driver is loaded rather than libPVRRS.so - By instrumenting modified bcc and running RsTest, confirmed that: - MetadataExtractor properly obtains slang version from Module. "Modified slang" is a forthcoming slang change that changes the slang version. Change-Id: Ifc9c1348c96a88bf7ddb344721f67f89359a4fe6
/frameworks/compile/libbcc/lib/Script.cpp
|
fc9c55b0c248a04a325c3540b75ecd3ae64fd91f |
|
22-Feb-2017 |
Jean-Luc Brouillet <jeanluc@google.com> |
Add back version info to Script in libbcc An upcoming CL for the debugger will need this. Bug: 34265954 Test: Compiled. Ran rstest. Change-Id: I6e133e19c5348659cdc799a9e2272142c6bc071a
/frameworks/compile/libbcc/lib/Script.cpp
|
0a2acce3493df1609be2730e3058fe27af01b88f |
|
17-Feb-2017 |
Jean-Luc Brouillet <jeanluc@google.com> |
Merge RSScript.cpp and Script.cpp We don't need two classes. Bug: 34265954 Test: Compiled. Ran imageprocessing_jb and a compat lab test. Test: Compared that the APK have not changed in size. Change-Id: Ib91e16d80bd5ba33c5946ff6f5b11a579338eb1c
/frameworks/compile/libbcc/lib/Script.cpp
|
a2dd52f0710c214e00c1a13e25116e1af5eec77a |
|
17-Feb-2017 |
Jean-Luc Brouillet <jeanluc@google.com> |
Flatten the libbcc directories. Get rid of the Support, Core, and RenderScript subdirectories for the sources and the header files. Deleted the unused Sha1 header file. Bug: 34265954 Test: Compiled everything, ran a regular and a support lib app. Change-Id: Iac760ee3c1985259593e7bbd1dd2dd35e99f654b
/frameworks/compile/libbcc/lib/Script.cpp
|