2016-04-22 00:50:11 +00:00
|
|
|
Revision history for SPIRV-Tools
|
|
|
|
|
2017-11-23 23:16:41 +00:00
|
|
|
v2017.2-dev 2017-11-23
|
|
|
|
- Start v2017.2-dev
|
2017-11-27 21:21:26 +00:00
|
|
|
- Optimizer:
|
|
|
|
- Adding dominance analysis
|
2017-11-24 04:08:58 +00:00
|
|
|
- Fixes:
|
|
|
|
#1004: Use after free of an instruction, in remove-duplicates transform
|
2017-11-24 15:17:13 +00:00
|
|
|
#1007: OpImageRead not required to return 4-component vector
|
|
|
|
#1009: OpImageRead can return scalar int/float types
|
2017-11-24 15:55:05 +00:00
|
|
|
#1011: OpImageRead should allow scalar int/float texel types
|
2017-11-23 23:16:41 +00:00
|
|
|
|
2017-11-23 23:12:23 +00:00
|
|
|
v2017.1 2017-11-23
|
2017-10-04 21:02:39 +00:00
|
|
|
- Update README with details on the public_spirv_tools_dev@khronos.org mailing list.
|
2017-09-26 15:30:57 +00:00
|
|
|
- General:
|
2017-11-23 23:12:23 +00:00
|
|
|
- Automatically deploy built artifacts to GitHub Releases
|
|
|
|
- Add a Linker (module combiner). Under development.
|
|
|
|
- Add Android.mk for Android NDK builds.
|
2017-11-08 05:23:42 +00:00
|
|
|
- Add the 'effcee' library as an optional dependency for use in tests.
|
|
|
|
Eventually it will be a required dependency, once downstream projects have
|
2017-11-23 23:12:23 +00:00
|
|
|
a chance to adjust. Requires 're2' library.
|
2017-09-26 15:30:57 +00:00
|
|
|
- Avoid static-duration variables of class type (with constructors).
|
2017-11-23 23:12:23 +00:00
|
|
|
- Hack around bugs in gcc-4.8.1 template handling
|
|
|
|
- Faster opcode lookup
|
2017-08-30 14:13:10 +00:00
|
|
|
- Validator:
|
2017-11-23 23:12:23 +00:00
|
|
|
- Recognize extensions listed on SPIR-V registry,
|
|
|
|
through #25 SPV_AMD_shader_fragment_mask
|
|
|
|
- Validator issues an info message when it sees an unrecognized extension.
|
2017-08-30 14:13:10 +00:00
|
|
|
- Type check basic arithmetic operations
|
2017-11-23 23:12:23 +00:00
|
|
|
- Type check carry/extended arithmetic operations
|
|
|
|
- Type check vector arithmetic operations
|
2017-09-26 15:30:57 +00:00
|
|
|
- Type check Relational and Logical instructions
|
2017-09-18 20:49:11 +00:00
|
|
|
- Type check Bit instructions
|
2017-11-23 23:12:23 +00:00
|
|
|
- Check type uniqueness rules
|
|
|
|
- Check conversion instructions
|
|
|
|
- Check image instructions
|
|
|
|
- Check derivative instructions
|
|
|
|
- Check OpVectorShuffle
|
|
|
|
- Check OpBranchConditional
|
2017-09-08 13:16:15 +00:00
|
|
|
- OpModuleProcessed is only allowed after debug names section and before annotations
|
|
|
|
section.
|
2017-11-23 23:12:23 +00:00
|
|
|
- Checks the right kind of return is called for each function (void or non-void).
|
|
|
|
- Add option to relax type check when storing structs (--relax-store-struct)
|
2017-09-26 15:30:57 +00:00
|
|
|
- Optimizer:
|
2017-11-23 23:12:23 +00:00
|
|
|
- Refactoring internal representation of the module, including:
|
|
|
|
- IRContext: owns a module and manages analyses
|
|
|
|
- Instructions are owned by intrusive lists, and have unique IDs
|
|
|
|
- BasicBlock owns its instruction list.
|
|
|
|
- DefUseManager: change representation of uses, for faster processing
|
|
|
|
on large modules.
|
|
|
|
- Add high level recipes: -O, -Os, and -Oconfig
|
|
|
|
Recipes for -O and -Os are under development.
|
|
|
|
- Add eliminate-dead-function transform
|
2017-09-26 15:30:57 +00:00
|
|
|
- Add strength reduction transform: For now, convert multiply by power of 2
|
|
|
|
to a bit shift.
|
2017-11-23 23:12:23 +00:00
|
|
|
- Add CFG cleanup transform
|
|
|
|
- Add removal of dead module-scope variables
|
|
|
|
- Add merge-return transform for modules without structured control flow
|
|
|
|
- Add redundancy elimination within a basic block (local value numbering)
|
|
|
|
- Extract-insert elimination:
|
|
|
|
- Recognize the case where the first instruction in the sequence is an
|
|
|
|
OpCompositeConstruct or OpConstantComposite
|
|
|
|
- Handle some cases of nested structs
|
|
|
|
- Dead branch elimination now can eliminate entire selection constructs
|
|
|
|
when all arms are dead.
|
|
|
|
- Compressing codec:
|
|
|
|
- Updated algorithm to 1.01, 1.02, 1.03
|
|
|
|
- Not built by default. Use -DSPIRV_BUILD_COMPRESSION=ON to build.
|
|
|
|
- Codec can be parameterized by a customized model.
|
2017-09-02 23:01:03 +00:00
|
|
|
- Fixes:
|
2017-11-23 23:12:23 +00:00
|
|
|
#728: Fix decoration of inlined functions
|
2017-09-01 22:12:15 +00:00
|
|
|
#798: spirv-as should fail when given unrecognized long option
|
2017-09-02 23:01:03 +00:00
|
|
|
#800: Inliner: Fix inlining function into header of multi-block loop
|
2017-09-26 15:30:57 +00:00
|
|
|
#824: Eliminate-local-multi-store: Fix a crash
|
|
|
|
#826: Elimiante-local-multi-store: Fix a crash
|
2017-09-27 14:03:20 +00:00
|
|
|
#827: Fix crash when compact-ids transform runs before another transform.
|
2017-09-25 16:45:48 +00:00
|
|
|
#834: Add Cmake option to build the compressing codec. Off by default.
|
2017-11-23 23:12:23 +00:00
|
|
|
#911: Fix classification of Line and NoLine instructions
|
2017-09-01 20:28:22 +00:00
|
|
|
|
2017-09-01 20:24:27 +00:00
|
|
|
v2017.0 2017-09-01
|
|
|
|
- Update README to describe that assembler, disassembler, and binary parser support
|
|
|
|
are based on grammar files from the SPIRV-Headers repository.
|
|
|
|
|
2017-09-01 20:14:25 +00:00
|
|
|
v2016.7 2017-09-01
|
2017-03-14 16:43:41 +00:00
|
|
|
- Add SPIR-V 1.2
|
|
|
|
- OpenCL 2.2 support is now based on SPIR-V 1.2
|
2017-06-22 14:22:55 +00:00
|
|
|
- Support AMD extensions in assembler, disassembler:
|
|
|
|
SPV_AMD_gcn_shader
|
|
|
|
SPV_AMD_shader_ballot
|
|
|
|
SPV_AMD_shader_explicit_vertex_parameter
|
|
|
|
SPV_AMD_shader_trinary_minmax
|
|
|
|
SPV_AMD_gpu_shader_half_float
|
|
|
|
SPV_AMD_texture_gather_bias_lod
|
|
|
|
SPV_AMD_gpu_shader_int16
|
|
|
|
- Optimizer: Add support for:
|
|
|
|
- Inline all function calls in entry points.
|
2017-08-01 19:33:15 +00:00
|
|
|
- Flatten decoration groups. Fixes #602
|
2017-06-22 14:22:55 +00:00
|
|
|
- Id compaction (minimize Id bound). Fixes #624
|
|
|
|
- Eliminate redundant composite insert followed by extract
|
|
|
|
- Simplify access chains to local variables
|
|
|
|
- Eliminate local variables with a single store, if possible
|
2017-08-01 19:33:15 +00:00
|
|
|
- Eliminate local variables with a several stores, if possible
|
2017-06-22 14:22:55 +00:00
|
|
|
- Eliminate loads and stores in same block to local variables
|
2017-08-01 19:33:15 +00:00
|
|
|
- Eliminate redundant insert/extract to composite values
|
|
|
|
- Aggressive dead instruction elimination
|
|
|
|
- Eliminate dead branches
|
|
|
|
- Merge blocks when the second can only be preceded by the first
|
2017-08-04 21:48:22 +00:00
|
|
|
- Eliminate ommon uniform loads
|
2017-04-20 19:54:10 +00:00
|
|
|
- Assembler: Add option to preserve numeric ids. Fixes #625
|
2016-12-16 20:32:56 +00:00
|
|
|
- Add build target spirv-tools-vimsyntax to generate spvasm.vim, a SPIR-V
|
|
|
|
assembly syntax file for Vim.
|
2017-01-17 20:41:23 +00:00
|
|
|
- Version string: Allow overriding of wall clock timestamp with contents
|
|
|
|
of environment variable SOURCE_DATE_EPOCH.
|
2017-02-28 16:53:05 +00:00
|
|
|
- Validator implements relaxed rules for SPV_KHR_16bit_storage.
|
2017-07-04 16:27:31 +00:00
|
|
|
- CMake installation rules use GNUInstallDirs. For example, libraries
|
|
|
|
will be installed into a lib64 directory if that's the norm for the
|
|
|
|
current system.
|
2016-12-19 18:26:42 +00:00
|
|
|
- Fixes:
|
2017-02-15 18:29:33 +00:00
|
|
|
#500: Parameterize validator limit checks
|
2016-12-19 18:26:42 +00:00
|
|
|
#508: Support compilation under CYGWIN
|
2017-01-05 17:53:02 +00:00
|
|
|
#517: Fix validation when continue (or case) contstruct is also the head of a
|
|
|
|
nested control construct.
|
2017-02-09 19:23:52 +00:00
|
|
|
#551: If a merge block is reachable, it must be *strictly* dominated by its
|
|
|
|
header.
|
2017-02-15 18:31:07 +00:00
|
|
|
#548: Validator: Error when the reserved OpImageSparseSampleProj* opcodes
|
|
|
|
are used.
|
2017-04-02 06:17:41 +00:00
|
|
|
#611: spvtools::Optimizer was failing to save the module to the output
|
|
|
|
binary vector when all passes succeded without changes.
|
2017-05-12 21:35:18 +00:00
|
|
|
#629: The inline-entry-points-all optimization could generate invalidly
|
|
|
|
structured code when the inlined function had early returns.
|
2017-07-04 20:24:46 +00:00
|
|
|
#697: Optimizer's Instruction::ForEachInId method was skipping semantics-id
|
|
|
|
and scope-id.
|
2017-08-10 17:13:33 +00:00
|
|
|
#755: Inliner: Fix inlining of callee with single Return appearing before
|
|
|
|
the end of the function.
|
2017-08-30 18:25:23 +00:00
|
|
|
#776: Fix dead branch elimination in presence of complex but dead control
|
|
|
|
flow.
|
2017-09-01 14:15:42 +00:00
|
|
|
#781: SPV_KHR_variable_pointers allows duplicate pointer types
|
2017-08-30 03:22:07 +00:00
|
|
|
#782: Inliner: Fix remapping of non-label forward references in callee
|
2017-09-01 20:13:12 +00:00
|
|
|
#787: Inliner: Fix remapping of inlined entry block when called from
|
|
|
|
single block loop.
|
|
|
|
#790: Inliner: Fix remapping of inlined entry block when callee has
|
|
|
|
multiple returns.
|
2016-12-13 16:49:50 +00:00
|
|
|
|
2016-12-13 16:49:09 +00:00
|
|
|
v2016.6 2016-12-13
|
2016-09-16 20:12:04 +00:00
|
|
|
- Published the C++ interface for assembling, disassembling, validation, and
|
|
|
|
optimization.
|
2016-10-12 14:47:28 +00:00
|
|
|
- Support SPV_KHR_shader_draw_parameters in assembler, disassembler, parser.
|
2016-12-13 16:49:09 +00:00
|
|
|
- Validator:
|
|
|
|
- Add validator API accepting raw binary words
|
|
|
|
- Increased coverage:
|
|
|
|
- Checks "Data rules" in Universal Validation Rules, section 2.16.1
|
|
|
|
- WIP: Universal Limits.
|
|
|
|
- The minimum mandated upper bounds are checked.
|
|
|
|
- TODO: Parameterize the validator to allow larger limits accepted by
|
|
|
|
a more than minimally capable implementation.
|
|
|
|
- OpSampledImage checks
|
|
|
|
- OpConstantComposite checks
|
|
|
|
- Id bound check
|
|
|
|
- Disasssembler:
|
|
|
|
- Generates friendly GLSL-based names for more builtin variables
|
|
|
|
- Generates friendly names for numeric OpConstant values
|
|
|
|
- Vendor tool info extracted from SPIR-V XML registry file.
|
2016-09-22 14:23:08 +00:00
|
|
|
- Fixes issues:
|
|
|
|
#429: Validator: Allow OpTypeForwardPointer and OpTypeStruct to reference
|
|
|
|
undefined IDs
|
2016-12-13 16:49:09 +00:00
|
|
|
#482: Validator: OpVariable initializer can be an ID of a module-scope variable
|
2016-09-16 20:40:00 +00:00
|
|
|
|
2016-09-16 20:39:40 +00:00
|
|
|
v2016.5 2016-09-16
|
2016-09-16 18:40:02 +00:00
|
|
|
- Support SPV_KHR_shader_ballot in assembler, disassembler, parser.
|
2016-09-13 16:38:42 +00:00
|
|
|
- Disassembler: Generate friendly names for built-in variables.
|
2016-09-12 20:48:05 +00:00
|
|
|
- Partial fixes:
|
|
|
|
#359: Add Emacs helper for automatically diassembling/assembling a SPIR-V
|
|
|
|
binary on file load/save.
|
2016-09-14 15:04:19 +00:00
|
|
|
- Fixes:
|
2016-09-14 19:22:47 +00:00
|
|
|
#414: Validator: Allow OpUndef for composite constants
|
2016-09-14 15:04:19 +00:00
|
|
|
#415: Validator: Phi can use its own value in some cases.
|
2016-09-01 19:38:53 +00:00
|
|
|
|
2016-09-01 19:33:59 +00:00
|
|
|
v2016.4 2016-09-01
|
|
|
|
- Relicensed under Apache 2.0
|
2016-08-04 17:24:08 +00:00
|
|
|
- Add optimization passes (in API and spirv-opt command)
|
|
|
|
- Fold spec constants defined with OpSpecConstantOp and
|
|
|
|
OpSpecConstantComposite to normal constants with fixed value(s).
|
2016-09-01 19:33:59 +00:00
|
|
|
- Fixes issues:
|
|
|
|
#318: Relicensed under Apache 2.0
|
2016-08-24 15:18:16 +00:00
|
|
|
|
2016-08-24 15:17:07 +00:00
|
|
|
v2016.3 2016-08-24
|
2016-08-05 22:19:30 +00:00
|
|
|
- Add target environment enums for OpenCL 2.1, OpenCL 2.2,
|
|
|
|
OpenGL 4.0, OpenGL 4.1, OpenGL 4.2, OpenGL 4.3, OpenGL 4.5.
|
2016-08-03 15:55:14 +00:00
|
|
|
- Add spirv-cfg, an experimental tool to dump the control flow graph
|
|
|
|
as a GraphiViz "dot" graph
|
|
|
|
- Add optimization pass: Eliminate dead constants.
|
2016-08-22 15:38:18 +00:00
|
|
|
- Add spirv-lesspipe.sh filter utility
|
2016-08-10 20:02:18 +00:00
|
|
|
- Fixes issues:
|
2016-08-10 14:40:59 +00:00
|
|
|
#288: Check def-use dominance rules for OpPhi (variable,parent) operands
|
2016-08-24 15:17:07 +00:00
|
|
|
#339: Allow OpUndef in types-constants-global-vars section, as required
|
|
|
|
by SPIR-V 1.0 Rev7, 1.1 Rev 3.
|
2016-08-12 18:19:17 +00:00
|
|
|
#340: Avoid race on mkdir during build
|
2016-08-24 13:47:49 +00:00
|
|
|
#365: Relax PointSize, ClipDistance, CullDistance capability check in all
|
|
|
|
environments not just Vulkan 1.0.
|
2016-08-05 21:10:36 +00:00
|
|
|
|
2016-08-05 21:07:34 +00:00
|
|
|
v2016.2 2016-08-05
|
2016-07-13 22:57:52 +00:00
|
|
|
- Validator is incomplete
|
|
|
|
- Checks ID use block is dominated by definition block
|
2016-07-27 21:02:22 +00:00
|
|
|
- Add optimization passes (in API and spirv-opt command)
|
2016-07-26 16:11:03 +00:00
|
|
|
- Strip debug info instructions
|
|
|
|
- Freeze spec constant to their default values
|
2016-08-05 21:07:34 +00:00
|
|
|
- Allow INotEqual as operation for OpSpecConstantOp
|
2016-07-27 21:02:22 +00:00
|
|
|
- Fixes bugs:
|
|
|
|
#270: validator: crash when continue construct is unreachable
|
|
|
|
#279: validator: infinite loop when analyzing some degenerate control
|
|
|
|
flow graphs
|
2016-08-05 21:07:34 +00:00
|
|
|
#286: validator: don't incorrectly generate def-use error for
|
|
|
|
(variable,parent) parameters to OpPhi
|
2016-08-02 15:59:10 +00:00
|
|
|
#290: disassembler: never generate bare % for an identifier
|
2016-08-04 18:57:09 +00:00
|
|
|
#295: validator: def-use dominance check should ignore unreachable uses
|
2016-08-05 21:07:34 +00:00
|
|
|
#276: validator: allow unreachable continue constructs
|
|
|
|
#297: validator: allow an unreachable block to branch to a reachable
|
|
|
|
merge block
|
2016-07-19 19:04:43 +00:00
|
|
|
|
2016-07-19 19:03:52 +00:00
|
|
|
v2016.1 2016-07-19
|
2016-07-07 21:03:22 +00:00
|
|
|
- Fix https://github.com/KhronosGroup/SPIRV-Tools/issues/261
|
|
|
|
Turn off ClipDistance and CullDistance capability checks for Vulkan.
|
2016-07-08 18:29:52 +00:00
|
|
|
- The disassembler can emit friendly names based on debug info (OpName
|
|
|
|
instructions), and will infer somewhat friendly names for most types.
|
|
|
|
This is turned on by default for the spirv-dis command line tool.
|
2016-07-19 19:03:52 +00:00
|
|
|
- Updated to support SPIR-V 1.1 rev 2
|
|
|
|
- Input StorageClass, Sampled1D capability, and SampledBuffer capability
|
|
|
|
do not require Shader capability anymore.
|
2016-07-04 19:13:08 +00:00
|
|
|
|
2016-06-02 19:29:13 +00:00
|
|
|
v2016.0 2016-07-04
|
2016-04-22 00:50:11 +00:00
|
|
|
|
|
|
|
- Adds v<year>.<index> versioning, with "-dev" indicating
|
|
|
|
work in progress. The intent is to more easly report
|
|
|
|
and summarize functionality when SPIRV-Tools is incorporated
|
|
|
|
in downstream projects.
|
|
|
|
|
|
|
|
- Summary of functionality (See the README.md for more):
|
|
|
|
- Supports SPIR-V 1.1 Rev 1
|
|
|
|
- Supports SPIR-V 1.0 Rev 5
|
|
|
|
- Supports GLSL std450 extended instructions 1.0 Rev 3
|
|
|
|
- Supports OpenCL extended instructions 1.0 Rev 2
|
|
|
|
- Assembler, disassembler are complete
|
|
|
|
- Supports floating point widths of 16, 32, 64 bits
|
|
|
|
- Supports integer widths up to 64 bits
|
|
|
|
- Validator is incomplete
|
2016-06-02 19:29:13 +00:00
|
|
|
- Checks capability requirements in most cases
|
|
|
|
- Checks module layout constraints
|
|
|
|
- Checks ID use-definition ordering constraints,
|
|
|
|
ignoring control flow
|
|
|
|
- Checks some control flow graph rules
|
|
|
|
- Optimizer is introduced, with few available transforms.
|
2016-04-22 00:50:11 +00:00
|
|
|
- Supported on Linux, OSX, Android, Windows
|
2016-06-14 15:45:35 +00:00
|
|
|
|
|
|
|
- Fixes bugs:
|
|
|
|
- #143: OpenCL pow and pown arguments
|