blob: 384805c32b5ed1738851539b3b86ae15a8784a95 [file] [log] [blame]
Chris Forbescc5697f2019-01-30 11:54:08 -08001Revision history for SPIRV-Tools
2
Nicolas Capens84c9c452022-11-18 14:11:05 +00003v2022.5-dev 2022-10-12
4 - Start v2022.5-dev
5
6v2022.4 2022-10-12
7 - General
8 - Support Narrow Types in BitCast Folding Rule (#4941)
9 - spirv-diff: Allow no SpecId (#4904)
10 - build: cmake: Add support for GNU/Hurd (#4895)
11 - Implement tool changes for SPV_EXT_mesh_shader. (#4915)
12 - Validator
13 - spirv-val: Add SPV_ARM_core_builtins validation (#4958)
14 - spirv-val: Add an option to use friendly names or not (#4951)
15 - spirv-val: Consistently quote ids in messages (#4950)
16 - spirv-val: Add initial SPV_EXT_mesh_shader validation (#4924)
17 - spirv-val: Make it legal to use arrays of ray queries (#4938)
18 - spirv-val: Better message for using OpTypeBool in input/output (#4901)
19 - spirv-val: Add SPV_KHR_ray_tracing storage class (#4868)
20 - Optimizer
21 - spirv-opt: Fix stacked CompositeExtract constant folds (#4932)
22 - Improve time to build dominators (#4916)
23 - Fix ADCE to mark scope and inlined_at of line instructions as live. (#4910)
24 - Improve algorithm to reorder blocks in a function (#4911)
25 - Add structs to eliminate dead input components (#4894)
26 - spirv-opt: fix copy-propagate-arrays index opti on structs. (#4891)
27 - Fix ADCE to not eliminate top level DebugInfo instructions (#4889)
28 - Fix array copy propagation (#4890)
29
30v2022.3 2022-08-08
Nicolas Capens0405b632022-06-01 14:33:22 -040031 - General
32 - Add SPV_KHR_fragment_shader_barycentric support (#4805)
33 - Add support for SPV_KHR_subgroup_rotate (#4786)
Nicolas Capens84c9c452022-11-18 14:11:05 +000034 - use exec_tools instead of tools for better RBE compatibility (#4837)
35 - Write binary files to stdout in binary on windows. (#4834)
36 - Allow spirv-opt print-all to show pretty IDs (#4888)
37 - Validator
38 - spirv-val: Add PerVertexKHR (#4807)
39 - spirv-opt : Add FixFuncCallArgumentsPass (#4775)
40 - spirv-val: Add CullMaskKHR support (#4792)
41 - Require ColMajor or RowMajor for matrices (#4878)
42 - spirv-val: Add SPV_KHR_ray_query (#4848)
43 - spirv-val: Add SPV_KHR_ray_tracing instructions (#4871)
44 - Implement SPV_NV_bindless_texture related changes (#4847)
45 - spirv-val: Add OpConvertUToAccelerationStructureKHR (#4838)
46 - spirv-val: Add support for SPV_AMD_shader_early_and_late_fragment_tests (#4812)
Nicolas Capens0405b632022-06-01 14:33:22 -040047 - Optimizer
48 - Fold multiply and subtraction into FMA with negation (#4808)
49 - Add more folding for composite instructions (#4802)
50 - spirv-opt: add pass for interface variable scalar replacement (#4779)
51 - Don't try to unroll loop with step count 0. (#4769)
Nicolas Capens84c9c452022-11-18 14:11:05 +000052 - spirv-opt: SPV_NV_bindless_texture related changes (#4870)
Nicolas Capens0405b632022-06-01 14:33:22 -040053 - Linker
54 - linker: Recalculate interface variables (#4784)
Antonio Maiorano41fc88f2022-05-05 11:26:20 -040055
56v2022.2 2022-04-07
Nicolas Capense8c58962022-04-05 13:59:30 -040057 - General
58 - Add OpModuleProcessed to debug opcode (#4694)
59 - Optimizer
60 - Complete handling of RayQueryKHR type (#4690)
61 - Have scalar replacement use undef instead of null (#4691)
62 - Optimize Instruction::Instruction (#4705)
63 - Handle propagation of arrays with decorations (#4717)
64 - spirv-opt: Add OpExecutionModeId support (#4719)
65 - Optimize Type::HashValue (#4707)
66 - Optimize DefUseManager allocations (#4709)
67 - Add pass to remove DontInline function control (#4747)
68 - Better handling of 0xFFFFFFFF when folding vector shuffle (#4743)
69 - Reset the id bound on the module in compact ids (#4744)
70 - spirv-opt: (WIP) Eliminate Dead Input Component Pass (#4720)
71 - Support SPV_KHR_uniform_group_instructions (#4734)
72 - Handle shaders without execution model in spread-volatile-semantics (#4766)
73 - Validator
74 - Fix handling of Nontemporal image operand (#4692)
75 - [spirv-val] Allow 0 Component Count for DebugTypeArray for Shader (#4706)
76 - spirv-val: Validate DebugTypeMatrix (#4732)
77 - spirv-val: Label Vulkan VUID 04734 (#4739)
78 - spirv-val: Label VUID 06491 (#4745)
79 - spirv-val: Disallow array of push constants (#4742)
80 - spirv-val: Label Vulkan RuntimeArray VUID (#4749)
81 - spirv-val: Add Vulkan Image VUID 06214 (#4750)
82 - spirv-val: Add Vulkan Dref not allowed 3D dim VUID (#4751)
83 - spirv-val: Label and add test for PSB Aligned (#4756)
84 - spirv-val: Add Vulkan 32-bit bit op Base (#4758)
85 - spirv-val: Add more Vulkan VUID labels (#4764)
86 - Diff
87 - Introduce spirv-diff (#4611)
88 - Stabilize the output of spirv-diff (#4698)
89 - spirv-diff: Handle OpSpecConstant array sizes (#4700)
90 - spirv-diff: Match OpSpecConstantComposite correctly (#4704)
91 - spirv-diff: Use GetSingleWord*Operand (#4768)
92 - spirv-diff: Basic support for OpTypeForwardPointer (#4761)
93 - spirv-diff: Fix OpTypeFunction matching w.r.t operand count (#4771)
sugoi1b398bf32022-02-18 10:27:28 -050094
95v2022.1 2022-01-26
96 - General
97 - Add SPIR-V 1.6 support to wasm build (#4674)
98 - Improvements to disassembly within PassManager (#4677)
99 - Basic support for SPIR-V 1.6 (#4663)
100 - reflect debug (#4662)
101 - Fix endianness of string literals (#4622)
102 - Optimizer
103 - spirv-opt: add pass to Spread Volatile semantics (#4667)
104 - Fix constant propagation and folding of FClamp instructions (#4651)
105 - Manually fold floating point division by zero (#4637)
106 - Allow ADCE to remove dead inputs (#4629)
107 - Linker
108 - Linker improvements (#4679)
109 * test/linker: Code factorisation and small tweaks
110 * linker: Do not fail when going over limits
111 - Validator
112 - val: interface struct with builtins must be Block (#4665)
113 - Fuzzer
114 - Avoid id bound errors during opt fuzzing (#4658)
115 - Avoid uninitialised read when parsing hex float (#4646)
Nicolas Capens6cacf182021-11-30 11:15:46 -0500116
117v2021.4 2021-11-11
118 - General
119 - Add a WebAssembly build (#3752)
120 - Make cxx exceptions controllable (#4591)
121 - Validator
122 - Improve decoration validation (#4490)
123 - Optimizer
124 - Add spirv-opt pass to replace descriptor accesses based on variable indices (#4574)
125 - Do not fold snegate feeding sdiv (#4600)
126 - Handle overflowing id in merge return (#4606)
127 - Fuzzer
128 - Add libFuzzer target for spirv-fuzz (#4434)
129 - Linter
Alexis Hetu00e0af12021-11-08 08:57:46 -0500130
131v2021.3 2021-08-24
132 - General
133 - Initial support for SPV_KHR_integer_dot_product (#4327)
134 - Add non-semantic vulkan extended instruction set (#4362)
135 - Add common enum for debug info instructions from either opencl or vulkan (#4377)
136 - Validator
137 - Add validation for SPV_EXT_shader_atomic_float16_add (#4325)
138 - Disallow loading a runtime-sized array (#4473)
139 - spirv-val: Validate vulkan debug info similarly to opencl debug info (#4466)
140 - Optimizer
141 - spirv-opt: support SPV_EXT_shader_image_int64 (#4379)
142 - spirv-opt: Add dataflow analysis framework (#4402)
143 - Add control dependence analysis to opt (#4380)
144 - Add spirv-opt convert-to-sampled-image pass (#4340)
145 - spirv-opt: Add handling of vulkan debug info to DebugInfoManager (#4423)
146 - Fuzz
147 - spirv-fuzz: support AtomicLoad (#4330)
148 - spirv-fuzz: Support AtomicStore (#4440)
149 - spirv-fuzz: TransformationWrapVectorSynonym that rewrites scalar operations using vectors (#4376)
150 - spirv-fuzz: Add minimal SPIR-V example to test shaders (#4415)
151 - spirv-fuzz: support building using gn (#4365)
152 - Linter
153 - Add new target for spirv-lint (#4446)
154 - spirv-lint: add basic CLI argument handling (#4478)
155 - Add divergence analysis to linter (#4465)
156
157v2021.2 2021-06-18
158 - General
159 - Support SPV_KHR_subgroup_uniform_control_flow (#4318)
160 - Support Intel extensions for fixed point and hls-float (#4321)
161 - Fix crash when optimizing shaders with DebugPrintf (#4280)
162
163 - Validator
164 - Support Vulkan Storage Class for Execution Model (#4212)
165
166 - Optimizer
167 - Handle SPV_KHR_vulkan_memory_model in dead-code elimination (#4320)
168 - Support folding OpBitcast with numeric constants (#4247)
169
170 - Fuzz
171 - Add tests for MaybeGet* functions in fuzzerutil (#4284)
172 - Fix OutlineFunction in presence of unreachable blocks (#4308)
173 - Fix def-use update in PermutePhiOperands (#4309)
174 - Swap positions of two functions in a module (#4236)
175
176v2021.1 2021-04-19
177 - General
178 - Support SPV_KHR_linkonce_odr, SPV_KHR_expect_assume (#4161)
179 - Fixes for the vscode language server extension (#4150)
180 - Validator
181 - Add validation for SPV_EXT_shader_atomic_float_min_max (#4105)
182 - Add Vulkan Execution Scope checks (#4183)
183 - Vulkan 64-bit OpAtomicStore check (#4163)
184 - Optimizer
185 - Add interpolate legalization pass (#4220)
186 - Fuzz
187 - Various performance optimizations
188 - Do not add too many dead blocks (#4217)
189 - Add WGSL compatibility flag to context (#4193)
190 - Add persistent state to the fuzzer (#4137)
191
192v2020.7 2021-02-16
193 - General
194 - Support pending Intel extensions (#4116)
195 - Remove WebGPU support (#4108)
196 - Validator
197 - Vulkan image gather constant component (#4133)
198 - Add Vulkan PSB64 convert VUID (#4122)
199 - Validate SPV_KHR_workgroup_memory_explicit_layout (#4128)
200 - Validate VK_KHR_zero_initialize_workgroup_memory (#4124)
201 - Add Vulkan image gather offset VUID (#4118)
202 - Label Vulkan atomic semantics VUIDs (#4120)
203 - Label VUID 04662 (#4123)
204 - Label VUID 04683 (#4121)
205 - Add Vulkan EXT builtins (#4115)
206 - Validate Sampled=1 for Vulkan ImageQuerySizeLod, ImageQueryLevels, ImageQueryLod (#4103)
207 - Add Vulkan Memory Scope VUs (#4106)
208 - Add Vulkan Addressing Model check (#4107)
209 - Vulkan atomic storage class (#4079)
210 - Label standalone Vulkan VUID (#4091)
211 - Add Vulkan decroation VUID (#4090)
212 - Add Vulkan FP Mode VUID (#4088)
213 - Fix Vulkan image sampled check (#4085)
214 - Add Vulkan ForwardPointer VUID (#4089)
215 - Add Vulkan ImageTexelPointer format check (#4087)
216 - Add Vulkan Group Operation VUID (#4086)
217 - Add first StandAlone VUID 04633 (#4077)
218 - Add Subgroup VUIDs (#4074)
219 - validate return type of OpImageRead (#4072)
220 - tighter validation of multisampled images (#4059)
221 - validate OpTypeImage Sampled values for environemnts (#4064)
222 - validate StorageImageMultisampled capability (#4062)
223 - Add last TessLevelOuter and TessLevelInner VUID (#4055)
224 - Add last ClipDistance and CullDistance VUID (#4054)
225 - Add last ViewportIndex and Layer VUID (#4053)
226 - Add last Position VUID (#4052)
227 - Allow forward pointer to be used in types generally (#4044)
228 - Optimizer
229 - Mark module as modified if convert-to-half removes decorations (#4127)
230 - Fix binding number calculation in desc sroa (#4095)
231 - Run DCE when SPV_KHR_shader_clock is used (#4049)
232 - Debug Info
233 - Set correct scope and line info for DebugValue (#4125)
234 - Avoid integrity check failures caused by propagating line instructions (#4096)
235 - Linker
236 - Linker usability improvements (#4084)
237 - Instrumentation
238 - Generate differentiated error codes for buffer oob checking (#4097)
239 - Fuzz
240 - Fix OpPhi handling in DuplicateRegionWithSelection (#4065)
Ben Clayton745997b2021-01-21 22:51:51 +0000241
242v2020.6 2020-12-07
243 - General
244 CMake: Add SPIRV_TOOLS_BUILD_STATIC flag (#3910)
245 - Disassembler
246 Add some context comments to disassembly. (#3847)
247 - Optimizer
248 - Take new (raytracing) termination instructions into account. (#4050)
249 - Do run DCE if SPV_KHR_ray_query is used. (#4047)
250 - Handle 8-bit index in elim dead member (#4043)
251 - Add texel buffer out-of-bounds checking instrumentation (#4038)
252 - Update MeshShadingNV dependencies (and land Ray tracing updates) (#4028)
253 - Fix buffer oob instrumentation for matrix refs (#4025)
254 - Fix SSA re-writing in the presence of variable pointers. (#4010)
255 - Add support to prevent functions from being inlined if they have
256 DontInline flag (#3858)
257 - Add SPV_EXT_shader_image_int64 (#3852)
258 - Support SPV_KHR_fragment_shading_rate (#3943)
259 - Fix use-after-move in val/validate.cpp (#3848)
260 - Debug Info
261 - properly preserve DebugValue indexes operand (#4022)
262 - Add DebugValue for invisible store in single_store_elim (#4002)
263 - Propagate OpLine to all applied instructions in spirv-opt (#3951)
264 - Add DebugValue for DebugDecl invisible to value assignment (#3973)
265 - Add DebugValue for function param regardless of scope (#3923)
266 - Debug info preservation in convert-local-access-chains pass (#3835)
267 - Debug info preservation in redundancy-elimination pass (#3839)
268 - Debug info preservation in if-conversion pass (#3861)
269 - Validator
270 - Add validation support for the ray tracing built-in variables (#4041)
271 - Use less stack space when validating Vulkan builtins (#4019)
272 - Fix SPV_KHR_fragment_shading_rate VUID label (#4014)
273 - Label Layer and ViewportIndex VUIDs (#4013)
274 - Allow the ViewportIndex and Layer built-ins on SPIR-V 1.5 (#3986)
275 - Fix validation of OpPhi instructions (#3919)
276 - Fuzz
277 - Fix facts arising from CompositeConstruct (#4034)
278 - Do not flatten conditionals that create synonyms (#4030)
279 - Add support for reining in rogue fuzzer passes (#3987)
280 - Fix assertion failure in FuzzerPassAddCompositeExtract (#3995)
281 - Fix invalid equation facts (#4009)
282 - Fix bugs in TransformationFlattenConditionalBranch (#4006)
283 - Fix bug related to transformation applicability (#3990)
284 - Add expand vector reduction transformation (#3869)
285 - Add FuzzerPassAddCompositeExtract (#3904)
286 - Fix mismatch with shrinker step limit (#3985)
287 - Fix off-by-one error in replayer (#3982)
288 - Get order right for OpSelect arguments (#3974)
289 - Do not add synonym-creating loops in dead blocks (#3975)
290 - Skip OpTypeSampledImage when propagating up (#3976)
291 - Pass OpUndef in function call if needed (#3978)
292 - Fix off-by-one in TransformationCompositeConstruct (#3979)
293 - Tolerate absent ids in data synonym fact management (#3966)
294 - Fix to id availability (#3971)
295 - Fix operand types (#3962)
296 - Don't flatten conditional if condition is irrelevant (#3944)
297 - Do not produce OpPhis of type OpTypeSampledImage (#3964)
298 - Restrict fuzzer pass to reachable blocks (#3970)
299 - Handle more types when extending OpPhi instructions (#3969)
300 - Skip early terminator wrappers when merging returns (#3968)
301 - Avoid irrelevant constants in synonym-creating loops (#3967)
302 - Skip dead blocks in FuzzerPassAddOpPhiSynonyms (#3965)
303 - Avoid the type manager when looking for struct types (#3963)
304 - Fix to TransformationDuplicateRegionWithSelection (#3941)
305 - Skip OpFunction when replacing irrelevant ids (#3932)
306 - Use component-wise selectors when flattening conditional branches (#3921)
307 - Avoid void struct member when outlining functions (#3936)
308 - Do not allow Block-decorated structs when adding parameters (#3931)
309 - Fix to operand id type (#3937)
310 - Handle dead blocks in TransformationEquationInstruction (#3933)
311 - Do not allow sampled image load when flattening conditionals (#3930)
312 - Take care of OpPhi instructions when inlining (#3939)
313 - Fix to TransformationInlineFunction (#3913)
314 - Wrap early terminators before merging returns (#3925)
315 - Lower probability of adding bit instruction synonyms (#3917)
316 - Fix handling of OpPhi in FlattenConditionalBranch (#3916)
317 - Avoid creating blocks without parents (#3908)
318 - Do not allow creation of constants of block-decorated structs (#3903)
319 - Fixes related to irrelevant ids (#3901)
320 - Fix to transformation that adds a synonym via a loop (#3898)
321 - Fix to duplicate region with selection (#3896)
322 - Do not expose synonym facts for non-existent ids (#3891)
323 - Do not add synonyms involving irrelevant ids (#3890)
324 - Do not replace irrelevant ids that are not in blocks (#3892)
325 - Wrap OpKill and similar in function calls (#3884)
326 - Integrate spirv-reduce with shrinker (#3849)
327 - Report fresh ids in transformations (#3856)
328 - Support OpNot bit instruction case (#3841)
329 - Return IR and transformation context after replay (#3846)
Alexis Hetu3eb4dd82020-10-29 21:37:20 -0400330
331v2020.5 2020-09-22
332 - General
333 - Enable building with BUILD_SHARED_LIBS=1 (#3490)
334 - Avoid using /MP4 for clang on windows. (#3662)
335 - Fix compiler error on macOS with XCode12. (#3836)
336 - Optimizer
337 - Preserve OpenCL.DebugInfo.100 through private-to-local pass (#3571)
338 - Preserve debug info in scalar replacement pass (#3461)
339 - Debug info preservation in loop-unroll pass (#3548)
340 - Preserve debug info in dead-insert-elim pass (#3652)
341 - Improve non-semantic instruction handling in the optimizer (#3693)
342 - Let ADCE pass check DebugScope (#3703)
343 - Add undef for inlined void function (#3720)
344 - Fix SSA-rewrite to remove DebugDeclare for variables without loads (#3719)
345 - Handle DebugScope in compact-ids pass (#3724)
346 - Add buffer oob check to bindless instrumentation (#3800)
347 - Validator
348 - Update OpenCL capabilities validation (#3149)
349 - Validator support for non-semantic clspv reflection (#3618)
350 - OpenCL.DebugInfo.100 DebugTypeArray with variable size (#3549)
351 - Only validation locations for appropriate execution models (#3656)
352 - Validate more OpenCL.DebugInfo.100 instructions (#3684)
353 - Allow DebugTypeTemplate for Type operand (#3702)
354 - spirv-val: Add Vulkan VUID labels to BuiltIn (#3756)
355 - Allow SPV_KHR_8bit_storage extension. (#3780)
356 - Validate SPIRV Version number when parsing binary header (#3834)
357 - Reduce
358 - Support reducing a specific function (#3774)
359 - Fuzz
360 - adds TransformationReplaceCopyObjectWithStoreLoad (#3567)
361 - adds TransformationReplaceCopyMemoryWithLoadStore (#3575)
362 - adds TransformationReplaceLoadStoreWithCopyMemory (#3586)
363 - Implement the OpOuterProduct linear algebra case (#3617)
364 - Pass to replace int operands with ints of opposite signedness (#3612)
365 - TransformationMoveInstructionDown (#3477)
366 - Add TransformationMakeVectorOperationDynamic (#3597)
367 - TransformationReplaceAddSubMulWithCarryingExtended (#3598)
368 - FuzzerPassPropagateInstructionsUp (#3478)
369 - add FuzzerPassAddCompositeInserts (#3606)
370 - Add inline function transformation (#3517)
371 - Transformation to replace the use of an irrelevant id (#3697)
372 - Add SPIRV_FUZZ_PROTOC_COMMAND (#3789)
373 - Add TransformationDuplicateRegionWithSelection (#3773)
374 - Transformation to flatten conditional branch (#3667)
375 - Handle OpPhis in TransformationInlineFunction (#3833)
376 - Create synonym of int constant using a loop (#3790)
377 - Support dead blocks in TransformationAddSynonym (#3832)
378 - Linker
Alexis Hetuc00ee6c2020-07-27 10:48:25 -0400379
380v2020.4 2020-07-22
381 - General
382 - Changed variable names to be more descriptive (#3433)
383 - Add support to GPU-AV instrumentation for Task and Mesh shaders (#3512)
384 - Permit Simple and GLSL450 memory model in WEBGPU_0 (#3463)
385 - Support SPV_KHR_terminate_invocation (#3568)
386 - Optimizer
387 - Preserving debug information in optimizations
388 (#3389,#3420,#3425,#3356,#3459,#3444,#3492,#3451,#3497i,#3498,#3542)
389 - Eliminate branches with condition of OpConstantNull (#3438)
390 - Use structured order to unroll loops. (#3443)
391 - Updated desc_sroa to support flattening structures (#3448)
392 - Support OpCompositeExtract pattern in desc_sroa (#3456)
393 - Fix ADCE pass bug for mulitple entries (#3470)
394 - Sink pointer instructions in merge return (#3569)
395 - Validator
396 - Validate location assignments (#3308)
397 - Fix reachability in the validator (#3541)
398 - Reduce
399 - Fuzz
400 - Add support for OpSpecConstant* (#3373)
401 - Add replace linear algebra instruction transformation (#3402)
402 - Implement vector shuffle fuzzer pass (#3412)
403 - Swap operands in OpBranchConditional (#3423)
404 - Permute OpPhi instruction operands (#3421)
405 - Add FuzzerPassAddCopyMemoryInstructions (#3391)
406 - TransformationInvertComparisonOperator (#3475)
407 - Add variables with workgroup storage class (#3485)
408 - Add image sample unused components transformation (#3439)
409 - TransformationReplaceParameterWithGlobal (#3434)
410 - Support adding dead break from back-edge block (#3519)
411 - Fuzzer pass to interchange zero-like constants (#3524)
412 - Linker
413
414v2020.3 2020-05-27
415 - General
Alexis Hetu3eb4dd82020-10-29 21:37:20 -0400416 - Prevent Effcee from installing things when building spirv-tools with testing enabled (#3256)
Alexis Hetuc00ee6c2020-07-27 10:48:25 -0400417 - Update acorn version (#3294)
418 - If SPIRV-Headers is in our tree, include it as subproject (#3299)
419 - allow cross compiling for Windows Store, UWP, etc. (#3330)
420 - Optimizer
421 - Remove deprecated interfaces from instrument passes (#3361)
422 - Preserve debug info in inline pass (#3349)
423 - Handle more cases in dead member elim (#3289)
424 - Preserve debug info in eliminate-dead-functions (#3251)
425 - Fix Struct CFG analysis for single block loop (#3293)
426 - Add tests for recently added command line option (#3297)
427 - Consider sampled images as read-only storage (#3295)
428 - Allow various validation options to be passed to spirv-opt (#3314)
429 - Add debug information analysis (#3305)
430 - Preserve debug info for wrap-opkill (#3331)
431 - refactor inlining pass (#3328)
432 - Add unrolling to performance passes (#3082)
433 - Validator
434 - Add validation support for ImageGatherBiasLodAMD (#3363)
435 - Validate ShaderCallKHR memory scope (#3332)
436 - Validate Buffer and BufferBlock apply only to struct types (#3259)
437 - Reduce
438 - increase default step limit (#3327)
439 - Remove unused uniforms and similar (#3321)
440 - Fuzz
441 - Add support for StorageBuffer (#3348)
442 - Add validator options (#3254)
443 - Limit adding of new variables to 'basic' types (#3257)
444 - Transformation to add OpConstantNull (#3273)
445 - Handling of more fuzzing opportunities (#3277, #3280, #3281, #3290, #3292)
446 - Respect rules for OpSampledImage (#3287)
447 - Do not outline regions that produce pointer outputs (#3291)
448 - Linker
Alexis Hetub8a77462020-03-27 07:59:09 -0400449
450v2020.2 2020-03-26
451 - General:
452 - Support extended instructions in the vscode language server
453 - Make spvOpcodeString part of the public API (#3174)
454 - Added guide to writing a spirv-fuzz fuzzer pass (#3190)
455 - Add support for KHR_ray_{query,tracing} extensions (#3235)
456 - Optimizer
457 - Debug Printf support (#3215)
458 - Add data structure for DebugScope, DebugDeclare in spirv-opt (#3183)
459 - Fix identification of Vulkan images and buffers (#3253)
460 - Validator
461 - Add support for SPV_AMD_shader_image_load_store_lod (#3186)
462 - Add validation rules for OpenCL.DebugInfo.100 extension (#3133)
463 - Adding WebGPU specific Workgroup scope rule (#3204)
464 - Disallow phis of images, samplers and sampled images (#3246)
465 - Reduce
466 - Fuzz
467 - Fuzzer passes to add local and global variables (#3175)
468 - Add fuzzer passes to add loads/stores (#3176)
469 - Fuzzer pass to add function calls (#3178)
470 - Fuzzer pass that adds access chains (#3182)
471 - Fuzzer pass to add equation instructions (#3202)
472 - Add swap commutable operands transformation (#3205)
473 - Add fuzzer pass to permute function parameters (#3212)
474 - Allow OpPhi operand to be replaced with a composite synonym (#3221)
475 - Linker
Ben Claytondc6b76a2020-02-24 14:53:40 +0000476
477v2020.1 2020-02-03
478 - General:
479 - Add support for SPV_KHR_non_semantic_info (#3110)
480 - Support OpenCL.DebugInfo.100 extended instruction set (#3080)
481 - Added support for Vulkan 1.2
482 - Add API function to better handle getting the necessary environment (#3142)
483 - Clarify mapping of target env to SPIR-V version (#3150)
484 - Implement constant folding for many transcendentals (#3166)
485 - Optimizer
486 - Change default version for CreatInstBindlessCheckPass to 2 (#3096, #3119)
487 - Better handling of OpLine on merge blocks (#3130)
Alexis Hetu3eb4dd82020-10-29 21:37:20 -0400488 - Use placeholder switch instead of placeholder loop in MergeReturn pass. (#3151)
Ben Claytondc6b76a2020-02-24 14:53:40 +0000489 - Handle TimeAMD in AmdExtensionToKhrPass. (#3168)
490 - Validator
491 - Fix structured exit validation (#3141)
492 - Reduce
493 - Fuzz
494 - Fuzzer pass to merge blocks (#3097)
495 - Transformation to add a new function to a module (#3114)
496 - Add fuzzer pass to perform module donation (#3117)
497 - Fuzzer passes to create and branch to new dead blocks (#3135)
498 - Fuzzer pass to add composite types (#3171)
499 - Linker:
500 - Remove names and decorations of imported symbols (#3081)
Ben Clayton0b54f132020-01-06 13:38:54 +0000501
502v2019.5 2019-12-11
Ben Claytond552f632019-11-18 11:18:41 +0000503 - General:
504 - Export SPIRV-Tools targets on installation
505 - SPIRV-Tools support for SPIR-V 1.5 (#2865)
506 - Add WebGPU SPIR-V Assembler in JavaScript. (#2876)
507 - Add Bazel build configuration. (#2891)
508 - Add support for building with emscripten (#2948)
509 - Update SPIR-V binary header test for SPIR-V 1.5 (#2967)
510 - Add fuzzer for spirv-as call path (#2976)
511 - Improved CMake install step. (#2963)
512 - Add fuzzer for spirv-dis call path (#2977)
513 - Ensure timestamp does not vary with timezone. (#2982)
Ben Clayton0b54f132020-01-06 13:38:54 +0000514 - Add a vscode extension for SPIR-V disassembly files (#2987)
515 - Add iOS as a supported platform (#3001)
516 - utils/vscode: Add SPIR-V language server support
517 - Respect CMAKE_INSTALL_LIBDIR in installed CMake files (#3054)
518 - Permit the debug instructions in WebGPU SPIR-V (#3063)
519 - Add support for Fuchsia. (#3062)
Ben Claytond552f632019-11-18 11:18:41 +0000520 - Optimizer
521 - Add descriptor array scalar replacement (#2742)
522 - Add pass to wrap OpKill in a function call (#2790)
523 - Fold FMix during constant folding. (#2818)
524 - Add pass to replace AMD shader ballot extension (#2811)
525 - Add pass to make Float32 operation relax precision (#2808)
526 - Add pass to make relax precision operation Float16 (#2808)
527 - Add pass to replace uses of 3 AMD extensions (#2814)
528 - Fold Min, Max, and Clamp instructions. (#2836)
529 - Better handling of OpKill in continues (#2842,#2922,#2933)
530 - Enable OpTypeCooperativeMatrix specialization (#2927)
531 - Support constant-folding UConvert and SConvert (#2960)
Ben Clayton0b54f132020-01-06 13:38:54 +0000532 - Update Offset to ConstOffset bitmask if operand is constant. (#3024)
533 - Improve RegisterSizePasses (#3059)
534 - Folding: perform add and sub on mismatched integer types (#3084)
535 - Graphics robust access: use signed clamp (#3073)
Ben Claytond552f632019-11-18 11:18:41 +0000536 Fixes:
537 - Instrument: Fix version 2 output record write for tess eval shaders. (#2782)
538 - Instrument: Add support for Buffer Device Address extension (#2792)
539 - Fix check for changed binary in API call. (#2798)
540 - For WebGPU<->Vulkan optimization, set correct execution environment (#2834)
541 - Handle OpConstantNull in copy-prop-arrays. (#2870)
542 - Use OpReturn* in wrap-opkill (#2886)
543 - Validator
544 - Add generic builtin validation of target (#2843)
545 - Extra resource interface validation (#2864)
546 - Adding valilidation checks for OpEntryPoint duplicate names and execution mode (#2862)
547 - Relaxed bitcast with pointers (#2878)
548 - Validate physical storage buffer restrictions (#2930)
Ben Clayton0b54f132020-01-06 13:38:54 +0000549 - Add SPV_KHR_shader_clock validation (#2879, #3013)
Ben Claytond552f632019-11-18 11:18:41 +0000550 - Validate that selections are structured (#2962)
551 - Disallow use of OpCompositeExtract/OpCompositeInsert with no indices (#2980)
552 - Check that derivatives operate on 32-bit values (#2983)
Ben Clayton0b54f132020-01-06 13:38:54 +0000553 - Validate array stride does not cause overlap (#3028)
554 - Validate nested constructs (#3068)
Ben Claytond552f632019-11-18 11:18:41 +0000555 Fixes:
556 - Fix validation of constant matrices (#2794)
557 - Update "remquor" validation
558 - Only allow previously declared forward refs in structs (#2920)
559 - Reduce
560 - Remove relaxed precision decorations (#2797)
561 - Reduce/fuzz: improve command line args (#2932)
562 - Improve remove unref instr pass (#2945)
563 Fixes:
564 - Fuzz
565 - Fix add-dead-break and add-dead-continue passes to respect dominance (#2838)
566 - Add fuzzer pass to copy objects (#2853)
567 - Add fuzzer pass to replace ids with synonyms (#2857)
568 - Allow validation during spirv-fuzz replay (#2873)
569 - Employ the "swarm testing" idea in spirv-fuzz (#2890)
570 - reduce/fuzz: improve command line args (#2932)
571 - option to convert shader into a form that renders red (#2934)
572 - Add fuzzer pass to change selection controls (#2944)
573 - add transformation and pass to construct composites (#2941)
574 - Add fuzzer pass to change loop controls (#2949)
575 - Add fuzzer pass to change function controls (#2951)
576 - Add fuzzer pass to add NoContraction decorations (#2950)
Ben Clayton0b54f132020-01-06 13:38:54 +0000577 - Add missing functionality for matrix composites (#2974)
578 - Fuzzer pass to adjust memory access operands (#2968)
579 - Transformation to extract from a composite object (#2991)
580 - Vector shuffle transformation (#3015)
581 - Improve debugging facilities (#3074)
582 - Function outlining fuzzer pass (#3078)
Ben Claytond552f632019-11-18 11:18:41 +0000583
Ben Claytond0f684e2019-08-30 22:36:08 +0100584
585v2019.4 2019-08-08
586 - General:
587 - Memory model support for SPIR-V 1.4
588 - Add new spirv-fuzz tool
589 - Add option for base branch in check_code_format.sh
590 - Removed MarkV and Stats code. (#2576)
591 - Instrument: Add version 2 of record formats (#2630)
592 - Linker: Better type comparison for OpTypeArray and OpTypeForwardPointer (#2580)
593 - Optimizer
594 - Bindless Validation: Instrument descriptor-based loads and stores (#2583)
595 - Better folding for OpSpecConstantOp (#2585, #2614)
596 - Add in individual flags for Vulkan <-> WebGPU passes (#2615)
597 - Handle nested breaks from switches. (#2624)
598 - Optimizer: Handle array type with OpSpecConstantOp length (#2652)
599 - Perform merge return with single return in loop. (#2714)
600 - Add --preserve-bindings and --preserve-spec-constants (#2693)
601 - Remove Common Uniform Elimination Pass (#2731)
602 - Allow ray tracing shaders in inst bindle check pass. (#2733)
603 - Add pass to inject code for robust-buffer-access semantics (#2771)
604 - Treat access chain indexes as signed in SROA (#2776)
605 - Handle RelaxedPrecision in SROA (#2788)
606 - Add descriptor array scalar replacement (#2742)
607 Fixes:
608 - Handle decorations better in some optimizations (#2716)
609 - Change the order branches are simplified in dead branch elim (#2728)
610 - Fix bug in merge return (#2734)
611 - SSA rewriter: Don't use trivial phis (#2757)
612 - Record correct dominators in merge return (#2760)
613 - Process OpDecorateId in ADCE (#2761)
614 - Fix check for unreachable blocks in merge-return (#2762)
615 - Handle out-of-bounds scalar replacements. (#2767)
616 - Don't move debug or decorations when folding (#2772)
617 - Protect against out-of-bounds references when folding OpCompositeExtract (#2774)
618 - Validator
619 - Validate loop merge (#2579)
620 - Validate construct exits (#2459)
621 - Validate OpenCL memory and addressing model environment rules (#2589)
622 - Validate OpenCL environment rules for OpTypeImage (#2606)
623 - Allow breaks to switch merge from nested construct (#2604)
624 - Validate OpenCL environment rules for OpImageWrite (#2619)
625 - Allow arrays of out per-primitive builtins for mesh shaders (#2617)
626 - Validate OpenCL rules for ImageRead and OpImageSampleExplicitLod (#2643)
627 - Add validation for SPV_EXT_fragment_shader_interlock (#2650)
628 - Add builtin validation for SPV_NV_shader_sm_builtins (#2656)
629 - Add validation for Subgroup builtins (#2637)
630 - Validate variable initializer type (#2668)
631 - Disallow stores to UBOs (#2651)A
632 - Validate Volatile memory semantics bit (#2672)
633 - Basic validation for Component decorations (#2679)
634 - Validate that in OpenGL env block variables have Binding (#2685)
635 - Validate usage of 8- and 16-bit types with only storage capabilities (#2704)
636 - Add validation for SPV_EXT_demote_to_helper_invocation (#2707)
637 - Extra small storage validation (#2732)
638 - For Vulkan, disallow structures containing opaque types (#2546)
639 - Validate storage class OpenCL environment rules for atomics (#2750)
640 - Update OpControlBarriers rules for WebGPU (#2769)
641 - Update OpMemoryBarriers rules for WebGPU (#2775)
642 - Update WebGPU validation rules of OpAtomic*s (#2777)
643 Fixes:
644 - Disallow merge targeting block with OpLoopMerge (#2610)
645 - Update vloadn and vstoren validation to match the OpenCL Extended
646 Instruction Set Specification (#2599)
647 - Update memory scope rules for WebGPU (#2725)
648 - Allow LOD ops in compute shaders with derivative group execution modes (#2752)
649 - Reduce
650 Fixes:
Ben Claytonb73b7602019-07-29 13:56:13 +0100651
652v2019.3 2019-05-14
653 - General:
654 - Require Python 3 since Python 2 will out of service soon.
655 - Add a continuous test that does memory checks using the address sanitizer.
656 - Fix the build files so the SPIRV_USE_SANITIZER=address build works.
657 - Packaging top of tree build artifacts again.
658 - Added support for SPIR-V 1.4. (#2550)
659 - Optimizer
660 - Remove duplicates from list of interface IDs in OpEntryPoint instruction (#2449)
661 - Bindless Validation: Descriptor Initialization Check (#2419)
662 - Add option to validate after each pass (#2462)
663 - Add legalization pass to fix mismatched pointer (#2430, #2535)
664 - Add error messages when the input contains unknown instructions. (#2487)
665 - Add pass to convert from WebGPU Spir-V to Vulkan Spir-V and back. (#2495)
666 Fixes:
667 - #2412: Dead memeber elimination should not change input and output variables.
668 - #2405: Fix OpDot folding of half float vectors.
669 - #2391: Dead branch elim should not fold away back edges.
670 - #2441: Removing decorations when doing constant propagation.
671 - #2455: Maintain inst to block mapping in merge return.
672 - #2453: Fix merge return in the face of breaks.
673 - #2456: Handle dead infinite loops in DCE.
674 - #2458: Handle variable pointer in some optimizations.
675 - #2452: Fix dead branch elimination to handle unreachable blocks better.
676 - #2528: Fix undefined bit shift in sroa.
677 - #2539: Change implementation of post order CFG traversal.
678 - Validator
679 - Add validation of storage classes for WebGPU (#2446)
680 - Add validation for ExecutionMode in WebGPU (#2443)
681 - Implement WebGPU specific CFG validation (#2386)
682 - Allow NonWritable to target struct members. (#2420)
683 - Allow storage type mismatch for parameter in relaxed addressing mode.
684 - Allow non memory objects as parameter in relaxed addressing mode.
685 - Disallow nested Blocks and buffer blocks (#2410).
686 - Add validation for SPV_NV_cooperative_matrix (#2404)
687 - Add --strip-atomic-counter-memory (#2413)
688 - Check OpSampledImage is only passed into valid instructions (#2467)
689 - Handle function decls in Structured CFG analysis (#2474)
690 - Validate that OpUnreacahble is not statically reachable (#2473)
691 - Add pass to generate needed initializers for WebGPU (#2481)
692 - Allow images without format for OpenCL. (#2470)
693 - Remove unreachable block validation (#2525)
694 - Reduce runtime of array layout checks (#2534)
695 - Add validation specific to OpExecutionModeId (#2536)
696 - Validate sign of int types. (#2549)
697 - VK_KHR_uniform_buffer_standard_layout validation (#2562)
698 Fixes:
699 - #2439: Add missing DepthGreater case to Fragment only check.
700 - #2168: Disallow BufferBlock on StorageBuffer variables for Vulkan.
701 - #2408: Restrict and Aliased decorations cannot be applied to the same id.
702 - #2447: Improve function call parameter check.
703 - Reduce
704 - Add Pass to remove unreferenced blocks. (#2398)
705 - Allows passing options to the validator. (#2401)
706 - Improve reducer algorithm and other changes (#2472)
707 - Add Pass to remove selections (#2485)
708 - Add passes to simplify branches (#2507)
709 Fixes:
710 - #2478: fix loop to selection pass for loops with combined header/continue block
711
712v2019.2 2019-02-20
713 - General:
714 - Support SPV_EXT_physical_storage_buffer
715 - A number of memory leak have been fixed.
716 - Removed use of deprecated Google test macro:
717 - Changed the BUILD.gn to only build tests in Chromium.
718 - Optimizer
719 - Upgrade memory model improvments for modf and frexp.
720 - Add a new pass to move loads closer to their uses: code sinking.
721 - Invalidating the type manager now invalidates the constnat manager.
722 - Expand instrumentation pass for bindless bounds checking to runtime-sized descriptor arrays.
723 - Add a new pass that removes members from structs that are not used: dead member elimination.
724 Fixes:
725 - #2292: Remove undefined behaviour when folding bit shifts.
726 - #2294: Fixes for instrumentation code.
727 - #2293: Fix overflow when folding -INT_MIN.
728 - #2374: Don't merge unreachable blocks when merging blocks.
729 - Validator
730 - Support SPV_KHR_no_integer_wrap and related decorations.
731 - Validate Vulkan rules for OpTypeRuntimeArray.
732 - Validate NonWritable decoration.
733 - Many WebGPU specific validation rules were added.
734 - Validate variable pointer related function call rules.
735 - Better error messages.
736 Fixes:
737 - #2307: Check forwards references in OpTypeArray.
738 - #2315, #2303: Fixed the layout check for relaxed layout.
739 - #1628: Emit an error when an OpSwitch target is not an OpLabel.
740 - Reduce
741 - Added more documentation for spirv-reduce.
742 - Add ability to remove OpPhi instructions.
743 - Add ability to merge two basic blocks.
744 - Add ability to remove unused functions and unused basic blocks.
745 Fixes:
Chris Forbescc5697f2019-01-30 11:54:08 -0800746
747v2019.1 2019-01-07
748 - General:
749 - Created a new tool called spirv-reduce.
750 - Add cmake option to turn off SPIRV_TIMER_ENABLED (#2103)
751 - New optimization pass to update the memory model from GLSL450 to VulkanKHR.
752 - Recognize OpTypeAccelerationStructureNV as a type instruction and ray tracing storage classes.
753 - Fix GCC8 build.
754 - Add --target-env flag to spirv-opt.
755 - Add --webgpu-mode flag to run optimizations for webgpu.
756 - The output disassembled line number stead of byte offset in validation errors. (#2091)
757 - Optimizer
758 - Added the instrumentation passes for bindless validation.
759 - Added passes to help preserve OpLine information (#2027)
760 - Add basic support for EXT_fragment_invocation_density (#2100)
761 - Fix invalid OpPhi generated by merge-return. (#2172)
762 - Constant and type manager have been turned into analysies. (#2251)
763 Fixes:
764 - #2018: Don't inline functions with a return in a structured CFG contstruct.
765 - #2047: Fix bug in folding when volatile stores are present.
766 - #2053: Fix check for when folding floating pointer values is allowed.
767 - #2130: Don't inline recursive functions.
768 - #2202: Handle multiple edges between two basic blocks in SSA-rewriter.
769 - #2205: Don't unswitch a latch condition during loop unswitch.
770 - #2245: Don't fold branch in loop unswitch. Run dead branch elimination to fold them.
771 - #2204: Fix eliminate common uniform to place OpPhi instructions correctly.
772 - #2247: Fix type mismatches caused by scalar replacement.
773 - #2248: Fix missing OpPhi after merge return.
774 - #2211: After merge return, fix invalid continue target.
775 - #2210: Fix loop invariant code motion to not place code between merge instruction and branch.
776 - #2258: Handle CompositeInsert with no indices in VDCE.
777 - #2261: Have replace load size handle extact with no index.
778 - Validator
779 - Changed the naming convention of outputing ids with names in diagnostic messages.
780 - Added validation rules for UniformConstant variables in Vulkan.
781 - #1949: Validate uniform variable type in Vulkan
782 - Ensure for OpVariable that result type and storage class operand agree (#2052)
783 - Validator: Support VK_EXT_scalar_block_layout
784 - Added Vulkan memory model semantics validation
785 - Added validation checkes spefic to WebGPU environment.
786 - Add support for VK_EXT_Transform_feedback capabilities (#2088)
787 - Add validation for OpArrayLength. (#2117)
788 - Ensure that function parameter's type is not void (#2118)
789 - Validate pointer variables (#2111)
790 - Add check for QueueFamilyKHMR memory scope (#2144)
791 - Validate PushConstants annotation and type (#2140)
792 - Allow Float16/Int8 for Vulkan 1.0 (#2153)
793 - Check binding annotations in resource variables (#2151, #2167)
794 - Validate OpForwardPointer (#2156)
795 - Validate operation for OpSpecConstantOp (#2260)
796 Fixes:
797 - #2049: Allow InstanceId for NV ray tracing
798 - Reduce
799 - Initial commit wit a few passes to reduce test cases.
800 - Validation is run after each reduction step.
801 Fixes:
802
803
804v2018.6 2018-11-07
805 - General:
806 - Added support for the Nvidia Turing and ray tracing extensions.
807 - Make C++11 the CXX standard in CMakeLists.txt.
808 - Enabled a parallel build for MSVC.
809 - Enable pre-compiled headers for MSVC.
810 - Added a code of conduct.
811 - EFFCEE and RE2 are now required when build the tests.
812 - Optimizer
813 - Unrolling loops marked for unrolling in the legalization passes.
814 - Improved the compile time of loop unrolling.
Alexis Hetu3eb4dd82020-10-29 21:37:20 -0400815 - Changee merge-return to create a placeholder loop around the function.
Chris Forbescc5697f2019-01-30 11:54:08 -0800816 - Small improvement to merge-blocks to allow it to merge more often.
817 - Enforce an upper bound for the ids, and add option to set it.
818 - #1966: Report error if there are unreachable block before running merge return
819 Fixes:
820 - #1917: Allow 0 (meaning unlimited) as a parameter to --scalar-replacement
821 - #1915: Improve handling of group decorations.
822 - #1942: Fix incorrect uses of the constant manager. Avoids type mismatches in generated code.
823 - #1997: Fix dead branch elimination when there is a loop in folded selection.
824 - #1991: Fixes legality check in if-conversion.
825 - #1987: Add nullptr check to array copy propagation.
826 - #1984: Better handling of OpUnreachable in ADCE.
827 - #1983: Run merge return on reachable functions only.
828 - #1956: Handled atomic operations in ADCE.
829 - #1963: Fold integer divisions by 0 to 0.
830 - #2019: Handle MemberDecorateStringGOOGLE in ADCE and strip reflect.
831 - Validator
832 - Added validation for OpGroupNonUniformBallotBitCount.
833 - Added validation for the Vulkan memory model.
834 - Added support for VK_KHR_shader_atddomic_int64.
835 - Added validation for execution modes.
836 - Added validation for runtime array layouts.
837 - Added validation for 8-bit storage.
838 - Added validation of OpPhi instructions with pointer result type.
839 - Added checks for the Vulkan memory model.
840 - Validate MakeTexelAvailableKHR and MakeTexelVisibleKHR
841 - Allow atomic function pointer for OpenCL.
842 - FPRounding mode checks were implemented.
843 - Added validation for the id bound with an option to set the max id bound.
844 Fixes:
845 - #1882: Improve the validation of decorations to reduce memory usage.
846 - #1891: Fix an potential infinite loop in dead-branch-elimination.
847 - #1405: Validate the storage class of boolean objects.
848 - #1880: Identify arrays of type void as invalid.
849 - #487: Validate OpImageTexelPointer.
850 - #1922: Validate OpPhi instructions are at the start of a block correctly.
851 - #1923: Validate function scope variable are at the start of the entry block.
852
853v2018.5 2018-09-07
854 - General:
855 - Support SPV_KHR_vulkan_memory_model
856 - Update Dim capabilities, to match SPIR-V 1.3 Rev 4
857 - Automated build bots no run tests for the VS2013 case
858 - Support Chromium GN build
859 - Use Kokoro bots:
860 - Disable Travis-CI bots
861 - Disable AppVeyor VisualStudio Release builds. Keep VS 2017 Debug build
862 - Don't check export symbols on OSX (Darwin): some installations don't have 'objdump'
863 - Reorganize source files and namespaces
864 - Fixes for ClangTidy, and whitespace (passes 'git cl presumit --all -uf')
865 - Fix unused param compile warnings/errors when Effcee not present
866 - Avoid including time headers when timer functionality is disabled
867 - Avoid too-stringent warnings flags for Clang on Windows
868 - Internal refactoring
869 - Add hooks for automated fuzzing
870 - Add testing of command line executables
871 - #1688: Use binary mode on stdin; fixes "spirv-dis <foo.spv" on Windows
872 - Optimizer
873 - The optimizer validates the module before it begins
874 - Add API to register passes by string name
875 - Fold a vector shuffle feeding a vector shuffle
876 - Add -combine-access-chains transform
877 - Refactor how IRContext is handled by passes
878 - Improve bookkeeping for instruction result type and result id
879 - Fix over-duplication of decorations
880 - Fix handling of exits from selections in dead-branch elimination, and dead code
881 elimination.
882 - Fix handling of certain kinds of flow control in merge-return
883 Fixes:
884 - #1721: Fix size bug when folding vector shuffles
885 - #1722: Fix size infinite loop when folding vector shuffles
886 - #1724: Fix finding a constant of a specific type
887 - #1727: Dead branch elim: Reorder blocks if needed to satisfy dominance rule
888 - #1729: Handle VariablePointers cases in various optimizations
889 - #1731: Fix vector shuffle with literal id indicating undef value
890 - #1736: Fix handling of decorations and phis in merge-return
891 - #1787: Fix handling of decorations related to access chains
892 - #1865: Avoid leaking memory for SPIR-V constant values
893 - Validator
894 - Improve error messages
895 - Avoid platform-dependent traversal ordering, to ensure consistent messages
896 - Use libspirv::Instruction where possible
897 - Add option to skip all block layout checks
898 - Validate all type IDs
899 - Validate uses of OpFunction
900 - Validate uses of OpTypeFunction
901 - Disallow a struct containing its own type https://crbug.com/874372
902 - #1685: Vulkan permits non-monotonic offsets for block members
903 - #1697: Enforce block layout rules even when using relaxed block layout option
904 - #1719: Fix line number for vector shuffle valiation error
905 - #1789: Avoid assertion failure when validating some functions
906 - #1800: Fix validation of OpCopyMemorySized
907 - #1822: Stop enforcing struct member offset montonicity
908 - #1831: Disallow void members in structs
909
910v2018.4 2018-07-08
911 - General:
912 - Support SPV_KHR_8bit_storage
913 - Add gclient and presubmit configurations
914 - Enable Kokoro build bots (#1625)
915 - Group tests into fewer executables, reduces load on CI
916 - Port test script to Python 3
917 - Symbol export tests respect SPIRV_SKIP_TESTS
918 - #1596: Operand lookup succeeds if enabled by a capability
919 - #1624: Instruction lookup succeeds if enabled by a capability
920 - Refactoring namespaces:
921 - #1678: Change libspirv to spvtools
922 - Code in source/utils moved into spvtools::utils
923 - Code in source/comp moved into spvtools::comp
924 - Optimizer:
925 - Remove insert-extract-elim pass. Use simplification pass instead.
926 - Preserve instruction-to-block mapping in most passes, to reduce runtime.
927 - Small vector optimization for operands
928 - Add pass to move Private variables to Function. Increase opportunity to optimize.
929 - Fixes:
930 #1120: Check static uses of entry point interfaces
931 #1372: Avoid merging some structs, to preserve names for reflection
932 #1577: Scalar replacement uses only undecorated types.
933 #1578: Fix handling of forward-pointer types, and types embedding pointers
934 to themselves.
935 #1591: Inliner: Callee variable with initializer should have a store at the call site.
936 #1634: Fix crash: Use type id in vector type lookup
937 #1649: Fix assert in compact-ids pass
938 Fix constant folder: ensure it uses the right type
939 #1659: Folding rules added to IRContext. Avoids leak.
940 - Validator
941 - Add work-in-progress WebGPU environment. Disallows OpUndef
942 - #670, #1581: Improve error messages; disassemble instruction
943 - #491: Check structured switches
944 - #937: Check layout rules for Block and BufferBlock in Uniform, StorageBuffer, PushConstant
945 - #1281: Check invalid branches into structured constructs
946 - #1522: Disallow array-of-arrays with DescriptorSets
947 - #1577: Allow duplicate pointer types.
948 - #1581: Better messages: output ID names along with numbers in more cases.
949 - #1597: Check Vulkan 1.1 capabilities
950 - #1618: Check invalid exit from structured case construct
951 - #1622: Run IdPass before DataRulesPass
952 - #1632: Reduce test time by artificially lowering limits in limit test
953 - #1638: Block-decorated structs member order must respect offset order
954 - #1657: Improve CFG validation diagnostics
955 - Khronos SPIR-V #337: GLSL.std.450 Refract instruction Eta param can be any float scalar.
956 - #1606: PushConstant Blocks follow storage-buffer layout rules
957 - #1664: Check layout of StorageBuffer variables with Block decoration, using storage buffer
958 rules
959 - #1666: Layout validation should permit {vec3; float} packing
960 - #1637, #1668: Layout validation uses RowMajor, ArrayStride, MatrixStride properly
961 - Linker
962 - Avoid buffer overrun when creating OpModuleProcessed
963
964v2018.3 2018-05-25
965 - General:
966 - Support SPV_EXT_descriptor_indexing
967 - Support SPV_GOOGLE_decorate_string
968 - Support SPV_GOOGLE_hlsl_functionality1
969 - Support SPV_NV_shader_subgroup_partitioned
970 - Use "unified1" grammar from SPIRV-Headers
971 - Simplify support for new extensions. Assembler, disassembler, and simple validation
972 support is automatic if new tokens are introduced with appropriate extension
973 attributes in the "unified1" SPIR-V core grammar.
974 - Disassembler: Emit more digits on floating point, to reliably reproduce all
975 significand bits. (Use std::max_digits10 instead of std::digits10)
976 - Fix compilation for old XCode versions: Explicit construction required for std::set.
977 - Optimizer:
978 - Add --strip-reflect
979 - Add --time-report
980 - Add --loop-fission
981 - Add lop fusion.
982 - Add loop peeling pass and internal utility.
983 - Improve optimizer runtime.
984 - Merge-return now works with structured control flow.
985 - New (faster) SSA rewriter to convert local loads and stores to SSA IDs and phis.
986 Can replace load/store elimination passes.
987 - Fix instruction folding case: insertion that feeds and extract, when the extract
988 remains.
989 - Fold OpDot.
990 - Fold OpFNegate.
991 - Fold multply and divide of same value.
992 - Fold FClamp feeding a compare.
993 - Fold OpLoad feeding an extract, to reduce excessive copying. (#1547)
994 - Fold Fmix feeding an extract.
995 - Use simplification pass instead of insert-extract elimination.
996 - Constant fold OpVectorTimesScalar.
997 - Copy propagate arrays, in simple cases.
998 - Aggressive dead code elimination: Can remove more instructions, e.g. derivatives.
999 - Aggressive dead code elimination: Remove Workgroup variables that are written but not read.
1000 - Better handling of OpImageTexelPointer
1001 - Initial utilities for scalar evolution.
1002 - Add Vector dead code elimination.
1003 - Each pass can only run once.
1004 - Allow code hosting in if-conversion.
1005 - Add external interface for adding a PassToken, so external code can make their own
1006 passes.
1007 - Fixes:
1008 #1404: Don't optimize away the compute compute workgroup size constant.
1009 #1407: Remove a bad assertion
1010 #1456: Fix bug in SSA rewriter related to variables updated in loops.
1011 #1487: Fix long runtime in Dead insertion elimination: Don't revist select phi nodes.
1012 #1492: Aggressive dead code elimination can remove OpDecorateStringGOOGLE.
1013 #1527: Fix inlining of functions having OpKill and OpUnreachable.
1014 #1559: Fix assert failure in reduce-load-size pass.
1015 #1556: Aggressive dead code elimination: Fix handling of OpCopyMemory.
1016 - Validator:
1017 - Check Vulkan built-in variables
1018 - Check Vulkan-specific atomic result type rule.
1019 - Relax control barrier check for SPIR-V 1.3. Fixes #1427
1020 - Check OpPhi.
1021 - Check OpMemoryModel.
1022 - Stop checking sizes derived from spec-constants.
1023 - Re-enable checks for OpUConvert.
1024 - Vulkan: Fix check for PrimitiveId: Permit as Input in fragment shader.
1025 - Validate binary version for the given target environment.
1026 - Add tests for OpBranch checks.
1027 - Vulkan 1.1: Check scope for non-uniform subgroup operations.
1028 - Fix checks for SPV_AMD_gpu_shader_int16.
1029 - Fix logical layout check for OpDecorateId.
1030 - Fix checks for ViewportIndex & Layer for Vulkan and SPV_EXT_shader_viewport_index_layer.
1031 - Fixes:
1032 #1470: Vulkan: Don't restrict WorkgroupSize to Input storage class.
1033 #1469: Vulkan: Permit Subgroup memory scope for Vulkan 1.1.
1034 #1472: Per-vertex variable validation fixes.
1035 #1483: Valdiate barrier execution scopes for Vulkan 1.1.
1036 - Fixes:
1037 #898: Linker properly removes FuncParamAttr from imported symbols.
1038 #924, #1174: Fix handling of decoration groups in optimizer, linker.
1039
1040v2018.2 2018-03-07
1041 - General:
1042 - Support SPIR-V 1.3 and Vulkan 1.1.
1043 - Default target environment is now SPIR-V 1.3. For command-line tools,
1044 use the --target-env option to override the default. Examples:
1045 # Generate a SPIR-V 1.0 binary instead of SPIR-V 1.3
1046 spirv-as --target-env spv1.0 a.spvasm -o a.spv
1047 spirv-as --target-env vulkan1.0 a.spvasm -o a.spv
1048 # Validate as Vulkan 1.0
1049 spirv-val --target-env vulkan1.0 a.spv
1050 - Support SPV_GOOGLE_decorate_string and SPV_GOOGLE_hlsl_functionality1
1051 - Fixes:
1052 - Fix Android.mk build. Compilation was failing due to missing definitions of
1053 SpvCapabilityFloat16ImageAMD and other enumerated values.
1054 - Optimizer: Avoid generating duplicate names when merging types.
1055 - #1375: Validator: SPV_AMD_gpu_shaer_half_float implicitly allows declaration
1056 of the 16-bit floating point type.
1057 - #1376: Optimizer: Avoid folding half-precision float.
1058
1059v2018.1 2018-03-02
1060 - General:
1061 - Support Visual Studio 2013 again. (Continue support for VS 2015 and VS 2017.)
1062 - Support building SPIRV-Tools as a shared library.
1063 - Improve the HLSL legalization optimization recipe. #1311
1064 - Optimizer:
1065 - General speedups.
1066 - Remove generic dead code elimination functionality from transforms:
1067 --eliminate-local-single-block
1068 --eliminate-local-single-store
1069 --eliminate-local-multi-store
1070 To recover the previous behaviour, a recipe using those transforms should now
1071 also invoke the --eliminate-dead-code-aggressive transform.
1072 - Improve folding, including coverage for floating point, OpSelect, and arithmetic
1073 with non-trivial constant operands.
1074 - Add loop-invariant code motion pass.
1075 - Add loop-unrolling pass, for honouring unroll hits.
1076 - Add loop-unswitch pass.
1077 - Add instruction simplification pass.
1078 - Aggressive dead code elimination: Understands capability hierarchy when finding
1079 instructions it can eliminate (combinators). (PR #1268)
1080 - CCP can now fold floating point arithmetic. #1311
1081 - Validator:
1082 - Validate barrier instructions.
1083 - Check Vulkan-specific rules for atomics.
1084 - Check Vulkan prohibition of Location or Component decorations on BuiltIn variables.
1085 - Linker:
1086 - Add --verify-ids option
1087 - Add option to allow a resulting module to be partially linked.
1088 - Handle OpModuleProcessed (instructions in SPIR-V layout section 7c)
1089 - Fixes:
1090 - #1265: Optimizer: Fix use-after free bug in if-conversion. (Fix object lifecycle bug
1091 in type manager.)
1092 - #1282: Fix new warnings found by GCC 8.0.1.
1093 - #1285: Optimizer: Fix random failures during inlining. (Dangling references in DefUseManager)
1094 - #1295: Optimizer: Fix incorrect handling of Phi nodes in CCP.
1095 - #1300: Fix CCP: avoid bad CCP transitions and unsettled values.
1096 - #1304: Avoid static-duration variables of class type (with constructors).
1097 - #1323: Fix folding of an insert composite feeding a composite extract.
1098 - #1339: Fix CCP: Handle OpConstantNull boolean values as conditions.
1099 - #1341: DCEInst: Keep atomic instructions (and some others with side effects).
1100 - #1354: Don't fold integer division.
1101 - #1357: Support OpConstantNull in folding.
1102 - #1361: CCP: Fix handling of non-constant module-scope values
1103
1104v2018.0 2018-02-02
1105 - General
1106 - VisualStudio 2013 is no longer supported. VisualStudio 2015 is supported.
1107 - Use "include/unified1" directory from SPIRV-Headers. Requires recent SPIRV-Headers source.
1108 - Disassembler: spirv-dis adds --color option to force color disassembly.
1109 - Optimizer:
1110 - Add pass to eliminate dead insertions.
1111 - Aggressive dead code elimination now removes OpSwitch constructs.
1112 - Block merging occurs in more cases.
1113 - Add driver workaround transform: replace OpUnreachable with harmless branch to merge.
1114 - Improve instruction folding framework.
1115 - Add loop analysis.
1116 - Add scalar replacement of aggregates to size-optimization recipe.
1117 - Add pass to replace instructions invalid for a shader stage, with a harmless value.
1118 This changes the semantics of the program! Not for general use!
1119 - Rearragne and add passes to performance-optimization recipe, to produce better results.
1120 - Validator:
1121 - Validate OpenCL extended instructions.
1122 - Shaders can't perform atomics on floats.
1123 - Validate memory semantics values in atomics.
1124 - Validate instruction-adjacency constraints, e.g. OpPhi predecessors, merge instructions
1125 immediately precede branches.
1126 - Fixes:
1127 - PR 1198: Optimizer: Fix CCP in presence of matrix constants.
1128 - #1199: Optimizer: Fix CCP: don't propagate spec constants.
1129 - #1203: Optimizer: Fix common uniform elim bug introduced by refactoring.
1130 - #1210: Optimizer: Aggressive dead code elimination: Fix 'break' identification.
1131 - #1212: Optimizer: Aggressive dead code elimination: Was skipping too many instructions.
1132 - #1214: Optimizer: Aggressive dead code elimination: Fix infinite loop.
1133 - #1228: Optimizer: Fix CCP: Handling of varying Phi nodes; was resulting in infinite loop.
1134 - #1245: Optimizer: Dead branch elimination: Avoid a null pointer dereference.
1135 - #1250: Optimizer: Dead branch elimination: Avoid spuriously reporting a change.
1136
1137v2017.3 2018-01-12
1138 - General:
1139 - Support DebugInfo extended instruction set, targeted at OpenCL environments.
1140 See the SPIR-V Registry.
1141 - Generate a SPIRV-Tools.pc file for pkg-config.
1142 - Optimizer:
1143 - Progress for legalization of code generated from HLSL (issue #1118):
1144 - Add --legalize-hlsl option to run transforms used to transform intermediate
1145 code generated by HLSL to SPIR-V for Vulkan compilers. Those compilers
1146 normally run these transforms automatically. This option is used for developing
1147 those transforms.
1148 - Add Private-to-Function variable conversion for modules with logical
1149 addressing.
1150 - Add --ccp: SSA Conditional Constant Propagation (CCP)
1151 - Add --print-all to show disassembly for each optimization pass.
1152 - Internal: Add loop descriptors and post-order tree iterator.
1153 - Generalized dead branch elimination
1154 - Aggressive dead code elimination (ADCE) now removes dead functions and
1155 module-scope variables.
1156 - Vector extract/insert elimination now optimizes through some cases of
1157 VectorShuffle, and GLSL.std.450 Mix extended instruction.
1158 - Validator:
1159 - Add validation for GLSL.std.450 extended instruction set.
1160 - Check out of bounds composite accesses, where that's statically computable.
1161 Fixes #1112.
1162 - Check upper bits of literal numbers that aren't a multiple of 32-bits wide.
1163 - More validation of primitive instructions
1164 - Add optional "relaxed" checking logical addressing mode to permit some
1165 cases of pointer-to-pointer. Contributes to HLSL legalization (issue #1118).
1166 - Fixes:
1167 #1100: Validator: Image operand Sample can be used with OpImageSparseFetch,
1168 OpImageSparseRead.
1169 #1108: Remove duplicates transform was incorrectly removing non-duplicate
1170 decorations.
1171 #1111: Optimizer's type manager could reference deleted memory.
1172 #1112: Fix decoration equality check, e.g. it is now symmetric.
1173 #1129: Validator now disallows Dim=SupbassData for OpImageSparseRead.
1174 #1143: Fix CCP: Was generating incorrect code for loops.
1175 #1153: Fix CCP crash.
1176 #1154: Optimizer's internal instruction-to-block mappings were sometimes
1177 inconsistent.
1178 #1159: Fix CCP infinite loop.
1179 #1168: Fix dead branch elimination intermittently generating incorrect code.
1180 Fixes https://github.com/KhronosGroup/glslang/issues/1205
1181 #1186: Fix validation of PackDouble2x32 and UnpackDouble2x32
1182
1183v2017.2 2017-12-15
1184 - General:
1185 - Support OpenCL 1.2, 2.0 target environments, including embedded profiles
1186 - Add CONTRIBUTING.md
1187 - Fix exit status code for spirv-link
1188 - Disassember: Enable emitting ANSI colour codes to a string
1189 - Library avoids polluting global namespace. The libraries can export C and C++
1190 symbols starting with "spv", or in a C++ namespace. Add a test for this.
1191 - Linux release builds include debug information, for easier profiling
1192 - Build bots no longer test VisualStudio 2013
1193 - Testing dependency RE2 requires VisualStudio 2015 or later
1194 - Build bots check code formatting
1195 - Optimizer:
1196 - Add --skip-validation to spirv-opt
1197 - Add dominance tree analysis
1198 - Add generic value propagation engine
1199 - Add global redundancy elimination within a function
1200 - Add scalar replacement of function-scope variables of composite type
1201 - Aggressive dead code elimination: Remove empty loops
1202 - Killing an instruction notifies the IRContext
1203 - IRContext::KillInst deletes the instruction
1204 - Move CFG analysis to IRContext
1205 - Add constant manager
1206 - Fix: Don't consider derivative instructions as combinators.
1207 - Fix: Don't delete an instruction twice in local dead-code-elimination
1208 - Fix: Don't consider derivative instructions as combinators.
1209 - Validator:
1210 - Finish checking of image instructions (Section 3.32.10)
1211 - Check sparse image instructions
1212 - Check OpTypeImage, OpTypeSampleImage
1213 - Check composite instructions (Section 3.32.12)
1214 - Check atomic instructions (Section 3.32.18)
1215 - Check OpEmitStreamVertex, OpEndStreamPrimitive instructions
1216 - Re-enable validation of OpCopyObject
1217 - OpKill, image ImplicitLod and QueryLod instructions can only be used in Fragment
1218 shaders.
1219 - Fixes for image instruction validation:
1220 - Lod image operand only usable with ExplicitLod and OpImageFetch
1221 - ExplicitLod Lod image operand must be float scalar
1222 - OpImageFectch Lod image operand must be int scalar
1223 - OpImageGather component operand must be 32-bits (integer scalar)
1224 - OpImageQuerySizeLod Lod must be integer scalar
1225 - Fixes:
1226 #622: Remove names and decorations when inlining
1227 #989: Aggressive dead code elim: Don't optimize away live breaks from a loop
1228 #991: Fix validation of SPV_AMD_shader_ballot
1229 #1004: Use after free of an instruction, in remove-duplicates transform
1230 #1007: OpImageRead not required to return 4-component vector
1231 #1009: OpImageRead can return scalar int/float types
1232 #1011: OpImageWrite should allow scalar int/float texel types
1233 #1012: Fix validat Dref type check
1234 #1017: Load-store elimination considers variable initializations
1235 #1034: Fix Windows debug build: operator< should be a weak ordering
1236 #1083: Inlining: Set parent (function) for each inlined basic block.
1237 #1075: Aggressive dead code elimination: Was leaving dangling references to
1238 removed blocks.
1239
1240v2017.1 2017-11-23
1241 - Update README with details on the public_spirv_tools_dev@khronos.org mailing list.
1242 - General:
1243 - Automatically deploy built artifacts to GitHub Releases
1244 - Add a Linker (module combiner). Under development.
1245 - Add Android.mk for Android NDK builds.
1246 - Add the 'effcee' library as an optional dependency for use in tests.
1247 Eventually it will be a required dependency, once downstream projects have
1248 a chance to adjust. Requires 're2' library.
1249 - Avoid static-duration variables of class type (with constructors).
1250 - Hack around bugs in gcc-4.8.1 template handling
1251 - Faster opcode lookup
1252 - Validator:
1253 - Recognize extensions listed on SPIR-V registry,
1254 through #25 SPV_AMD_shader_fragment_mask
1255 - Validator issues an info message when it sees an unrecognized extension.
1256 - Type check basic arithmetic operations
1257 - Type check carry/extended arithmetic operations
1258 - Type check vector arithmetic operations
1259 - Type check Relational and Logical instructions
1260 - Type check Bit instructions
1261 - Check type uniqueness rules
1262 - Check conversion instructions
1263 - Check image instructions
1264 - Check derivative instructions
1265 - Check OpVectorShuffle
1266 - Check OpBranchConditional
1267 - OpModuleProcessed is only allowed after debug names section and before annotations
1268 section.
1269 - Checks the right kind of return is called for each function (void or non-void).
1270 - Add option to relax type check when storing structs (--relax-store-struct)
1271 - Optimizer:
1272 - Refactoring internal representation of the module, including:
1273 - IRContext: owns a module and manages analyses
1274 - Instructions are owned by intrusive lists, and have unique IDs
1275 - BasicBlock owns its instruction list.
1276 - DefUseManager: change representation of uses, for faster processing
1277 on large modules.
1278 - Add high level recipes: -O, -Os, and -Oconfig
1279 Recipes for -O and -Os are under development.
1280 - Add eliminate-dead-function transform
1281 - Add strength reduction transform: For now, convert multiply by power of 2
1282 to a bit shift.
1283 - Add CFG cleanup transform
1284 - Add removal of dead module-scope variables
1285 - Add merge-return transform for modules without structured control flow
1286 - Add redundancy elimination within a basic block (local value numbering)
1287 - Extract-insert elimination:
1288 - Recognize the case where the first instruction in the sequence is an
1289 OpCompositeConstruct or OpConstantComposite
1290 - Handle some cases of nested structs
1291 - Dead branch elimination now can eliminate entire selection constructs
1292 when all arms are dead.
1293 - Compressing codec:
1294 - Updated algorithm to 1.01, 1.02, 1.03
1295 - Not built by default. Use -DSPIRV_BUILD_COMPRESSION=ON to build.
1296 - Codec can be parameterized by a customized model.
1297 - Fixes:
1298 #728: Fix decoration of inlined functions
1299 #798: spirv-as should fail when given unrecognized long option
1300 #800: Inliner: Fix inlining function into header of multi-block loop
1301 #824: Eliminate-local-multi-store: Fix a crash
1302 #826: Elimiante-local-multi-store: Fix a crash
1303 #827: Fix crash when compact-ids transform runs before another transform.
1304 #834: Add Cmake option to build the compressing codec. Off by default.
1305 #911: Fix classification of Line and NoLine instructions
1306
1307v2017.0 2017-09-01
1308 - Update README to describe that assembler, disassembler, and binary parser support
1309 are based on grammar files from the SPIRV-Headers repository.
1310
1311v2016.7 2017-09-01
1312 - Add SPIR-V 1.2
1313 - OpenCL 2.2 support is now based on SPIR-V 1.2
1314 - Support AMD extensions in assembler, disassembler:
1315 SPV_AMD_gcn_shader
1316 SPV_AMD_shader_ballot
1317 SPV_AMD_shader_explicit_vertex_parameter
1318 SPV_AMD_shader_trinary_minmax
1319 SPV_AMD_gpu_shader_half_float
1320 SPV_AMD_texture_gather_bias_lod
1321 SPV_AMD_gpu_shader_int16
1322 - Optimizer: Add support for:
1323 - Inline all function calls in entry points.
1324 - Flatten decoration groups. Fixes #602
1325 - Id compaction (minimize Id bound). Fixes #624
1326 - Eliminate redundant composite insert followed by extract
1327 - Simplify access chains to local variables
1328 - Eliminate local variables with a single store, if possible
1329 - Eliminate local variables with a several stores, if possible
1330 - Eliminate loads and stores in same block to local variables
1331 - Eliminate redundant insert/extract to composite values
1332 - Aggressive dead instruction elimination
1333 - Eliminate dead branches
1334 - Merge blocks when the second can only be preceded by the first
1335 - Eliminate ommon uniform loads
1336 - Assembler: Add option to preserve numeric ids. Fixes #625
1337 - Add build target spirv-tools-vimsyntax to generate spvasm.vim, a SPIR-V
1338 assembly syntax file for Vim.
1339 - Version string: Allow overriding of wall clock timestamp with contents
1340 of environment variable SOURCE_DATE_EPOCH.
1341 - Validator implements relaxed rules for SPV_KHR_16bit_storage.
1342 - CMake installation rules use GNUInstallDirs. For example, libraries
1343 will be installed into a lib64 directory if that's the norm for the
1344 current system.
1345 - Fixes:
1346 #500: Parameterize validator limit checks
1347 #508: Support compilation under CYGWIN
1348 #517: Fix validation when continue (or case) contstruct is also the head of a
1349 nested control construct.
1350 #551: If a merge block is reachable, it must be *strictly* dominated by its
1351 header.
1352 #548: Validator: Error when the reserved OpImageSparseSampleProj* opcodes
1353 are used.
1354 #611: spvtools::Optimizer was failing to save the module to the output
1355 binary vector when all passes succeded without changes.
1356 #629: The inline-entry-points-all optimization could generate invalidly
1357 structured code when the inlined function had early returns.
1358 #697: Optimizer's Instruction::ForEachInId method was skipping semantics-id
1359 and scope-id.
1360 #755: Inliner: Fix inlining of callee with single Return appearing before
1361 the end of the function.
1362 #776: Fix dead branch elimination in presence of complex but dead control
1363 flow.
1364 #781: SPV_KHR_variable_pointers allows duplicate pointer types
1365 #782: Inliner: Fix remapping of non-label forward references in callee
1366 #787: Inliner: Fix remapping of inlined entry block when called from
1367 single block loop.
1368 #790: Inliner: Fix remapping of inlined entry block when callee has
1369 multiple returns.
1370
1371v2016.6 2016-12-13
1372 - Published the C++ interface for assembling, disassembling, validation, and
1373 optimization.
1374 - Support SPV_KHR_shader_draw_parameters in assembler, disassembler, parser.
1375 - Validator:
1376 - Add validator API accepting raw binary words
1377 - Increased coverage:
1378 - Checks "Data rules" in Universal Validation Rules, section 2.16.1
1379 - WIP: Universal Limits.
1380 - The minimum mandated upper bounds are checked.
1381 - TODO: Parameterize the validator to allow larger limits accepted by
1382 a more than minimally capable implementation.
1383 - OpSampledImage checks
1384 - OpConstantComposite checks
1385 - Id bound check
1386 - Disasssembler:
1387 - Generates friendly GLSL-based names for more builtin variables
1388 - Generates friendly names for numeric OpConstant values
1389 - Vendor tool info extracted from SPIR-V XML registry file.
1390 - Fixes issues:
1391 #429: Validator: Allow OpTypeForwardPointer and OpTypeStruct to reference
1392 undefined IDs
1393 #482: Validator: OpVariable initializer can be an ID of a module-scope variable
1394
1395v2016.5 2016-09-16
1396 - Support SPV_KHR_shader_ballot in assembler, disassembler, parser.
1397 - Disassembler: Generate friendly names for built-in variables.
1398 - Partial fixes:
1399 #359: Add Emacs helper for automatically diassembling/assembling a SPIR-V
1400 binary on file load/save.
1401 - Fixes:
1402 #414: Validator: Allow OpUndef for composite constants
1403 #415: Validator: Phi can use its own value in some cases.
1404
1405v2016.4 2016-09-01
1406 - Relicensed under Apache 2.0
1407 - Add optimization passes (in API and spirv-opt command)
1408 - Fold spec constants defined with OpSpecConstantOp and
1409 OpSpecConstantComposite to normal constants with fixed value(s).
1410 - Fixes issues:
1411 #318: Relicensed under Apache 2.0
1412
1413v2016.3 2016-08-24
1414 - Add target environment enums for OpenCL 2.1, OpenCL 2.2,
1415 OpenGL 4.0, OpenGL 4.1, OpenGL 4.2, OpenGL 4.3, OpenGL 4.5.
1416 - Add spirv-cfg, an experimental tool to dump the control flow graph
1417 as a GraphiViz "dot" graph
1418 - Add optimization pass: Eliminate dead constants.
1419 - Add spirv-lesspipe.sh filter utility
1420 - Fixes issues:
1421 #288: Check def-use dominance rules for OpPhi (variable,parent) operands
1422 #339: Allow OpUndef in types-constants-global-vars section, as required
1423 by SPIR-V 1.0 Rev7, 1.1 Rev 3.
1424 #340: Avoid race on mkdir during build
1425 #365: Relax PointSize, ClipDistance, CullDistance capability check in all
1426 environments not just Vulkan 1.0.
1427
1428v2016.2 2016-08-05
1429 - Validator is incomplete
1430 - Checks ID use block is dominated by definition block
1431 - Add optimization passes (in API and spirv-opt command)
1432 - Strip debug info instructions
1433 - Freeze spec constant to their default values
1434 - Allow INotEqual as operation for OpSpecConstantOp
1435 - Fixes bugs:
1436 #270: validator: crash when continue construct is unreachable
1437 #279: validator: infinite loop when analyzing some degenerate control
1438 flow graphs
1439 #286: validator: don't incorrectly generate def-use error for
1440 (variable,parent) parameters to OpPhi
1441 #290: disassembler: never generate bare % for an identifier
1442 #295: validator: def-use dominance check should ignore unreachable uses
1443 #276: validator: allow unreachable continue constructs
1444 #297: validator: allow an unreachable block to branch to a reachable
1445 merge block
1446
1447v2016.1 2016-07-19
1448 - Fix https://github.com/KhronosGroup/SPIRV-Tools/issues/261
1449 Turn off ClipDistance and CullDistance capability checks for Vulkan.
1450 - The disassembler can emit friendly names based on debug info (OpName
1451 instructions), and will infer somewhat friendly names for most types.
1452 This is turned on by default for the spirv-dis command line tool.
1453 - Updated to support SPIR-V 1.1 rev 2
1454 - Input StorageClass, Sampled1D capability, and SampledBuffer capability
1455 do not require Shader capability anymore.
1456
1457v2016.0 2016-07-04
1458
1459 - Adds v<year>.<index> versioning, with "-dev" indicating
1460 work in progress. The intent is to more easly report
1461 and summarize functionality when SPIRV-Tools is incorporated
1462 in downstream projects.
1463
1464 - Summary of functionality (See the README.md for more):
1465 - Supports SPIR-V 1.1 Rev 1
1466 - Supports SPIR-V 1.0 Rev 5
1467 - Supports GLSL std450 extended instructions 1.0 Rev 3
1468 - Supports OpenCL extended instructions 1.0 Rev 2
1469 - Assembler, disassembler are complete
1470 - Supports floating point widths of 16, 32, 64 bits
1471 - Supports integer widths up to 64 bits
1472 - Validator is incomplete
1473 - Checks capability requirements in most cases
1474 - Checks module layout constraints
1475 - Checks ID use-definition ordering constraints,
1476 ignoring control flow
1477 - Checks some control flow graph rules
1478 - Optimizer is introduced, with few available transforms.
1479 - Supported on Linux, OSX, Android, Windows
1480
1481 - Fixes bugs:
1482 - #143: OpenCL pow and pown arguments