summaryrefslogtreecommitdiff
path: root/build-android
AgeCommit message (Collapse)AuthorFilesLines
2017-04-29external_revisions: bump spirv-toolsChris Forbes3-3/+3
CV needs the new bitpattern interface for specialization. V2: also bump for android V3: also bump headers V4: also bump shaderc for android build
2017-04-18android: Add script that installs APKsCody Northrop1-0/+80
2017-04-18android: Add test_APK script for layer validationCody Northrop1-0/+239
This is a script we've been using internally for a while, no reason not to make it public. It installs our layer validation tests, runs them, and gathers output. Improvements are welcome! Usage: ./test_APK.sh -s <serial number> -p <plaform name> -f <gtest_filter>
2017-04-18android: Add build script that includes APK packagingCody Northrop1-0/+99
2017-04-05build: Add object_types codegen steps for AndroidMark Lobodzinski2-0/+2
Change-Id: If54d83c9b5c67ad92f7510718e1194391bf9fff5
2017-03-30android: Update to matching desktop glslang versionCody Northrop1-1/+1
2017-03-29layers: refactor layer utilsDave Houlton3-0/+3
Split format-related helper fxns out of vk_layer_utils.cpp into a new file vk_format_utils.cpp. Remove the duplicated fxns in the render framework and share the new format utils across both projects. Rename the util fxns into CamelCase per coding std. Change-Id: I0f9a34bc5931dfca085dfdc8d4800664aec526cf
2017-03-28android: Update toolchain revisions and locationsCody Northrop10-13/+48
Start pulling from github again for more recent bits. This includes changes to easily allow changing the repo url.
2017-03-07Use nproc instead of ncpuCiro Santilli1-1/+1
The command is more widely available in Linux since it is part of Coreutils.
2017-03-01vulkan: update to header 1.0.42Mark Young3-0/+7
Updated all necessary files to 1.0.42. This includes the various headers as well as the loader, and the parameter validation, object tracking, and threading layers. Additionally, bump all layer JSON files to 1.0.42. Also, in this change: - Enable loader extension automation so that the loader now generates all extension entry-points automatically during build to reduce likelihood of missing a critical piece on header update. - Enable layer dispatch table extension automation for the same reason. - Fixes from Mark Lobodzinski and Tony Barbour to resolve crash in loader when working with Intel's Windows driver due to GetInstanceProcAddr getting called on inappropriate command names. Change-Id: Ic18d3fac2e145c386c0192031deb5089c91a00d8
2017-02-16android: Update build to skip image layerMark Lobodzinski5-22/+6
All image layer functionality has been moved into the core_validation layer. Change-Id: I980e279626e4e3f29c5068240260a737a5a707b1
2017-01-17layers: Move CreateImage recording to buf/img moduleMark Lobodzinski3-0/+5
- Move source from core_validation.cpp into new module - Add new module to layers cmake file - Update android build scripts/makefiles for new files Change-Id: Ia4000b26384d96a551d727f5e37997372f01764a
2017-01-11android: Switch safe_struct over to new codegenMark Lobodzinski2-4/+4
Change-Id: Ia89cfec2b836437c2f2009608795d1ee38b811ad
2017-01-10android: Fix typos in android-generate scriptMark Lobodzinski1-2/+2
Change-Id: I31c32e56ae09134b7b91c610b546a9d46c20c007
2017-01-10android: Add codegen for struct_size_helpersMark Lobodzinski2-0/+4
Change-Id: I264d7ecca323089bda1583dbcf9eb751736146a7
2016-12-28android: Update build scripts w/enum_string codegenMark Lobodzinski2-2/+2
The enum_string_helper header is now generated from vk.xml. Change-Id: I6adf09663c87b21623993a939a8ad60e343a805d
2016-12-22android: Preserve toolchain build if presentCody Northrop1-16/+4
Similar to a2e6ddd1 which preserves it for desktop.
2016-12-12android: Update windows script to request python3Cody Northrop1-6/+6
2016-12-12build: Update generate scripts to use python3Mark Lobodzinski2-12/+12
Upcoming header scripts require python3 -- updated Windows and Linux android-generate scripts. Change-Id: Iba3b44d0999b5c28b9fc83800a4d54d46cbc2a4c
2016-12-08build: Update Android cmake w/new dispatch_table genMark Lobodzinski2-4/+2
Change-Id: Id505439bf599ac04d2590e84e30ca29da9359f56
2016-12-02build: Removed obsolete ICD refs from android scriptMark Lobodzinski1-2/+0
Change-Id: I38ddea801f3efb887eac9da469428d3476f7adc3
2016-11-29toolchain: Switch back to tracked revisions on AndroidCody Northrop4-4/+4
This allows us to recreate the entire LVL package from any point in history. We continue to pull known good revisions from AOSP.
2016-11-21build: Move vk.xml file into scripts dirMark Lobodzinski2-6/+6
- Update android-generate batch/script files - Update layers CMakeLists.txt file Change-Id: I6423f441d61daa20aef2cc5e8bc719113fd7978d
2016-11-21build: Move XML codegen scripts into scripts dirMark Lobodzinski2-6/+6
- Update android-generate.bat and android-generate.sh - Updated layer CMakeLists.txt files for new path Change-Id: I1b1c9dbc9e944c90e95542fcfdda1d2e804517f3
2016-11-21build: Move codegen scripts into scripts dirMark Lobodzinski2-6/+6
- Set SCRIPTS_DIR in root CMakeLists.txt - Update android-generate.bat and android-generate.sh - Updated layer/loader/tests CMakeLists.txt files for new path - Updated test layer doc scripts for new location Change-Id: I2d519ec40883ebeec4e9daab8641ad65515bb08c
2016-11-14android: Add default core count in case ncpus not availableCody Northrop1-1/+1
2016-11-14android: Move external under build-androidCody Northrop3-15/+16
2016-11-14android: Build toolchain with more coresCody Northrop1-1/+7
2016-11-14android: Pull known good toolchain versionsCody Northrop7-14/+19
This includes pulling libSPIRV-Tools-opt into the build to satisfy new shaderc revision.
2016-11-02layers: Change to including vk_safe_struct code.Mike Stroyan1-2/+0
Cmake on windows cannot handle multiple projects using generated library code.
2016-10-13layers: Update build for v1.0.30 XML code-genMark Lobodzinski2-6/+6
- Updated cmakefiles for new codegen files: renamed genvk.py to lvl_genvk.py as the file is modified in this repo. - Modified dependencies and parameters of cmake build macros. - Updated reg.py to version 1.0.30 - Updated generator.py to version 1.0.30 Change-Id: Ia87fc7fc68e406a724d5ad9822f1f87b964f9977
2016-10-07Fix Android Windows build scriptCody Northrop1-1/+1
2016-10-06Layers: Implement unique_objects layer using vk.xmlMark Lobodzinski2-10/+3
UniqueObjects was the final LVL layer not using vk.xml for codegen. The new implementation follows the threading layer model which (outside of safe_struct dependencies) is more tolerant of API changes. Also updated for structure and style. build-android/android-generate.bat - Updated for build build-android/android-generate.sh - Updated for build generator.py - Added Unique Objects Generator genvk.py - Added call to U_O generator layers/CMakeLists.txt - Updated for build layers/unique_objects.cpp - New: manually generated code layers/unique_objects.h - Now a true header file vk-layer-generate.py - killed! Change-Id: I0d57871dfd2600829502f0bffd7cf6f926b7d5e7
2016-10-03build: hide layer symbols in android buildMike Stroyan1-10/+18
Hide symbols from layers that don't need to be exported. This makes libraries smaller. It reduces symbol lookup time and call overhead. It prevents possible symbol collisions.
2016-10-03build: make android layers favor their own symbolsMike Stroyan1-0/+8
Use -Bsymbolic linking android layers so they don't get symbols like vkCreateDebugReportCallbackEXT from outside the layer.
2016-08-02toolchain: Update revisions for AndroidCody Northrop6-4/+78
Also add spirv-headers, a new dependency for shaderc.
2016-07-28tests: Create APK version of layer validation testsCody Northrop4-1/+73
2016-07-27android: Lift global offset table size limit (-mxgot)Cody Northrop1-1/+1
Currently the mips64 build for Android is broken due to size increases of core_validation. If you disabled optimizations (-O0), you'll get the following error: relocation truncated to fit: R_MIPS_CALL16 The linker flag to lift the limit is -mxgot, documented here: https://gcc.gnu.org/onlinedocs/gcc-4.0.0/gcc/MIPS-Options.html It is a slight de-optimization for global symbol lookups (3 inst instead of 1). Hopefully we aren't using global lookups in performance critical code.
2016-07-22layers: Update object_tracker layerMark Lobodzinski2-9/+3
Removed dead code, added per-instance and per-device object tracking, (this was broken in codegen'd version with no cross-device validation), updated for new layer architectures and coding standards, removed OT-related codegen -- it is now a standalone cpp file. Change-Id: I64464b855e1b4841c8e3a581387e0e9065b006f7
2016-07-06layers: Remove device_limits from Android buildMark Lobodzinski5-20/+6
Change-Id: I4d63b740f046ee8378267082abc3792aa7a85418
2016-06-24toolchain: Simplify shaderc setup for Windows too, per dc0ac6bcCody Northrop1-1/+1
2016-06-20layers: Remove output paren from android update scriptTobin Ehlis1-1/+1
2016-05-31toolchain: Simplify setup for shaderc, use https instead of git@Cody Northrop1-1/+1
2016-05-16windows: Fix android-generate.batCody Northrop1-0/+2
Mirror changes made to android-generate.sh in cb9ce9e0
2016-05-05layers: Rearchitect Descriptor Set validation codeTobin Ehlis2-0/+3
This change pulls all of the DescriptorSet code out of core_validation.cpp and into its own files/classes in descriptor_set.h/cpp. See header file for complete class documentation. These changes pass tri/cube/smoketest --validate. All related layer validation tests are also updated and passing. Finally, I ran it through mustpass CTS and did not hit any issues related to these changes. These changes not only update the descriptor interface but fix some known lingering bugs with how descriptor updates occurred. This includes now correctly handling updates that cross binding boundaries and updates that write a subset of a binding. Going forward this is a general outline for how we would like to evolve core_validation. That is, we'd like to move the functionality of the checks into reasonable classes and just have core_validation call into those classes to do the majority of the work.
2016-05-05android: Move external deps into project dirCody Northrop5-15/+15
Mirroring commit d288cb9a, stop using directories outside of our project location to host external files. Small changes to update_external_sources_android.sh/bat to find glslang, spirv-tool, shaderc in "external" instead of ".."
2016-04-28android: Move vulkan_wrapper to common (from Cody)Tobin Ehlis1-2/+3
2016-04-28Fix android build for CV -> spirv-tools depChris Forbes1-2/+3
Signed-off-by: Chris Forbes <chrisforbes@google.com>
2016-04-22toolchain: Bump everything to pull in required SPIR-V tools revisionCody Northrop5-7/+24
Encompasses pull request #261 from Chris. Also gets things building again reflecting upstream changesi, mainly HLSL libs for glslang. Desktop build/test results w/ update_external_sources.sh/bat Windows on Skylake: _run_all_tests.ps1, demos with --validate Ubuntu on Skylake: vk_layer_validation_tests, cube --validate Android build/test results w/ update_external_sources_android.sh/bat: Windows: VkLayerValidationTests pass OSX: VkLayerValidationTests pass Ubuntu: VkLayerValidationTests pass
2016-04-20android: Unify source used for build.gradleCody Northrop1-3/+3
In previous commit we modified build.gradle to be cross platform, so we can stop using the windows specific version.