aboutsummaryrefslogtreecommitdiff
path: root/samples/amber.cc
AgeCommit message (Collapse)Author
2021-09-28Update and improve android_gradle (#965)Paul Thomson
* Update CMakeLists.txt files so we can build libamber_ndk.so for Android via CMake. * `android_gradle/`: * Update Gradle version, settings, and build files to match the latest Android sample. Importantly, this removes the use of jcenter and bintray repositories, which were shut down. * Specify NDK version so that Gradle can install required native build tools automatically. * Define externalNativeBuild so Gradle can perform the Android CMake build automatically. * Replace `main` with `android_main` when building the Amber tool as a library for Android to avoid compiler warnings, and rename other Android-related symbols to avoid confusion. Fixes #964
2020-11-18Various fixes for size comparisons (#924)dan sinclair
* Various fixes for size comparisons This CL fixes up various size comparison issues in amber along with running the formatter. * Roll Deps Roll third_party/dxc/ c607bb3c0..f1f60648d (23 commits) https://github.com/Microsoft/DirectXShaderCompiler/compare/c607bb3c032d...f1f60648df03 $ git log c607bb3c0..f1f60648d --date=short --no-merges --format='%ad %ae %s' 2020-11-12 hekotas Fix hctbuild to enable passing of quoted values and values with parenthesis (#3256) 2020-11-12 marijns95 Linux: Implement prefix-counted BSTR allocation in SysAllocStringLen (#3250) 2020-11-11 hekotas Fix dxilconv crash when initialization fails (#3254) 2020-11-10 grroth Handle scalar args to out vector params (#3246) 2020-11-09 jaebaek [spirv] emit OpLine at the end of entry function (#3244) 2020-11-06 hekotas Support for ARM64EC and custom cmake (#3245) 2020-11-05 hekotas Minor refactoring to reduce size of dxilconv.dll (#3240) 2020-11-04 texr Fix lost debug info on DispatchMesh payload in AS (#3243) 2020-11-04 jaebaek Revert "[spirv] add location for DebugDeclare (#3230)" (#3242) 2020-11-04 grroth Initialize conversion remarks result (#3241) 2020-11-03 31109344+adam-yang Made exit values not have to dominate latch in structurize loop exit (#3220) 2020-11-03 hekotas Fix DIA SDK detection for ARM64 and VS2017 (#3239) 2020-11-02 grroth New approach to avoid skipallocas (#3219) 2020-11-02 jaebaek [spirv] add location for DebugDeclare (#3230) 2020-11-02 jaebaek [spirv] wrap instructions with OpNoLine (#3229) 2020-11-02 hekotas Fix DIA SDK detection (#3231) 2020-11-02 Junda.Liu [spirv] Fix [[vk::push_constant]] on ConstantBuffer part II (#3216) 2020-11-02 Junda.Liu [spirv] globallycoherent should generate SPIR-V decoration Coherent (#3217) 2020-10-30 texr Fix precise propagation through various missing paths (#3224) 2020-10-30 texr Fix regression in lib vector arg case when skipping copy-out (#3232) 2020-10-30 31109344+adam-yang Bitpiece crash when value/addr are null (#3227) 2020-10-29 hekotas Add caps check for optional 16bit ops support to several execution tests. (#3222) 2020-10-28 31109344+adam-yang Make sure bitpiece not generated that covers the entire variable (#3223) Created with: roll-dep third_party/dxc Roll third_party/clspv/ 3a11614ee..e0406e705 (22 commits) https://github.com/google/clspv/compare/3a11614ee409...e0406e7053d1 $ git log 3a11614ee..e0406e705 --date=short --no-merges --format='%ad %ae %s' 2020-11-10 alanbaker Implement fdim (#675) 2020-11-10 marco.antognini Lower OpenCL vloadN and vstoreN (#670) 2020-11-09 alanbaker Implement isnormal (#674) 2020-11-07 alanbaker Implement islessgreater (#672) 2020-11-06 alanbaker Implement isordered and isunordered (#671) 2020-11-05 alanbaker Implement ctz (#669) 2020-11-05 alanbaker Implement sub_sat (#668) 2020-11-03 alanbaker Implement mad_sat (#667) 2020-11-03 marco.antognini Lower function call and initial support for LLVM intrinsics (#666) 2020-11-02 kpet Fix hadd/rhadd for signed types (#665) 2020-11-02 alanbaker Fix non-32-bit clz (#664) 2020-10-30 marco.antognini Lower UnaryOperator and handle fast math flags (#663) 2020-10-29 alanbaker Implement rotate in terms of llvm.fshl (#662) 2020-10-29 alanbaker Implement hadd and rhadd (#660) 2020-10-29 alanbaker Add support for OpenCL 2.0 atomic functions (#657) 2020-10-29 alanbaker Update deps (#661) 2020-10-29 marco.antognini Recusiverly lower instructions (#655) 2020-10-28 alanbaker Add convergent attribute in more cases (#658) 2020-10-26 alanbaker Implement add_sat (#656) 2020-10-22 alanbaker Prevent duplicate types and decorations (#654) 2020-10-19 kpet Add support for -cl-std=CL3.0 (#653) 2020-10-19 marco.antognini Lower function parameters and return type (#646) Created with: roll-dep third_party/clspv Roll third_party/shaderc/ 813ef3dc0..88f9156d7 (3 commits) https://github.com/google/shaderc/compare/813ef3dc0d5e...88f9156d7f6a $ git log 813ef3dc0..88f9156d7 --date=short --no-merges --format='%ad %ae %s' 2020-11-09 dneto Replace C-style cast with static_cast 2020-11-12 dneto Roll back googletest to earlier version 2020-11-02 rharrison Roll 6 dependencies (#1144) Created with: roll-dep third_party/shaderc Roll third_party/spirv-tools/ df4198e50..1f2fcddd3 (21 commits) https://github.com/KhronosGroup/SPIRV-Tools/compare/df4198e50eaa...1f2fcddd3963 $ git log df4198e50..1f2fcddd3 --date=short --no-merges --format='%ad %ae %s' 2020-11-13 afdx spirv-opt: Set parent when adding basic block (#4021) 2020-11-13 jaebaek spirv-opt: properly preserve DebugValue indexes operand (#4022) 2020-11-11 dneto Use less stack space when validating Vulkan builtins (#4019) 2020-11-05 46493288+sfricke-samsung spirv-val: Fix SPV_KHR_fragment_shading_rate VUID label (#4014) 2020-11-05 46493288+sfricke-samsung spirv-val: Label Layer and ViewportIndex VUIDs (#4013) 2020-11-05 alanbaker Add dead function elimination to -O (#4015) 2020-11-04 jaebaek Add DebugValue for invisible store in single_store_elim (#4002) 2020-11-04 dnovillo Fix SSA re-writing in the presence of variable pointers. (#4010) 2020-11-04 afdx spirv-fuzz: Fixes to pass management (#4011) 2020-11-03 afdx spirv-fuzz: Add support for reining in rogue fuzzer passes (#3987) 2020-11-03 vasniktel spirv-fuzz: Fix assertion failure in FuzzerPassAddCompositeExtract (#3995) 2020-11-03 vasniktel spirv-fuzz: Fix invalid equation facts (#4009) 2020-11-03 vasniktel spirv-fuzz: Fix bugs in TransformationFlattenConditionalBranch (#4006) 2020-11-03 andreperezmaselco.developer spirv-fuzz: Fix bug related to transformation applicability (#3990) 2020-10-30 jaebaek Temporarily add EmptyPass to prevent glslang from failing (#4004) 2020-10-30 Junda.Liu spirv-opt: Add support to prevent functions from being inlined if they have DontInline flag (#3858) 2020-10-29 jaebaek Propagate OpLine to all applied instructions in spirv-opt (#3951) 2020-10-29 bclayton CMake: Add SPIRV_TOOLS_BUILD_STATIC flag (#3910) 2020-10-29 dneto Avoid copying a ref in a loop (#4000) 2020-10-28 justsid spirv-val: Allow the ViewportIndex and Layer built-ins on SPIR-V 1.5 (#3986) 2020-10-28 dnovillo Simplify logic to decide whether CCP modified the IR (#3997) Created with: roll-dep third_party/spirv-tools Roll third_party/glslang/ 740ae9f60..beec2e4a7 (17 commits) https://github.com/KhronosGroup/glslang/compare/740ae9f60b00...beec2e4a7c4d $ git log 740ae9f60..beec2e4a7 --date=short --no-merges --format='%ad %ae %s' 2020-11-12 mbechard tweak local_size comparison a bit (#2456) 2020-11-12 dneto Avoid spuriously adding Geometry capability for vert, tesc, tese (#2462) 2020-11-12 greg New nonuniform analysis (#2457) 2020-11-09 jhall1024 Implement GL_EXT_terminate_invocation (#2454) 2020-11-06 rdb Fix token-pasting macros not working in preprocessor directives. (#2453) 2020-11-06 laddoc Fix warning in iomapper. (#2449) 2020-11-04 TobyHector Add GL_EXT_shader_image_int64 support (#2409) 2020-11-04 laddoc 8. io mapping refine & qualifier member check & resolver expand (#2396) 2020-11-02 courtneygo Fix build error with Chromium & ANGLE (#2446) 2020-11-02 dev Add new SpirvToolsDisassemble API interface + Improve Doc on existing API interface (#2442) 2020-11-02 justsid Support for CapabilityShaderViewportIndex and CapabilityShaderLayer (#2432) 2020-11-02 jaebaek Do not use PropagateLineInfoPass and RedundantLineInfoElimPass (#2440) 2020-09-09 greg Add texture sample to nonuniform test 2020-09-08 greg Add buffer store to nonuniform tests 2020-09-03 bas SPV: Add NonUniform decoration for constructors. 2020-09-03 bas SPV: Add NonUniform decoration for OpImages created during lowering. 2020-08-24 bas SPV: Add NonUniform decorations for stores. Created with: roll-dep third_party/glslang Roll third_party/spirv-headers/ 7845730ca..5ab5c9619 (2 commits) https://github.com/KhronosGroup/SPIRV-Headers/compare/7845730cab6e...5ab5c96198f3 $ git log 7845730ca..5ab5c9619 --date=short --no-merges --format='%ad %ae %s' 2020-11-04 michael.kinsner Reserve additional loop control bit for Intel extension (NoFusionINTEL) (#175) 2020-11-02 4464295+XAMPPRocky Add EmbarkStudios/rust-gpu to vendor list. (#174) Created with: roll-dep third_party/spirv-headers Roll third_party/vulkan-loader/ 2b0892e15..be6ccb9ec (7 commits) https://github.com/KhronosGroup/Vulkan-Loader/compare/2b0892e15bd8...be6ccb9ecaf7 $ git log 2b0892e15..be6ccb9ec --date=short --no-merges --format='%ad %ae %s' 2020-11-02 shabbyx Reland "Generate libvulkan.so.1 on Linux instead of libvulkan.so" 2020-11-10 shannon build: Update known-good files for 1.2.160 header 2020-11-02 shannon build: Update known-good files for 1.2.159 header 2020-10-30 shabbyx Revert "Generate libvulkan.so.1 on Linux instead of libvulkan.so" 2020-10-22 xantares09 Add an option to disable MASM 2020-10-20 xantares09 Configure vulkan.pc when pkg-config is available 2020-10-22 shabbyx Generate libvulkan.so.1 on Linux instead of libvulkan.so Created with: roll-dep third_party/vulkan-loader Roll third_party/clspv-llvm/ b91a236ee..a6ac2b32f (2881 commits) https://github.com/llvm/llvm-project/compare/b91a236ee1c3...a6ac2b32fbab $ git log b91a236ee..a6ac2b32f --date=short --no-merges --format='%ad %ae %s' 2020-11-16 schuett Convert TypeSpecifiersPipe from Specifiers.h to a scoped enum; NFC 2020-11-16 v.g.vassilev Reland "Move the test compiler setup in a common place. NFCI" 2020-11-16 dmitry.preobrazhensky [AMDGPU][MC] Corrected error position for some operands and modifiers 2020-11-16 mkazantsev [Test] More tests on range checks 2020-11-11 caroline.concatto [AArch64] Add check for widening instruction for SVE. 2020-11-12 matthew.malcomson Hwasan reporting check for dladdr failing 2020-11-16 vitalybuka Revert "Move the test compiler setup in a common place. NFCI" 2020-11-16 vitalybuka [NFC][tsan] Simplify call_pthread_cancel_with_cleanup 2020-11-16 mkazantsev [Test] More tests on range check elimination 2020-11-13 mgorny [lldb] [Process/FreeBSDRemote] Optimize regset pointer logic 2020-11-11 mgorny [lldb] [Process/FreeBSDRemote] Modernize and simplify YMM logic 2020-11-11 mgorny [lldb] [Process/FreeBSDRemote] Access debug registers via offsets 2020-11-11 mgorny [lldb] [Process/FreeBSDRemote] Access FPR via RegisterInfo offsets 2020-11-16 dmitry.preobrazhensky [AMDGPU][MC] Corrected error position for swizzle() 2020-11-16 dmitry.preobrazhensky [AMDGPU][MC] Corrected error position for hwreg() and sendmsg() 2020-11-10 mgorny [lldb] [Process/FreeBSDRemote] Access GPR via reginfo offsets 2020-11-16 nicolas.vasilache [mlir][Linalg] Add support for tileAndDistribute on tensors. 2020-11-13 marukawa [VE] Add pfchv intrinsic instructions 2020-11-16 vitalybuka [sanitizer] Fix StackDepotPrint testing 2020-11-16 benny.kra [LoopFlatten] Fold variable into assert. NFC. 2020-11-16 flo [IRGen] Add !annotation metadata for auto-init stores. 2020-11-09 sjoerd.meijer [LoopFlatten] Widen the IV 2020-11-16 david.penry [ARM] Cortex-M7 schedule 2020-11-16 goncharov.mikhail [lld] Use %t file in test 2020-11-02 protze [OpenMP][Tool] Add Archer option to disable data race analysis for sequential part 2020-11-13 fraser [RISCV] Use a macro to simplify getTargetNodeName 2020-11-16 marukawa [VE] Change variable capitalization 2020-11-16 simon.moll [VP][NFC] Rename to HANDLE_VP_TO_OPC 2020-11-13 git [clang][cli] Add support for options with two flags for controlling the same field. 2020-11-16 lhames [MCJIT] Profile the code generated by MCJIT engine using Intel VTune profiler 2020-11-16 simon.moll [VE] LVLGen sets VL before vector insts 2020-11-16 mkazantsev Recommit "[NFC] Move code between functions as a preparation step for further improvement" 2020-11-15 kazu [JumpThreading] Call eraseBlock when folding a conditional branch 2020-11-15 kazu [IR] Use llvm::is_contained in BasicBlock::removePredecessor (NFC) 2020-11-15 kazu [Loop Fusion] Use pred_empty and succ_empty (NFC) 2020-11-15 kazu [ADCE] Use succ_empty (NFC) 2020-11-16 qshanz [NFC][Test] Add test coverage for IEEE Long Double on Power8 2020-11-15 kazu [BranchProbabilityInfo] Use predecessors(BB) and successors(BB) (NFC) 2020-11-15 kazu [TRE] Use successors(BB) (NFC) 2020-11-15 craig.topper [X86] Fix crash with i64 bitreverse on 32-bit targets with XOP. 2020-11-15 kazu [SanitizerCoverage] Use llvm::all_of (NFC) 2020-11-10 serguei.katkov [IRCE] Use the same min runtime iteration threshold for BPI and BFI checks 2020-11-16 pengfei.wang [CodeGen][X86] Remove unused trivial check-prefixes from all CodeGen/X86 directory. 2020-11-15 richard PR48169: Fix crash generating debug info for class non-type template parameters. 2020-11-15 spatel [InstCombine] reduce code for flip of masked bit; NFC 2020-11-15 spatel [InstCombine] add multi-use demanded bits fold for add with low-bit mask 2020-11-15 spatel [InstCombine] add vector tests for multi-use demanded bits; NFC 2020-11-14 martin [OpenMP] Fix building for windows after adding omp_calloc 2020-11-15 nikita.ppv [AA] Add missing AAQI parameter 2020-11-15 flo [MemorySSA] Add pointer decrement loop clobber test case. (...) 2020-10-19 martin [libcxx] [test] Mark tests that require specific allocation behaviours as libcpp only 2020-10-19 martin [libcxx] [test] Exclude domain socket tests on windows, like bsd/darwin 2020-10-19 martin [libcxx] [test] Add LIBCPP_ONLY() around another test for an implementation detail 2020-10-19 martin [libcxx] [test] Don't require fs::path::operator(string_type&&) to be noexcept 2020-10-19 martin [libcxx] [test] Allow fs::permissions(path, perms, perm_options, error_code) to be noexcept 2020-10-19 martin [libcxx] [test] Do error printfs to stderr in filesystems tests 2020-10-19 martin [clang] Automatically link against oldnames just as linking against libcmt 2020-10-14 dexonsmith clang/{Format,Rewrite}: Stop using SourceManager::getBuffer, NFC 2020-10-15 eugenis Add alloca size threshold for StackTagging initializer merging. 2020-10-19 aeubanks [test][NPM] Fix already-vectorized.ll under NPM 2020-10-19 craig.topper [SelectionDAG][X86] Enable SimplifySetCC CTPOP transforms for vector splats 2020-10-19 craig.topper [X86] Add i32->float and i64->double bitcast pseudo instructions to store folding table. 2020-10-17 Matthew.Arsenault Fix typo 2020-10-19 lhames [ORC] Fix a missing include. 2020-10-19 aeubanks [NPM][test] Fix some LoopVectorize tests under NPM 2020-10-19 nikita.ppv [BatchAA] Add test for incorrect phi cycle result (NFC) 2020-10-19 Tony.Tye [AMDGPU] Correct comment typo in SIMemoryLegaliizer.cpp 2020-10-19 aeubanks [NPM][opt] Run -O# after other passes in legacy PM compatibility mode 2020-10-19 clementval [flang][openacc] Switch to use TODO from D88909 2020-10-19 alexandre.ganea [LLDB][TestSuite] Improve skipIfWindowsAndNonEnglish in decorators.py 2020-10-19 mcinally [SVE] Update vector reduction intrinsics in new tests. 2020-10-13 michaelrj [libc] Add LLVM libc specific functions to llvm_libc_ext.td. 2020-10-19 jay.foad [AMDGPU] Remove MUL_LOHI_U24/MUL_LOHI_I24 2020-10-19 jhuber6 [OpenMP] Fixing OpenMP/driver.c failing on 32-bit hosts 2020-10-19 atmndp [LangRef] Define mustprogress attribute 2020-10-19 mikhail.maltsev [clang] Use SourceLocation as key in std::map, NFCI 2020-10-19 flo [SCEV] Add tests where assumes can be used to improve tripe multiple. 2020-10-16 ldionne [libc++] Add more tests for operator<< on std::complex 2020-10-15 amy.kwan1 [DAGCombiner][PowerPC] Remove isMulhCheaperThanMulShift TLI hook, Use isOperationLegalOrCustom directly instead. 2020-10-19 jonas [llvm] Make obj2yaml and yaml2obj LLVM utilities instead of tools 2020-10-19 Tony.Tye [AMDGPU] Simplify cumode handling in SIMemoryLegalizer 2020-10-17 Tony.Tye [AMDGPU] Extend hip-toolchin-features.hip test 2020-10-17 Tony.Tye [AMDGPU] Correct hsa-diag-v3.s test 2020-10-19 mtrofin [NFC][MC] Type [MC]Register uses in MachineTraceMetrics 2020-10-19 Alexander.Richardson [libc++] Skip tests using constexpr destructors with older clang versions 2020-10-06 sameeranjayant.joshi [Flang][OpenACC] Fix for branching out issue in OpenACC parallel construct. 2020-10-16 ldionne [libc++] Refactor the fuzzing tests 2020-10-19 lhames [ORC] Fix unused variable warning. 2020-10-19 llvm-dev [InstCombine] foldOrOfICmps - only fold (icmp_eq B, 0) | (icmp_ult/gt A, B) for integer types 2020-10-17 mtrofin [ML] Add final reward logging facility. 2020-10-19 nabeel.omer [Dexter][NFC] Add Missing Commands to Commands.md Contents 2019-10-01 ldionne [libc++] Define new/delete in libc++abi only by default 2020-10-19 Casey [libc++][test] Portably silence warnings 2020-10-19 Alexander.Richardson [lit] Avoid calling realpath() for every printed message 2020-10-19 llvm-dev Revert rGa704d8238c86bac: "[InstCombine] Add or((icmp ult/ule (A + C1), C3), (icmp ult/ule (A + C2), C3)) uniform vector support" 2020-10-19 n.james93 [clang-tidy] Add scoped enum constants to identifier naming check 2020-10-16 psteinfeld [flang] Add name match checks for interface procedures 2020-10-19 sam.mccall [clangd] Add test for structured-binding completion. NFC 2020-10-19 georgemitenk0v [MLIR][SPIRVToLLVM] Updated documentation for composite ops 2020-10-19 llvm-dev [InstCombine] Add (icmp ne A, 0) | (icmp ne B, 0) --> (icmp ne (A|B), 0) vector support Created with: roll-dep third_party/clspv-llvm Roll third_party/swiftshader/ df17a7610..e4c1a25cc (56 commits) https://swiftshader.googlesource.com/SwiftShader.git/+log/df17a76102df..e4c1a25cc679 $ git log df17a7610..e4c1a25cc --date=short --no-merges --format='%ad %ae %s' 2020-11-12 capn Use LLVM JIT for MemorySanitizer GN builds 2020-11-12 srisser Update vulkan headers to 1.2.160 2020-11-12 swiftshader.regress Regres: Update test lists @ 4804ac87 2020-11-11 zzyiwei Disable VK_KHR_external_memory_fd for Android build 2020-10-28 natsu Handle image properties from external device memory 2020-11-12 capn Fix conditionally enabling Reactor MSan instrumentation 2020-11-02 capn Implement MemorySanitizer instrumentation of Reactor routines 2020-08-25 nicolascapens Fix backslash interpreted as part of URL 2020-10-26 srisser Implement VK_KHR_shader_float_controls 2020-11-10 amaiorano Subzero: clang-format crosstest, pnacl-llvm, runtime, and unittest 2020-11-10 amaiorano Subzero: clang-format src 2020-11-02 capn Fix LLVM host triple for ORCv2 JIT 2020-11-11 srisser Add SPIR-V tools dependency to BUILD.gn files 2020-11-10 natsu Fix Android build 2020-11-06 amaiorano Add a unit test for bug fixed by swiftshader-cl/50008 2020-11-09 srisser Track SPIR-V version in VkConfig.hpp 2019-04-24 vhau Modify gralloc0 implementation 2020-11-05 jaebaek SpirvShaderDebugger: Correct member index for DebugValue 2020-11-05 capn Fix Android.bp build after SPIRV-Tools update 2020-11-04 amaiorano Subzero: fix invalid arg access on Windows x86 for split variables 2020-11-03 amaiorano Subzero: fix non-deterministic stack layout and code-gen 2020-11-05 srisser Squashed 'third_party/SPIRV-Tools/' changes from f7da52775..a61d07a72 2020-11-04 capn Fix Vulkan benchmarks build 2020-10-02 capn Fix unaligned access on depth values 2020-11-02 capn Fix LLVM alloca array size type 2020-11-02 capn Resolve MSan symbols dynamically 2020-11-02 capn Switch Chromium/Fuchsia to use the LLVM ORCv2 JIT 2020-11-03 nicolascapens Clarify the ICD/loader compatibility 2020-11-03 swiftshader.regress Regres: Update test lists @ b5bf8269 2020-11-03 capn Set LLVM_ENABLE_ABI_BREAKING_CHECKS for Debug builds only 2020-10-30 jari.komppa Add script to verify proper Memset template use 2020-11-02 capn Set the LLVM module's target triple 2020-10-30 capn Consistently remove double colon from llvm namespace 2020-10-30 capn Emulate gather/scatter for MSan builds 2020-10-30 capn Prevent 'most vexing parse' issue 2020-11-02 sugoi Squashed 'third_party/SPIRV-Tools/' changes from 82b378d671..f7da527757 2020-10-23 amaiorano Subzero: fix Ice::BitVector::grow not copying old to new data 2020-10-30 jari.komppa Ignore third party libraries during presubmit 2020-10-28 jari.komppa Add check for vtable in memset template 2020-10-29 sugoi Squashed 'third_party/SPIRV-Tools/' changes from 8a5500656..82b378d67 2020-10-29 sugoi Squashed 'third_party/SPIRV-Headers/' changes from 979924c8b..7845730ca 2020-10-23 capn Fix LLVM pointer element type 2020-10-29 capn Avoid false-positive MSan error for thread_local 2020-10-29 capn Squashed 'third_party/marl/' changes from f1c446ccd..3285a2dfb 2020-10-28 capn Temporarily support both ORCv1 and ORCv2 2020-10-26 amaiorano Apply google3 upstream fixes for latest LLVM 2020-10-22 amaiorano LLVMJIT: fix asserts in latest LLVM 2020-10-08 capn Support MemorySanitizer builds with CMake 2020-10-15 srisser Implement VK_KHR_shader_subgroup_extended_types 2020-10-19 srisser Update VkStringify to use vulkan.hpp to_string 2020-10-21 bclayton LLVMJIT: Fix memory leak 2020-10-10 natsu Update SwiftShader VK AHB to support generic gralloc 2020-10-21 amaiorano Fix when built against latest LLVM (11) 2020-10-20 amaiorano Fix Android build 2020-10-19 amaiorano Subzero: workaround bad codegen for Windows x86 at Om1 optimization level 2020-10-19 bclayton LLVM: Replace legacy ORC JIT with new API Created with: roll-dep third_party/swiftshader Roll third_party/vulkan-headers/ 320af06cb..11c6670b4 (3 commits) https://github.com/KhronosGroup/Vulkan-Headers/compare/320af06cbdd2...11c6670b4a4f $ git log 320af06cb..11c6670b4 --date=short --no-merges --format='%ad %ae %s' 2020-11-15 oddhack Update for Vulkan-Docs 1.2.161 2020-11-08 oddhack Update for Vulkan-Docs 1.2.160 2020-11-01 oddhack Update for Vulkan-Docs 1.2.159 Created with: roll-dep third_party/vulkan-headers Roll third_party/vulkan-validationlayers/ 87b0951f8..9d3ef3258 (70 commits) https://github.com/KhronosGroup/Vulkan-ValidationLayers/compare/87b0951f8dba...9d3ef3258715 $ git log 87b0951f8..9d3ef3258 --date=short --no-merges --format='%ad %ae %s' 2020-11-13 pankratz layers: Removed duplicate type declaration 2020-11-13 mark scripts: Suppress warning for empty difflist 2020-11-12 mark scripts: Remove format checking shell scripts 2020-11-11 mark scripts: Add python format-checking script and update travis 2020-11-05 mark tests: Add oldSwapchain-from-different-device test 2020-11-09 mark threading: Make swapchain objects traceable to parent 2020-11-10 mark tests: Added specialuse extension BP tests 2020-11-10 mark practices: Add checking of specialuse extensions 2020-11-09 mark practices: Check for specialuse extensions and warn 2020-11-09 mark practices: Added specialuse extension table 2020-11-10 karl layers: Fix typedef and spelling 2020-11-09 jeremyg syncval: Convert enum SyncStageAccessFlags to a std::bitset 2020-11-09 jeremyg syncval: Change generated lookup tables to be const. 2020-11-06 marshall tests: Test queue retirement over timeline semaphores 2020-11-06 marshall layers: Fix queue retirement via waited-on timeline semaphores 2020-11-06 rgarcia layers: Check nullDescriptor when validating vertex attributes 2020-11-02 shannon build: Update known-good files for 1.2.159 header 2020-11-05 orbea cmake: Install the header files into the vulkan directory 2020-11-04 liyl build: Allow generating layers json file for cross-compiling 2020-11-05 courtneygo Fix missing source reference 2020-10-31 s.fricke layers: Change copy2 VU from int to string 2020-11-04 orbea cmake: Silence warnings 2020-11-03 orbea cmake: Add BUILD_WERROR 2020-11-01 s.fricke layers: Add VUID 01591 2020-11-01 s.fricke tests: Add VUID 04113 and 04114 2020-11-01 s.fricke layers: Add VUID 04113 and 04114 2020-11-01 s.fricke layers: Label 04101 and 04010 2020-11-03 s.fricke layers: Add Android 24 and 25 support 2020-11-03 tony docs: Fix enabling debug printf 2020-10-31 skdkksfadkadkk layers: Fix checks for 01508 and 01509 2020-11-03 neel.bedekar layers: Remove unnecessary FDM tiling check 2020-11-02 mark tests: Add 2718 security VUID tests 2020-10-30 mark stateless: Fix clang-formatting issues 2020-10-30 mark stateless: Comment out unused legacy vuids 2020-10-30 mark stateless: Output correct VUID for validate_string_array 2020-10-30 mark stateless: Remove non-VU pNext chain cycle check 2020-10-30 mark stateless: Remove warnings from viewport validation 2020-10-30 mark stateless: Use correct VUIDs for drawCount check 2020-10-29 jzulauf syncval: Add raster order rules to load op validation 2020-10-23 jzulauf syncval: Add layout transition info w/o prev access 2020-10-22 jzulauf syncval: Remove unsafe/unused code path. 2020-10-21 jzulauf syncval: Support range gen w/ empty subres ranges 2020-10-19 jzulauf syncval: Add dst scope barriers to all ILT 2020-10-06 jzulauf tests: Add multi dependency syncval test 2020-10-06 jzulauf syncval: Multidep subpass layout transition rework 2020-10-02 jzulauf syncval: Simplify input attachment read tracking 2020-09-29 jzulauf syncval: vkCmdPipelineBarrier multidep support 2020-09-23 jzulauf syncval: Cleanup input attachment read tracking 2020-10-29 tony layers: Fix checks for 02502 and 02503 2020-10-27 tony gpu: Report OpLine info even if no source 2020-10-27 tony tests: Add test for variable count descriptors 2020-10-27 tony layers: Add validation for variable descriptor count 2020-10-27 tony layers: Fix error message 2020-10-28 jeremyg syncval: Add override keyword to ValidationObject method overrides. 2020-10-26 s.fricke layers: Relabel vkCmdDrawIndirectByteCountEXT VUs 2020-10-30 nathaniel layers: Fix test error introduced by #2276 2020-10-29 s.fricke layers: Add extra api names to errors 2020-10-28 s.fricke tests: Add SampleMask Array Limit VUID 2020-10-26 s.fricke layers: Add SampleMask Array Limit VUID 2020-10-24 s.fricke layers: Add table for buffer image copy VUs 2020-10-29 s.fricke layers: Add VK_EXT_4444_formats support 2020-10-30 mark contributing: Updated for Travis CI migration 2020-10-30 mark readme: Updated for Travis migration 2020-10-29 s.fricke layers: Add missing 1.2 overload functions 2020-10-21 s.fricke tests: Add input attachment aspectMask/layout 2020-10-20 s.fricke layers: Remove non-input aspectMask check 2020-10-28 shannon build: Reconcile final 158 VUID inconsistencies 2020-10-21 mark tests: Add invalid stride test for GetQueryPoolResults 2020-10-21 mark corechecks: Added 4519 vuid for GetQueryPoolResults stride 2020-10-28 krzysio.kurek stateless: Add a missing "not" to ValidateGreaterThan Created with: roll-dep third_party/vulkan-validationlayers * Roll deps Roll third_party/dxc/ f1f60648d..489c2e4d3 (6 commits) https://github.com/Microsoft/DirectXShaderCompiler/compare/f1f60648df03...489c2e4d3241 $ git log f1f60648d..489c2e4d3 --date=short --no-merges --format='%ad %ae %s' 2020-11-17 rkarrenberg Move force-zero-store-lifetimes flag to help-hidden, remove accidental check from test. (#3264) 2020-11-17 marijns95 dxcisense: Allocate "TM" classes using IMalloc instead of new (#3258) 2020-11-17 rkarrenberg Enable generation of llvm.lifetime.start/.end intrinsics (#3034) 2020-11-16 ehsannas [spirv] Fix compound MulAssign with type mismatches. (#3255) 2020-11-16 ehsannas [spirv] Use isResourceType to cover SubpassInput. (#3253) 2020-11-16 ehsannas [spirv] Move descriptor scalar replacement to legalization stage. (#3261) Created with: roll-dep third_party/dxc Roll third_party/glslang/ beec2e4a7..7f6559d28 (1 commit) https://github.com/KhronosGroup/glslang/compare/beec2e4a7c4d...7f6559d2802d $ git log beec2e4a7..7f6559d28 --date=short --no-merges --format='%ad %ae %s' 2020-11-16 ShabbyX Compile out code for GL_EXT_shader_image_int64 for ANGLE (#2463) Created with: roll-dep third_party/glslang Roll third_party/clspv-llvm/ a6ac2b32f..7e30989da (134 commits) https://github.com/llvm/llvm-project/compare/a6ac2b32fbab...7e30989dabce $ git log a6ac2b32f..7e30989da --date=short --no-merges --format='%ad %ae %s' 2020-11-17 llvm-dev [IR] ShuffleVectorInst::isIdentityWithPadding - bail on non-fixed-type vector shuffles. 2020-11-17 llvm-dev [X86] nontemporal.ll - replace X32 check prefix with X86. NFC. 2020-11-17 llvm-dev [X86] subvector-broadcast.ll - replace X32 check prefix with X86. NFC. 2020-11-17 jonathan.l.peyton [OpenMP] NFC: remove tabs in message catalog file 2020-11-17 wingo [WebAssembly] Fix parsing of linking section for named global imports 2020-11-05 jonathan.l.peyton [OpenMP][stats] reset serial state when re-entering serial region 2020-11-17 Matthew.Arsenault Linker: Fix linking of byref types 2020-11-16 jay.foad [AMDGPU] Precommit more vccz workaround tests 2020-11-17 anton.a.afanasyev [SLPVectorizer] Fix assert 2020-11-17 powerman1st [clang][AVR] Improve avr-ld command line options 2020-11-16 a.bataev [OPENMP]Fix PR48076: mapping of data member pointer. 2020-11-17 flo [Matrix] Add inline assembly test case. 2020-10-30 anton.a.afanasyev [SLP] Make SLPVectorizer to use `llvm.masked.gather` intrinsic 2020-11-17 wingo [WebAssembly][MC] Remove useless overrides in MCWasmStreamer 2020-11-17 joe.ellis [AArch64][SVE] Support implicit lax vector conversions for SVE types 2020-11-14 paul [TableGen] Clean up Target .td include files 2020-11-17 benny.kra [MLIR] Fix up integration tests after b7382ed3fea08da27530a6d6d53f168fc704e4c4 2020-11-17 andrzej.warzynski [flang][nfc] Add missing dependency in CMake 2020-08-05 flo [ConstraintElimination] Add support for And. 2020-11-17 kadircet [clang-tidy] Make clang-format and include-order-check coherent 2020-11-16 erich.keane Update 'note-candiate' functions to skip lambda-conversion-op-overloads 2020-11-12 sander.desmalen Reland [LoopVectorizer] NFCI: Calculate register usage based on TLI.getTypeLegalizationCost. 2020-11-17 marukawa [VE] Implement JumpTable 2020-11-17 herhut [mlir][std] Canonicalize extract_element(tensor_cast). 2020-11-17 herhut [mlir][std] Fold dim(dynamic_tensor_from_elements, %cst) 2020-11-17 herhut [mlir][linalg] Allow tensor_to_memref in dependence analysis 2020-11-17 marukawa [VE] Correct getMnemonic 2020-11-15 zinenko [mlir] Allow for using interface class name in ODS interface definitions 2020-11-17 zinenko [mlir] Fix Python tests after "module_terminator" migrated to ODS 2020-11-17 n.james93 [clang][NFC] Use SmallString instead of SmallVector<char 2020-11-17 llvm-dev [X86] vector-sext.ll - replace X32 check prefix with X86. NFC. 2020-11-17 llvm-dev [X86] insert-into-constant-vector.ll - replace X32 check prefix with X86. NFC. 2020-11-17 llvm-dev [X86] avx-intel-ocl.ll - replace X32 check prefix with X86. NFC. 2020-11-17 llvm-dev [X86] 2011-10-19-widen_vselect.ll - replace X32 check prefix with X86. NFC. 2020-11-17 llvm-dev [clang][driver] Fix definition/declaration argument name mismatches. NFCI. 2020-11-17 omair.javaid [LLDB] Fix SVE reginfo for sequential offset in g packet 2020-11-04 luke.drummond Escape command line arguments in backtraces 2020-11-17 omair.javaid [LLDB] Update SVE Z reg info to remove invalidate regs 2020-11-17 flo [AsmPrinter] Use getMnemonic for instruction-mix remark. 2020-11-17 sven.vanhaastregt [OpenCL] Stop opencl-c-base.h leaking extension enabling 2020-11-17 sguelton [build] Fix dependencies of LLVMExegesis 2020-11-16 zinenko [mlir] Add basic support for attributes in ODS-generated Python bindings 2020-11-17 hokein.wu [clang-tidy] Fix an abseil-redundant-strcat-calls crash on 0-parameter StrCat(). 2020-11-15 marukawa [VE] Add vbrd intrinsic instructions 2020-11-17 powerman1st [AVR] Optimize the 16-bit NEGW pseudo instruction 2020-11-17 flo [AsmWriter] Factor out mnemonic generation to accessible getMnemonic. 2020-11-13 sguelton [build] normalize components dependencies 2020-11-17 lkail [PowerPC] Add negated abs test using llvm.abs intrinsic. NFC. 2020-11-17 hokein.wu [clang-tidy] Verify the fixes in abseil-redundant-strcat-calls test, NFC 2020-11-17 riddleriver [mlir][NFC] Remove references to Module.h and Function.h (...) 2020-11-14 marukawa [VE] Add lvm/svm intrinsic instructions 2020-11-16 jonas [crashlog] Implement parser for JSON encoded crashlogs 2020-11-16 flo [ConstraintElimination] Add support for Or. 2020-11-16 listmail [LoopVec] Introduce an api for detecting uniform memory ops 2020-11-13 ldionne [libc++] Move the GDB pretty printer tests to the DSL 2020-11-09 kostyak [scudo][standalone] Correct min/max region indices 2020-11-05 silvasean [mlir] Add DecomposeCallGraphTypes pass. 2020-11-16 thakis lld/mach-o: Infer darwinnew from filename ld64.lld.darwinnew too 2020-11-16 listmail [SCEV] Factor out part of wrap flag detection logic [NFC](try 2) 2020-11-16 aschwaighofer [coro] Async coroutines: Make sure we can handle control flow in suspend point dispatch function 2020-11-16 flo [ConstraintElimination] Add complex test cases. 2020-11-16 spatel Revert "[InstCombine] add multi-use demanded bits fold for add with low-bit mask" 2020-11-16 aaron Another speculative fix for lldb related to ConstexprSpecKind 2020-11-16 aaron Speculatively fix the lldb build 2020-11-16 schuett Convert ConstexprKind from Specifiers.h to a scoped enum; NFC 2020-11-16 jonas [dsymutil] Generalize handling of aliases external symbols 2020-11-13 amara [AArch64][GlobalISel] Look through a G_ZEXT when trying to match shift-extended register offsets. 2020-11-16 Scott.Linder [YAMLIO] Correctly diagnose empty alias/anchor 2020-11-16 craig.topper [RISCV] Add MC tests for the User Vector CSRs 2020-11-16 ldionne [libc++] Remove transitional #error message 2020-11-16 vtjnash Reland "[AsmPrinter] fix -disable-debug-info option" 2020-11-16 praveen [Flang][OpenMP] Add semantic checks for OpenMP Depend clause. 2020-11-16 craig.topper [RISCV] When matching SROIW, check all 64 bits of the OR mask 2020-11-13 aeubanks [SimplifyCFG] Respect optforfuzzing in NPM pass 2020-11-16 teemperor [lldb] Skip TestCppKeywordsAsCIdentifiers on Windows 2020-11-13 pklausler [flang] Unsplit COMPLEX operations 2020-11-16 metzman [fuzzer] Disable uncaught-exception on non-Win+undo bad fix 2020-11-16 xun [Coroutine] Allocas used by StoreInst does not always escape 2020-11-16 metzman [fuzzer] Add allocator_may_return_null to uncaught-exception.test. 2020-11-10 Matthew.Arsenault AMDGPU: Select global saddr mode from SGPR pointer 2020-11-16 Mirko.Brkusanin [AMDGPU][GlobalISel] Fix lowerShlSat 2020-11-09 Matthew.Arsenault AMDGPU: Split large offsets when selecting global saddr mode 2020-11-16 wei.huang Fix the compilation assertion due to unreachable BB pruning not deleting the associated BB from the jump tables 2020-11-16 jay.foad [AMDGPU] Add comments. NFC. 2020-11-16 csigg [mlir] Require std.alloc() ops to have canonical layout during LLVM lowering. 2020-11-16 andrzej.warzynski [flang][f18] Remove "-fdebug-resolve-names" 2020-11-15 marukawa [VE] Optimize leaf functions 2020-11-16 david.truby [MLIR][OpenMP] Add omp.wsloop operation 2020-11-16 simon.moll [VE] fastcc and vreg-to-vreg copy 2020-11-14 yhs BPF: make __builtin_btf_type_id() return 64bit int 2020-11-16 Xiangling.Liao [AIX][driver] Include crti[_64].o and -bcdtors also for C language link invocations by default 2020-11-16 teemperor [lldb] Add support for using variables with C++ keywords names in non-C++ expressions 2020-11-16 llvmgnsyncbot [gn build] Port 8dbe44cb293 2020-11-16 flo Add pass to add !annotate metadata from @llvm.global.annotations. 2020-11-16 hanchung [mlir][StandardToSPIRV] Extend support for lowering cmpi to SPIRV. 2020-11-16 francesco.petrogalli [clang][SveEmitter] Fix enum declarations. [NFCI] 2020-11-14 marukawa [VE] Add lsv/lvs intrinsic instructions 2020-11-16 aaron Fix bots that are running with assertions enabled; NFC. 2020-11-16 aaron Adding some explicit casts to appease build bots; NFC 2020-11-16 schuett Convert TypeSpecifierSign from Specifiers.h to a scoped enum; NFC Created with: roll-dep third_party/clspv-llvm Roll third_party/swiftshader/ e4c1a25cc..04515da40 (3 commits) https://swiftshader.googlesource.com/SwiftShader.git/+log/e4c1a25cc679..04515da400d5 $ git log e4c1a25cc..04515da40 --date=short --no-merges --format='%ad %ae %s' 2020-11-12 srisser Don't auto append value of stringified enums 2020-11-13 capn Work around LLVM ORCv2 issue affecting Cuttlefish 2020-11-06 capn Enable Reactor Print() in Debug/RelWithDebInfo builds Created with: roll-dep third_party/swiftshader Roll third_party/vulkan-validationlayers/ 9d3ef3258..0cb8cc8cf (4 commits) https://github.com/KhronosGroup/Vulkan-ValidationLayers/compare/9d3ef3258715...0cb8cc8cfcb2 $ git log 9d3ef3258..0cb8cc8cf --date=short --no-merges --format='%ad %ae %s' 2020-11-11 karl tests: Add test for destroyed buffer during draw validate 2020-11-11 karl layers: Remove duplicate handles from Descriptor subclasses 2020-11-16 mark repo: Update issue templates 2020-11-16 mark repo: Update issue templates Created with: roll-dep third_party/vulkan-validationlayers * suppress on bot
2020-08-25Handle bad integer args gracefully (#906)David Neto
Replace uses of std::stoi with std::sscanf. When parsing fails, std::stoi throws an invalid-argument exception, which is not caught. The standard library then terminates with an abort about the uncaught exception. That's unhelpful to users. Instead, handle bad user input gracefully (without using exceptions) by using std::sscanf or sscanf_s (on Microsoft runtimes).
2020-04-20Added buffer data loading from a text file (#839)asuonpaa
Also moved delegate from options to Amber object to be able to access it from a parser.
2020-04-14Added implementation for loading buffer data from a binary file. (#838)asuonpaa
* Added implementation for loading buffer data from a binary file. * Use PNG, BINARY, and TEXT to select the type of file to load buffer data from.
2020-03-24Added a support for loading a png file into a buffer (#823)asuonpaa
This CL adds the `FILE` parameter to `BUFFER` commands. This allows loading file data into the buffer. Currently only PNG data is supported.
2020-02-06Support targeting Vulkan 1.2 and SPIR-V 1.5 (#781)David Neto
Also, now that Vulkan 1.2 exists, the proper target API for "spv1.4" is Vulkan 1.2 because Vulkan 1.1 supports SPIR-V 1.4 when you also use extension VK_KHR_spirv_1_4.
2019-12-02This CL allows passing the pipeline name to the -B flag. (#733)dan sinclair
Previously we could only extract buffers from the first pipeline in the file. This Cl extends the -B flag to allow providing the pipeline name as a prefix. So, my_pipeline:0:2 would extract from the pipeline named my_pipeline, descriptor set 0, binding 2. Fixes #732
2019-11-27Add ability to extract shader source. (#724)dan sinclair
If the shader is compiled by Amber, the compiled shader data will now be returned when querying for shader information. This allows adding a flag '-w <filename>' to the amber sample program to dump the SPIR-V disassembly of the compiled shaders to a file. This also fixes up the shader name and optimization pass return values in the shader_info to hold the correct information based on pipeline.
2019-10-28Add Vulkan device selection support (#698)Mika Väinölä
Add the `-D` command line option for selecting a physical Vulkan device to run with. Only choose from enumerated physical devices in ChooseVulkanPhysicalDevice and move feature and extension checks to a new CheckVulkanPhysicalDeviceRequirements function. Issue #619
2019-10-25Fix non-existent framebuffer name behavior (#700)Paul Thomson
Previously, a non-existent framebuffer name led to malformed PNG files. Also, any missing framebuffer name caused all following framebuffer extractions to be skipped unnecessarily, leading to further malformed PNG files. Fix #699
2019-09-17Add support for dumping multiple frame buffers. (#636)asuonpaa
Added support for specifying multiple -i and -I command line parameters to allow dumping multiple frame buffers. Fixes #618
2019-09-04Allow recipe to change fence timeout. (#624)dan sinclair
This CL adds an API to the recipe class to set the fence timeout for a given script. The default fence timeout is also bumped from 100ms to 1000ms.
2019-08-03Add option to disable SPIR-V validation (#615)Paul Thomson
This CL adds a command inline flag --disable-spirv-val which will skip the validation of the generated SPIR-V binary.
2019-07-24Optional PNG support (#596)Jaebaek Seo
As discussed in #591, this CL sets lodepng as an optional library.
2019-07-17Specify target version for GLSL compilation (#582)David Neto
Specify target version for GLSL compilation Fixes #549
2019-06-05Update DXC compile options (#538)Jaebaek Seo
2019-05-30Add missing file close (#535)dan sinclair
Fixes #532
2019-05-13Allow setting name of framebuffer to extract. (#507)dan sinclair
Currently the framebuffer must be named 'framebuffer' for the image extraction to work correctly. This CL adds a -I option to the sample app and changes the BufferInfo structure to record if it is an image that is being extracted. Fixes #505
2019-04-19Add flag to log execute calls. (#483)dan sinclair
This CL adds a flag to the sample app and extends the Delgate to allow logging command names before they're executed. This should allow easier tracking down of the command which causes a segv during executing.
2019-04-10Simplify Format::GetBytesize; rename to SizeInBytes (#457)dan sinclair
The SizeInBytes name matches what is used in the DatumType class.
2019-03-28Hide pipeline buffer formats (#420)dan sinclair
The default colour formats are only used in the pipeline class so this CL moves them into the anonymous namespace.
2019-03-22Initialize amber structures. (#408)dan sinclair
This CL adds initializers for the amber::Options and amber::BufferInfo structures.
2019-03-21Move config helper to use destructor (#391)dan sinclair
This CL moves the config helper Shutdown code into the destructor and removes the shutdown methods. Issue #42.
2019-03-18Integrate PPM unit tests. (#379)dan sinclair
This Cl integrates the PPM test into the test suite. Part of this work involved updating the conversion code to return a vector<uint8_t> instead of a std::string.
2019-03-12Implement --log-graphics-calls-time flag (#351)Hugues Evrard
Add the necessary Delegate methods to implement timing of graphics API calls.
2019-03-08Add Delegate and --log-graphics-calls flag (#334)Hugues Evrard
This adds a Delegate which enables users of the amber library to define some hook functions as they like. The first usage here is a Delegate::Log() function to log graphics API calls. In practice, a pointer to the delegate object is passed at engine creation and the Vulkan engine eventually pass it to LoadVulkanPointers() which calls the functions produced by update_vk_wrappers.py. This enable to choose, when loading the Vulkan functions, whether to load a straighforward wrapper to the API command, or to load a lambda that surround the API command with calls to the delegate methods. The --log-graphics-calls flag in the samples sets the delegate to produce a log of API calls.
2019-03-05Add vulkan information into -V output. (#326)dan sinclair
This CL adds information from the vulkan physical device into the -V output when requested. Fixes #323
2019-02-21Output requested images/buffers on probe failure. (#316)dan sinclair
This Cl updates the sample app to allow dumping of image and buffer data even if the probes fail to execute. Fixes #314.
2019-02-21Flip the sample app to be less quiet. (#307)dan sinclair
The sample app outputting just an error code by default is confusing to users. The -s flag was originally created to turn on the summary mode. This CL removes -s from the help (but it still parses) and adds a -q flag instead. The quiet flag is used by the test runner to suppress the summary output.
2019-02-20Differentiate between instance and device extensions. (#304)dan sinclair
This CL adds the necessary code to differentiate that VK_KHR_get_physical_device_properties2 is an instance extension and not a device extension.
2019-02-20Add image dump in PNG (#302)dan sinclair
This change adds support to dump image to PNG format, it relies on the third party 'lodepng' library (zlib license). This CL is based on Pull #301 by @hevrard.
2019-02-20Add -ps option to allow compiling shaders. (#303)dan sinclair
This CL adds a -ps option to the sample app to allow parsing the script and creating the pipeline. This will cause the driver SPIR-V compiler to execute. The script is not run against the engine (and the engine is not created).
2019-02-19Fixup sample app buffer parsing (#300)dan sinclair
This CL fixes the -B flag to default to 0:0 if not provided. It also fixes the code to use : as the separator instead of ,
2019-02-19Vulkan: support buffer dump (#269)Jaebaek Seo
This CL adds support to dump the contents of compute buffers to a file. Fixes #36
2019-02-07Sample app shutdown always (#274)dan sinclair
Currently the shutdown logic is only being run if the -s option is passed. This is a mistake and it should be run all the time.
2019-02-07Add flag to set vulkan version. (#272)dan sinclair
This CL adds a flag to the sample app to allow specifing the version of vulkan to use in the apiVersion field.
2019-02-07Allow setting SPIR-V target environment. (#273)dan sinclair
This CL adds an option to the amber sample application to set the SPIR-V target environment. The environment name matches the names accepted by the other spirv-tools applications. The environment is set into the script and used by the shader compiler.
2019-02-07Vulkan: support disabling validation layer (#270)Jaebaek Seo
Fixes #233
2019-02-06Remove some asserts, use return Results (#260)dan sinclair
2019-01-28Add framebuffer dump in PPM format (#227)Hugues Evrard
This CL plumbs through the ability to dump the framebuffer into a PPM image.
2019-01-15Convert API to C++03 from C++11 for CTS compatibility (#218)dan sinclair
The CTS requires code to not use c++11. This CL converts the various c++11-ism's in the Amber API to C++03.
2019-01-08Vulkan: reuse device using config (#205)Jaebaek Seo
If `VkPhysicalDevice`, `VkDevice`, `VkQueue`, queue family index, required features and extensions are given, Amber reuses them. Fixes #124
2018-12-10Make spirv-tools, googletest and shaderc build optional (#144)dan sinclair
This CL allows spriv-tools, googletest and shaderc to be disabled at build time. (Disabling spriv-tools will also disable shaderc).
2018-12-05 Break apart Amber::Execute method. (#143)dan sinclair
Break apart Amber::Execute method. This CL splits Amber::Execute into a parse and execute step. The Parse step accepts a Recipe to fill out, that Recipe is then passed into the Execute step. The recipe, in the future, will allow retrieving information about the given script.
2018-11-27Fail on unrecognized command line option (#104)David Neto
Issue a warning and exit if an unrecognized argument is encountered.
2018-11-22Add cpplint (#90)dan sinclair
Add cpplint
2018-11-19Windows build support (#71)David Neto
Windows build support * MSVC: Ensure CRT is statically linked into executables * Use fopen_s on Windows to avoid security warning * Use std::strtoull and include its header * Use #if defined(_MSC_VER)
2018-11-19amber tool: Add -e option to set graphics API engine (#65)David Neto
2018-11-09Initial commit of Amber for open sourcedan sinclair
Amber is a multi-API shader test framework. Amber lets you capture and communicate shader bugs with the fluidity and ease of a scripting flow: * No graphics API programming is required. * WIP: Supports Vulkan and [Dawn][Dawn] graphics APIs. * A single text string (or file) maps to a single graphics API pipeline test case. The text includes: * Input data, including buffers and images. * Shaders. * Expectations for the result of running the pipeline. * Shaders can be expressed in binary form (as hex), in SPIR-V assembly, or in a higher level shader language. * After executing the pipeline, result buffers and images can be saved to output files. This is not an officially supported Google product.