David Neto | 9166854 | 2016-04-21 20:50:11 -0400 | [diff] [blame] | 1 | Revision history for SPIRV-Tools |
| 2 | |
Steven Perron | 22ce39c | 2019-08-08 10:57:18 -0400 | [diff] [blame] | 3 | v2019.5-dev 2019-08-08 |
| 4 | - Start v2019.5-dev |
| 5 | |
Steven Perron | d65513e | 2019-08-08 10:55:48 -0400 | [diff] [blame] | 6 | v2019.4 2019-08-08 |
Steven Perron | c26c261 | 2019-08-08 10:52:01 -0400 | [diff] [blame] | 7 | - General: |
| 8 | - Memory model support for SPIR-V 1.4 |
| 9 | - Add new spirv-fuzz tool |
| 10 | - Add option for base branch in check_code_format.sh |
| 11 | - Removed MarkV and Stats code. (#2576) |
| 12 | - Instrument: Add version 2 of record formats (#2630) |
| 13 | - Linker: Better type comparison for OpTypeArray and OpTypeForwardPointer (#2580) |
| 14 | - Optimizer |
| 15 | - Bindless Validation: Instrument descriptor-based loads and stores (#2583) |
| 16 | - Better folding for OpSpecConstantOp (#2585, #2614) |
| 17 | - Add in individual flags for Vulkan <-> WebGPU passes (#2615) |
| 18 | - Handle nested breaks from switches. (#2624) |
| 19 | - Optimizer: Handle array type with OpSpecConstantOp length (#2652) |
| 20 | - Perform merge return with single return in loop. (#2714) |
Jaebaek Seo | dac9210 | 2019-08-15 08:46:59 -0400 | [diff] [blame^] | 21 | - Add --preserve-bindings and --preserve-spec-constants (#2693) |
Steven Perron | c26c261 | 2019-08-08 10:52:01 -0400 | [diff] [blame] | 22 | - Remove Common Uniform Elimination Pass (#2731) |
| 23 | - Allow ray tracing shaders in inst bindle check pass. (#2733) |
| 24 | - Add pass to inject code for robust-buffer-access semantics (#2771) |
| 25 | - Treat access chain indexes as signed in SROA (#2776) |
| 26 | - Handle RelaxedPrecision in SROA (#2788) |
Steven Perron | d65513e | 2019-08-08 10:55:48 -0400 | [diff] [blame] | 27 | - Add descriptor array scalar replacement (#2742) |
Steven Perron | c26c261 | 2019-08-08 10:52:01 -0400 | [diff] [blame] | 28 | Fixes: |
| 29 | - Handle decorations better in some optimizations (#2716) |
| 30 | - Change the order branches are simplified in dead branch elim (#2728) |
| 31 | - Fix bug in merge return (#2734) |
| 32 | - SSA rewriter: Don't use trivial phis (#2757) |
| 33 | - Record correct dominators in merge return (#2760) |
| 34 | - Process OpDecorateId in ADCE (#2761) |
| 35 | - Fix check for unreachable blocks in merge-return (#2762) |
| 36 | - Handle out-of-bounds scalar replacements. (#2767) |
| 37 | - Don't move debug or decorations when folding (#2772) |
| 38 | - Protect against out-of-bounds references when folding OpCompositeExtract (#2774) |
| 39 | - Validator |
| 40 | - Validate loop merge (#2579) |
| 41 | - Validate construct exits (#2459) |
| 42 | - Validate OpenCL memory and addressing model environment rules (#2589) |
| 43 | - Validate OpenCL environment rules for OpTypeImage (#2606) |
| 44 | - Allow breaks to switch merge from nested construct (#2604) |
| 45 | - Validate OpenCL environment rules for OpImageWrite (#2619) |
| 46 | - Allow arrays of out per-primitive builtins for mesh shaders (#2617) |
| 47 | - Validate OpenCL rules for ImageRead and OpImageSampleExplicitLod (#2643) |
| 48 | - Add validation for SPV_EXT_fragment_shader_interlock (#2650) |
| 49 | - Add builtin validation for SPV_NV_shader_sm_builtins (#2656) |
| 50 | - Add validation for Subgroup builtins (#2637) |
| 51 | - Validate variable initializer type (#2668) |
| 52 | - Disallow stores to UBOs (#2651)A |
| 53 | - Validate Volatile memory semantics bit (#2672) |
| 54 | - Basic validation for Component decorations (#2679) |
| 55 | - Validate that in OpenGL env block variables have Binding (#2685) |
| 56 | - Validate usage of 8- and 16-bit types with only storage capabilities (#2704) |
| 57 | - Add validation for SPV_EXT_demote_to_helper_invocation (#2707) |
| 58 | - Extra small storage validation (#2732) |
| 59 | - For Vulkan, disallow structures containing opaque types (#2546) |
| 60 | - Validate storage class OpenCL environment rules for atomics (#2750) |
| 61 | - Update OpControlBarriers rules for WebGPU (#2769) |
| 62 | - Update OpMemoryBarriers rules for WebGPU (#2775) |
| 63 | - Update WebGPU validation rules of OpAtomic*s (#2777) |
| 64 | Fixes: |
| 65 | - Disallow merge targeting block with OpLoopMerge (#2610) |
| 66 | - Update vloadn and vstoren validation to match the OpenCL Extended |
| 67 | Instruction Set Specification (#2599) |
| 68 | - Update memory scope rules for WebGPU (#2725) |
| 69 | - Allow LOD ops in compute shaders with derivative group execution modes (#2752) |
| 70 | - Reduce |
| 71 | Fixes: |
Steven Perron | 84aa494 | 2019-05-15 15:10:21 -0400 | [diff] [blame] | 72 | |
Steven Perron | ce19e21 | 2019-05-15 15:08:51 -0400 | [diff] [blame] | 73 | v2019.3 2019-05-14 |
Steven Perron | 26c1b88 | 2019-04-03 13:22:54 -0400 | [diff] [blame] | 74 | - General: |
Steven Perron | f815e6f | 2019-05-14 10:03:45 -0400 | [diff] [blame] | 75 | - Require Python 3 since Python 2 will out of service soon. |
Steven Perron | 26c1b88 | 2019-04-03 13:22:54 -0400 | [diff] [blame] | 76 | - Add a continuous test that does memory checks using the address sanitizer. |
Steven Perron | f815e6f | 2019-05-14 10:03:45 -0400 | [diff] [blame] | 77 | - Fix the build files so the SPIRV_USE_SANITIZER=address build works. |
| 78 | - Packaging top of tree build artifacts again. |
| 79 | - Added support for SPIR-V 1.4. (#2550) |
Steven Perron | 26c1b88 | 2019-04-03 13:22:54 -0400 | [diff] [blame] | 80 | - Optimizer |
| 81 | - Remove duplicates from list of interface IDs in OpEntryPoint instruction (#2449) |
| 82 | - Bindless Validation: Descriptor Initialization Check (#2419) |
| 83 | - Add option to validate after each pass (#2462) |
Steven Perron | f815e6f | 2019-05-14 10:03:45 -0400 | [diff] [blame] | 84 | - Add legalization pass to fix mismatched pointer (#2430, #2535) |
| 85 | - Add error messages when the input contains unknown instructions. (#2487) |
| 86 | - Add pass to convert from WebGPU Spir-V to Vulkan Spir-V and back. (#2495) |
Steven Perron | 26c1b88 | 2019-04-03 13:22:54 -0400 | [diff] [blame] | 87 | Fixes: |
| 88 | - #2412: Dead memeber elimination should not change input and output variables. |
| 89 | - #2405: Fix OpDot folding of half float vectors. |
| 90 | - #2391: Dead branch elim should not fold away back edges. |
| 91 | - #2441: Removing decorations when doing constant propagation. |
| 92 | - #2455: Maintain inst to block mapping in merge return. |
| 93 | - #2453: Fix merge return in the face of breaks. |
| 94 | - #2456: Handle dead infinite loops in DCE. |
| 95 | - #2458: Handle variable pointer in some optimizations. |
| 96 | - #2452: Fix dead branch elimination to handle unreachable blocks better. |
Steven Perron | f815e6f | 2019-05-14 10:03:45 -0400 | [diff] [blame] | 97 | - #2528: Fix undefined bit shift in sroa. |
| 98 | - #2539: Change implementation of post order CFG traversal. |
Steven Perron | 26c1b88 | 2019-04-03 13:22:54 -0400 | [diff] [blame] | 99 | - Validator |
| 100 | - Add validation of storage classes for WebGPU (#2446) |
| 101 | - Add validation for ExecutionMode in WebGPU (#2443) |
| 102 | - Implement WebGPU specific CFG validation (#2386) |
| 103 | - Allow NonWritable to target struct members. (#2420) |
| 104 | - Allow storage type mismatch for parameter in relaxed addressing mode. |
| 105 | - Allow non memory objects as parameter in relaxed addressing mode. |
| 106 | - Disallow nested Blocks and buffer blocks (#2410). |
| 107 | - Add validation for SPV_NV_cooperative_matrix (#2404) |
| 108 | - Add --strip-atomic-counter-memory (#2413) |
| 109 | - Check OpSampledImage is only passed into valid instructions (#2467) |
| 110 | - Handle function decls in Structured CFG analysis (#2474) |
| 111 | - Validate that OpUnreacahble is not statically reachable (#2473) |
| 112 | - Add pass to generate needed initializers for WebGPU (#2481) |
Steven Perron | f815e6f | 2019-05-14 10:03:45 -0400 | [diff] [blame] | 113 | - Allow images without format for OpenCL. (#2470) |
| 114 | - Remove unreachable block validation (#2525) |
| 115 | - Reduce runtime of array layout checks (#2534) |
| 116 | - Add validation specific to OpExecutionModeId (#2536) |
| 117 | - Validate sign of int types. (#2549) |
| 118 | - VK_KHR_uniform_buffer_standard_layout validation (#2562) |
Steven Perron | 26c1b88 | 2019-04-03 13:22:54 -0400 | [diff] [blame] | 119 | Fixes: |
| 120 | - #2439: Add missing DepthGreater case to Fragment only check. |
| 121 | - #2168: Disallow BufferBlock on StorageBuffer variables for Vulkan. |
| 122 | - #2408: Restrict and Aliased decorations cannot be applied to the same id. |
| 123 | - #2447: Improve function call parameter check. |
| 124 | - Reduce |
| 125 | - Add Pass to remove unreferenced blocks. (#2398) |
| 126 | - Allows passing options to the validator. (#2401) |
| 127 | - Improve reducer algorithm and other changes (#2472) |
| 128 | - Add Pass to remove selections (#2485) |
Steven Perron | f815e6f | 2019-05-14 10:03:45 -0400 | [diff] [blame] | 129 | - Add passes to simplify branches (#2507) |
Steven Perron | 26c1b88 | 2019-04-03 13:22:54 -0400 | [diff] [blame] | 130 | Fixes: |
| 131 | - #2478: fix loop to selection pass for loops with combined header/continue block |
Steven Perron | 5994ae2 | 2019-02-20 11:05:57 -0500 | [diff] [blame] | 132 | |
Steven Perron | 61dfd84 | 2019-02-20 11:04:41 -0500 | [diff] [blame] | 133 | v2019.2 2019-02-20 |
Steven Perron | 80496f4 | 2019-02-19 12:54:42 -0500 | [diff] [blame] | 134 | - General: |
| 135 | - Support SPV_EXT_physical_storage_buffer |
| 136 | - A number of memory leak have been fixed. |
| 137 | - Removed use of deprecated Google test macro: |
| 138 | - Changed the BUILD.gn to only build tests in Chromium. |
| 139 | - Optimizer |
| 140 | - Upgrade memory model improvments for modf and frexp. |
| 141 | - Add a new pass to move loads closer to their uses: code sinking. |
| 142 | - Invalidating the type manager now invalidates the constnat manager. |
| 143 | - Expand instrumentation pass for bindless bounds checking to runtime-sized descriptor arrays. |
| 144 | - Add a new pass that removes members from structs that are not used: dead member elimination. |
| 145 | Fixes: |
| 146 | - #2292: Remove undefined behaviour when folding bit shifts. |
| 147 | - #2294: Fixes for instrumentation code. |
| 148 | - #2293: Fix overflow when folding -INT_MIN. |
| 149 | - #2374: Don't merge unreachable blocks when merging blocks. |
| 150 | - Validator |
| 151 | - Support SPV_KHR_no_integer_wrap and related decorations. |
| 152 | - Validate Vulkan rules for OpTypeRuntimeArray. |
| 153 | - Validate NonWritable decoration. |
| 154 | - Many WebGPU specific validation rules were added. |
| 155 | - Validate variable pointer related function call rules. |
| 156 | - Better error messages. |
| 157 | Fixes: |
| 158 | - #2307: Check forwards references in OpTypeArray. |
| 159 | - #2315, #2303: Fixed the layout check for relaxed layout. |
| 160 | - #1628: Emit an error when an OpSwitch target is not an OpLabel. |
| 161 | - Reduce |
| 162 | - Added more documentation for spirv-reduce. |
| 163 | - Add ability to remove OpPhi instructions. |
| 164 | - Add ability to merge two basic blocks. |
| 165 | - Add ability to remove unused functions and unused basic blocks. |
| 166 | Fixes: |
Steven Perron | ee95ab1 | 2019-01-07 15:51:06 -0500 | [diff] [blame] | 167 | |
Steven Perron | 2297d4a | 2019-01-07 15:48:55 -0500 | [diff] [blame] | 168 | v2019.1 2019-01-07 |
Steven Perron | 248debf | 2018-12-10 14:33:14 -0500 | [diff] [blame] | 169 | - General: |
| 170 | - Created a new tool called spirv-reduce. |
| 171 | - Add cmake option to turn off SPIRV_TIMER_ENABLED (#2103) |
| 172 | - New optimization pass to update the memory model from GLSL450 to VulkanKHR. |
Steven Perron | 04cc2b1 | 2019-01-07 10:12:14 -0500 | [diff] [blame] | 173 | - Recognize OpTypeAccelerationStructureNV as a type instruction and ray tracing storage classes. |
| 174 | - Fix GCC8 build. |
| 175 | - Add --target-env flag to spirv-opt. |
| 176 | - Add --webgpu-mode flag to run optimizations for webgpu. |
| 177 | - The output disassembled line number stead of byte offset in validation errors. (#2091) |
Steven Perron | 248debf | 2018-12-10 14:33:14 -0500 | [diff] [blame] | 178 | - Optimizer |
| 179 | - Added the instrumentation passes for bindless validation. |
| 180 | - Added passes to help preserve OpLine information (#2027) |
| 181 | - Add basic support for EXT_fragment_invocation_density (#2100) |
| 182 | - Fix invalid OpPhi generated by merge-return. (#2172) |
Steven Perron | 04cc2b1 | 2019-01-07 10:12:14 -0500 | [diff] [blame] | 183 | - Constant and type manager have been turned into analysies. (#2251) |
Steven Perron | 248debf | 2018-12-10 14:33:14 -0500 | [diff] [blame] | 184 | Fixes: |
| 185 | - #2018: Don't inline functions with a return in a structured CFG contstruct. |
| 186 | - #2047: Fix bug in folding when volatile stores are present. |
| 187 | - #2053: Fix check for when folding floating pointer values is allowed. |
| 188 | - #2130: Don't inline recursive functions. |
Steven Perron | 04cc2b1 | 2019-01-07 10:12:14 -0500 | [diff] [blame] | 189 | - #2202: Handle multiple edges between two basic blocks in SSA-rewriter. |
| 190 | - #2205: Don't unswitch a latch condition during loop unswitch. |
| 191 | - #2245: Don't fold branch in loop unswitch. Run dead branch elimination to fold them. |
| 192 | - #2204: Fix eliminate common uniform to place OpPhi instructions correctly. |
| 193 | - #2247: Fix type mismatches caused by scalar replacement. |
| 194 | - #2248: Fix missing OpPhi after merge return. |
| 195 | - #2211: After merge return, fix invalid continue target. |
| 196 | - #2210: Fix loop invariant code motion to not place code between merge instruction and branch. |
| 197 | - #2258: Handle CompositeInsert with no indices in VDCE. |
| 198 | - #2261: Have replace load size handle extact with no index. |
Steven Perron | 248debf | 2018-12-10 14:33:14 -0500 | [diff] [blame] | 199 | - Validator |
| 200 | - Changed the naming convention of outputing ids with names in diagnostic messages. |
| 201 | - Added validation rules for UniformConstant variables in Vulkan. |
| 202 | - #1949: Validate uniform variable type in Vulkan |
| 203 | - Ensure for OpVariable that result type and storage class operand agree (#2052) |
| 204 | - Validator: Support VK_EXT_scalar_block_layout |
| 205 | - Added Vulkan memory model semantics validation |
| 206 | - Added validation checkes spefic to WebGPU environment. |
| 207 | - Add support for VK_EXT_Transform_feedback capabilities (#2088) |
| 208 | - Add validation for OpArrayLength. (#2117) |
| 209 | - Ensure that function parameter's type is not void (#2118) |
| 210 | - Validate pointer variables (#2111) |
| 211 | - Add check for QueueFamilyKHMR memory scope (#2144) |
| 212 | - Validate PushConstants annotation and type (#2140) |
| 213 | - Allow Float16/Int8 for Vulkan 1.0 (#2153) |
| 214 | - Check binding annotations in resource variables (#2151, #2167) |
| 215 | - Validate OpForwardPointer (#2156) |
Steven Perron | 04cc2b1 | 2019-01-07 10:12:14 -0500 | [diff] [blame] | 216 | - Validate operation for OpSpecConstantOp (#2260) |
Steven Perron | 248debf | 2018-12-10 14:33:14 -0500 | [diff] [blame] | 217 | Fixes: |
| 218 | - #2049: Allow InstanceId for NV ray tracing |
| 219 | - Reduce |
| 220 | - Initial commit wit a few passes to reduce test cases. |
Steven Perron | 04cc2b1 | 2019-01-07 10:12:14 -0500 | [diff] [blame] | 221 | - Validation is run after each reduction step. |
Steven Perron | 248debf | 2018-12-10 14:33:14 -0500 | [diff] [blame] | 222 | Fixes: |
Steven Perron | 04cc2b1 | 2019-01-07 10:12:14 -0500 | [diff] [blame] | 223 | |
Steven Perron | e121da8 | 2018-11-07 09:40:35 -0500 | [diff] [blame] | 224 | |
Steven Perron | 9d699f6 | 2018-11-07 09:39:51 -0500 | [diff] [blame] | 225 | v2018.6 2018-11-07 |
Steven Perron | d3738be | 2018-09-27 10:06:44 -0400 | [diff] [blame] | 226 | - General: |
Steven Perron | e8f22d1 | 2018-11-07 09:20:50 -0500 | [diff] [blame] | 227 | - Added support for the Nvidia Turing and ray tracing extensions. |
Steven Perron | d3738be | 2018-09-27 10:06:44 -0400 | [diff] [blame] | 228 | - Make C++11 the CXX standard in CMakeLists.txt. |
Steven Perron | 2a88bcb | 2018-10-02 11:28:17 -0400 | [diff] [blame] | 229 | - Enabled a parallel build for MSVC. |
Steven Perron | 07d0f9d | 2018-10-22 15:10:53 -0400 | [diff] [blame] | 230 | - Enable pre-compiled headers for MSVC. |
| 231 | - Added a code of conduct. |
| 232 | - EFFCEE and RE2 are now required when build the tests. |
Steven Perron | d3738be | 2018-09-27 10:06:44 -0400 | [diff] [blame] | 233 | - Optimizer |
| 234 | - Unrolling loops marked for unrolling in the legalization passes. |
| 235 | - Improved the compile time of loop unrolling. |
| 236 | - Changee merge-return to create a dummy loop around the function. |
| 237 | - Small improvement to merge-blocks to allow it to merge more often. |
| 238 | - Enforce an upper bound for the ids, and add option to set it. |
Steven Perron | 07d0f9d | 2018-10-22 15:10:53 -0400 | [diff] [blame] | 239 | - #1966: Report error if there are unreachable block before running merge return |
Steven Perron | d3738be | 2018-09-27 10:06:44 -0400 | [diff] [blame] | 240 | Fixes: |
| 241 | - #1917: Allow 0 (meaning unlimited) as a parameter to --scalar-replacement |
| 242 | - #1915: Improve handling of group decorations. |
Steven Perron | 2a88bcb | 2018-10-02 11:28:17 -0400 | [diff] [blame] | 243 | - #1942: Fix incorrect uses of the constant manager. Avoids type mismatches in generated code. |
Steven Perron | 07d0f9d | 2018-10-22 15:10:53 -0400 | [diff] [blame] | 244 | - #1997: Fix dead branch elimination when there is a loop in folded selection. |
| 245 | - #1991: Fixes legality check in if-conversion. |
| 246 | - #1987: Add nullptr check to array copy propagation. |
| 247 | - #1984: Better handling of OpUnreachable in ADCE. |
| 248 | - #1983: Run merge return on reachable functions only. |
| 249 | - #1956: Handled atomic operations in ADCE. |
| 250 | - #1963: Fold integer divisions by 0 to 0. |
Steven Perron | e8f22d1 | 2018-11-07 09:20:50 -0500 | [diff] [blame] | 251 | - #2019: Handle MemberDecorateStringGOOGLE in ADCE and strip reflect. |
Steven Perron | d3738be | 2018-09-27 10:06:44 -0400 | [diff] [blame] | 252 | - Validator |
| 253 | - Added validation for OpGroupNonUniformBallotBitCount. |
| 254 | - Added validation for the Vulkan memory model. |
| 255 | - Added support for VK_KHR_shader_atddomic_int64. |
Steven Perron | 2a88bcb | 2018-10-02 11:28:17 -0400 | [diff] [blame] | 256 | - Added validation for execution modes. |
Steven Perron | 07d0f9d | 2018-10-22 15:10:53 -0400 | [diff] [blame] | 257 | - Added validation for runtime array layouts. |
| 258 | - Added validation for 8-bit storage. |
| 259 | - Added validation of OpPhi instructions with pointer result type. |
| 260 | - Added checks for the Vulkan memory model. |
| 261 | - Validate MakeTexelAvailableKHR and MakeTexelVisibleKHR |
| 262 | - Allow atomic function pointer for OpenCL. |
| 263 | - FPRounding mode checks were implemented. |
Steven Perron | e8f22d1 | 2018-11-07 09:20:50 -0500 | [diff] [blame] | 264 | - Added validation for the id bound with an option to set the max id bound. |
Steven Perron | d3738be | 2018-09-27 10:06:44 -0400 | [diff] [blame] | 265 | Fixes: |
| 266 | - #1882: Improve the validation of decorations to reduce memory usage. |
| 267 | - #1891: Fix an potential infinite loop in dead-branch-elimination. |
| 268 | - #1405: Validate the storage class of boolean objects. |
| 269 | - #1880: Identify arrays of type void as invalid. |
| 270 | - #487: Validate OpImageTexelPointer. |
Steven Perron | 2a88bcb | 2018-10-02 11:28:17 -0400 | [diff] [blame] | 271 | - #1922: Validate OpPhi instructions are at the start of a block correctly. |
Steven Perron | 07d0f9d | 2018-10-22 15:10:53 -0400 | [diff] [blame] | 272 | - #1923: Validate function scope variable are at the start of the entry block. |
David Neto | 3e38c99 | 2018-09-07 11:42:12 -0400 | [diff] [blame] | 273 | |
David Neto | b4cb01c | 2018-09-07 11:40:56 -0400 | [diff] [blame] | 274 | v2018.5 2018-09-07 |
David Neto | 4470ff4 | 2018-07-11 13:51:01 -0400 | [diff] [blame] | 275 | - General: |
David Neto | 03896b0 | 2018-09-07 11:37:54 -0400 | [diff] [blame] | 276 | - Support SPV_KHR_vulkan_memory_model |
| 277 | - Update Dim capabilities, to match SPIR-V 1.3 Rev 4 |
| 278 | - Automated build bots no run tests for the VS2013 case |
David Neto | 0d8156a | 2018-08-01 10:29:43 -0400 | [diff] [blame] | 279 | - Support Chromium GN build |
| 280 | - Use Kokoro bots: |
| 281 | - Disable Travis-CI bots |
| 282 | - Disable AppVeyor VisualStudio Release builds. Keep VS 2017 Debug build |
| 283 | - Don't check export symbols on OSX (Darwin): some installations don't have 'objdump' |
David Neto | 4470ff4 | 2018-07-11 13:51:01 -0400 | [diff] [blame] | 284 | - Reorganize source files and namespaces |
| 285 | - Fixes for ClangTidy, and whitespace (passes 'git cl presumit --all -uf') |
| 286 | - Fix unused param compile warnings/errors when Effcee not present |
David Neto | 0d8156a | 2018-08-01 10:29:43 -0400 | [diff] [blame] | 287 | - Avoid including time headers when timer functionality is disabled |
David Neto | 03896b0 | 2018-09-07 11:37:54 -0400 | [diff] [blame] | 288 | - Avoid too-stringent warnings flags for Clang on Windows |
| 289 | - Internal refactoring |
| 290 | - Add hooks for automated fuzzing |
| 291 | - Add testing of command line executables |
David Neto | 4470ff4 | 2018-07-11 13:51:01 -0400 | [diff] [blame] | 292 | - #1688: Use binary mode on stdin; fixes "spirv-dis <foo.spv" on Windows |
David Neto | 85d3715 | 2018-07-18 10:58:22 -0400 | [diff] [blame] | 293 | - Optimizer |
David Neto | 03896b0 | 2018-09-07 11:37:54 -0400 | [diff] [blame] | 294 | - The optimizer validates the module before it begins |
David Neto | 0d8156a | 2018-08-01 10:29:43 -0400 | [diff] [blame] | 295 | - Add API to register passes by string name |
David Neto | 85d3715 | 2018-07-18 10:58:22 -0400 | [diff] [blame] | 296 | - Fold a vector shuffle feeding a vector shuffle |
David Neto | 0d8156a | 2018-08-01 10:29:43 -0400 | [diff] [blame] | 297 | - Add -combine-access-chains transform |
David Neto | 85d3715 | 2018-07-18 10:58:22 -0400 | [diff] [blame] | 298 | - Refactor how IRContext is handled by passes |
David Neto | 0d8156a | 2018-08-01 10:29:43 -0400 | [diff] [blame] | 299 | - Improve bookkeeping for instruction result type and result id |
David Neto | 03896b0 | 2018-09-07 11:37:54 -0400 | [diff] [blame] | 300 | - Fix over-duplication of decorations |
| 301 | - Fix handling of exits from selections in dead-branch elimination, and dead code |
| 302 | elimination. |
| 303 | - Fix handling of certain kinds of flow control in merge-return |
| 304 | Fixes: |
David Neto | 85d3715 | 2018-07-18 10:58:22 -0400 | [diff] [blame] | 305 | - #1721: Fix size bug when folding vector shuffles |
| 306 | - #1722: Fix size infinite loop when folding vector shuffles |
| 307 | - #1724: Fix finding a constant of a specific type |
David Neto | 0d8156a | 2018-08-01 10:29:43 -0400 | [diff] [blame] | 308 | - #1727: Dead branch elim: Reorder blocks if needed to satisfy dominance rule |
| 309 | - #1729: Handle VariablePointers cases in various optimizations |
| 310 | - #1731: Fix vector shuffle with literal id indicating undef value |
David Neto | 03896b0 | 2018-09-07 11:37:54 -0400 | [diff] [blame] | 311 | - #1736: Fix handling of decorations and phis in merge-return |
| 312 | - #1787: Fix handling of decorations related to access chains |
| 313 | - #1865: Avoid leaking memory for SPIR-V constant values |
David Neto | 4470ff4 | 2018-07-11 13:51:01 -0400 | [diff] [blame] | 314 | - Validator |
David Neto | 0d8156a | 2018-08-01 10:29:43 -0400 | [diff] [blame] | 315 | - Improve error messages |
David Neto | 03896b0 | 2018-09-07 11:37:54 -0400 | [diff] [blame] | 316 | - Avoid platform-dependent traversal ordering, to ensure consistent messages |
David Neto | 4470ff4 | 2018-07-11 13:51:01 -0400 | [diff] [blame] | 317 | - Use libspirv::Instruction where possible |
David Neto | 85d3715 | 2018-07-18 10:58:22 -0400 | [diff] [blame] | 318 | - Add option to skip all block layout checks |
David Neto | 03896b0 | 2018-09-07 11:37:54 -0400 | [diff] [blame] | 319 | - Validate all type IDs |
| 320 | - Validate uses of OpFunction |
| 321 | - Validate uses of OpTypeFunction |
| 322 | - Disallow a struct containing its own type https://crbug.com/874372 |
David Neto | 4470ff4 | 2018-07-11 13:51:01 -0400 | [diff] [blame] | 323 | - #1685: Vulkan permits non-monotonic offsets for block members |
| 324 | - #1697: Enforce block layout rules even when using relaxed block layout option |
David Neto | 85d3715 | 2018-07-18 10:58:22 -0400 | [diff] [blame] | 325 | - #1719: Fix line number for vector shuffle valiation error |
David Neto | 03896b0 | 2018-09-07 11:37:54 -0400 | [diff] [blame] | 326 | - #1789: Avoid assertion failure when validating some functions |
| 327 | - #1800: Fix validation of OpCopyMemorySized |
| 328 | - #1822: Stop enforcing struct member offset montonicity |
| 329 | - #1831: Disallow void members in structs |
David Neto | 50312ca | 2018-07-08 12:53:46 -0400 | [diff] [blame] | 330 | |
David Neto | f508896 | 2018-07-08 12:50:46 -0400 | [diff] [blame] | 331 | v2018.4 2018-07-08 |
David Neto | 035afb8 | 2018-06-11 11:08:52 -0400 | [diff] [blame] | 332 | - General: |
David Neto | 9de00c9 | 2018-07-08 12:49:51 -0400 | [diff] [blame] | 333 | - Support SPV_KHR_8bit_storage |
| 334 | - Add gclient and presubmit configurations |
| 335 | - Enable Kokoro build bots (#1625) |
| 336 | - Group tests into fewer executables, reduces load on CI |
| 337 | - Port test script to Python 3 |
| 338 | - Symbol export tests respect SPIRV_SKIP_TESTS |
| 339 | - #1596: Operand lookup succeeds if enabled by a capability |
| 340 | - #1624: Instruction lookup succeeds if enabled by a capability |
| 341 | - Refactoring namespaces: |
| 342 | - #1678: Change libspirv to spvtools |
| 343 | - Code in source/utils moved into spvtools::utils |
| 344 | - Code in source/comp moved into spvtools::comp |
David Neto | 035afb8 | 2018-06-11 11:08:52 -0400 | [diff] [blame] | 345 | - Optimizer: |
| 346 | - Remove insert-extract-elim pass. Use simplification pass instead. |
| 347 | - Preserve instruction-to-block mapping in most passes, to reduce runtime. |
David Neto | 9de00c9 | 2018-07-08 12:49:51 -0400 | [diff] [blame] | 348 | - Small vector optimization for operands |
| 349 | - Add pass to move Private variables to Function. Increase opportunity to optimize. |
David Neto | 035afb8 | 2018-06-11 11:08:52 -0400 | [diff] [blame] | 350 | - Fixes: |
David Neto | 9de00c9 | 2018-07-08 12:49:51 -0400 | [diff] [blame] | 351 | #1120: Check static uses of entry point interfaces |
| 352 | #1372: Avoid merging some structs, to preserve names for reflection |
| 353 | #1577: Scalar replacement uses only undecorated types. |
David Neto | 035afb8 | 2018-06-11 11:08:52 -0400 | [diff] [blame] | 354 | #1578: Fix handling of forward-pointer types, and types embedding pointers |
| 355 | to themselves. |
David Neto | 035afb8 | 2018-06-11 11:08:52 -0400 | [diff] [blame] | 356 | #1591: Inliner: Callee variable with initializer should have a store at the call site. |
David Neto | 9de00c9 | 2018-07-08 12:49:51 -0400 | [diff] [blame] | 357 | #1634: Fix crash: Use type id in vector type lookup |
| 358 | #1649: Fix assert in compact-ids pass |
| 359 | Fix constant folder: ensure it uses the right type |
| 360 | #1659: Folding rules added to IRContext. Avoids leak. |
David Neto | 035afb8 | 2018-06-11 11:08:52 -0400 | [diff] [blame] | 361 | - Validator |
David Neto | 9de00c9 | 2018-07-08 12:49:51 -0400 | [diff] [blame] | 362 | - Add work-in-progress WebGPU environment. Disallows OpUndef |
| 363 | - #670, #1581: Improve error messages; disassemble instruction |
| 364 | - #491: Check structured switches |
| 365 | - #937: Check layout rules for Block and BufferBlock in Uniform, StorageBuffer, PushConstant |
| 366 | - #1281: Check invalid branches into structured constructs |
| 367 | - #1522: Disallow array-of-arrays with DescriptorSets |
David Neto | 035afb8 | 2018-06-11 11:08:52 -0400 | [diff] [blame] | 368 | - #1577: Allow duplicate pointer types. |
| 369 | - #1581: Better messages: output ID names along with numbers in more cases. |
David Neto | 9de00c9 | 2018-07-08 12:49:51 -0400 | [diff] [blame] | 370 | - #1597: Check Vulkan 1.1 capabilities |
| 371 | - #1618: Check invalid exit from structured case construct |
| 372 | - #1622: Run IdPass before DataRulesPass |
| 373 | - #1632: Reduce test time by artificially lowering limits in limit test |
| 374 | - #1638: Block-decorated structs member order must respect offset order |
| 375 | - #1657: Improve CFG validation diagnostics |
| 376 | - Khronos SPIR-V #337: GLSL.std.450 Refract instruction Eta param can be any float scalar. |
| 377 | - #1606: PushConstant Blocks follow storage-buffer layout rules |
| 378 | - #1664: Check layout of StorageBuffer variables with Block decoration, using storage buffer |
| 379 | rules |
| 380 | - #1666: Layout validation should permit {vec3; float} packing |
| 381 | - #1637, #1668: Layout validation uses RowMajor, ArrayStride, MatrixStride properly |
| 382 | - Linker |
| 383 | - Avoid buffer overrun when creating OpModuleProcessed |
David Neto | 6b83643 | 2018-05-25 22:14:30 -0400 | [diff] [blame] | 384 | |
David Neto | 545d6ca | 2018-05-25 22:12:25 -0400 | [diff] [blame] | 385 | v2018.3 2018-05-25 |
David Neto | 5f53c42 | 2018-04-06 16:42:56 -0400 | [diff] [blame] | 386 | - General: |
| 387 | - Support SPV_EXT_descriptor_indexing |
| 388 | - Support SPV_GOOGLE_decorate_string |
| 389 | - Support SPV_GOOGLE_hlsl_functionality1 |
| 390 | - Support SPV_NV_shader_subgroup_partitioned |
| 391 | - Use "unified1" grammar from SPIRV-Headers |
| 392 | - Simplify support for new extensions. Assembler, disassembler, and simple validation |
| 393 | support is automatic if new tokens are introduced with appropriate extension |
| 394 | attributes in the "unified1" SPIR-V core grammar. |
| 395 | - Disassembler: Emit more digits on floating point, to reliably reproduce all |
| 396 | significand bits. (Use std::max_digits10 instead of std::digits10) |
David Neto | 6a986d0 | 2018-05-25 21:58:26 -0400 | [diff] [blame] | 397 | - Fix compilation for old XCode versions: Explicit construction required for std::set. |
David Neto | 5f53c42 | 2018-04-06 16:42:56 -0400 | [diff] [blame] | 398 | - Optimizer: |
| 399 | - Add --strip-reflect |
| 400 | - Add --time-report |
David Neto | 6a986d0 | 2018-05-25 21:58:26 -0400 | [diff] [blame] | 401 | - Add --loop-fission |
| 402 | - Add lop fusion. |
| 403 | - Add loop peeling pass and internal utility. |
| 404 | - Improve optimizer runtime. |
David Neto | 5f53c42 | 2018-04-06 16:42:56 -0400 | [diff] [blame] | 405 | - Merge-return now works with structured control flow. |
| 406 | - New (faster) SSA rewriter to convert local loads and stores to SSA IDs and phis. |
| 407 | Can replace load/store elimination passes. |
| 408 | - Fix instruction folding case: insertion that feeds and extract, when the extract |
| 409 | remains. |
David Neto | 6a986d0 | 2018-05-25 21:58:26 -0400 | [diff] [blame] | 410 | - Fold OpDot. |
| 411 | - Fold OpFNegate. |
| 412 | - Fold multply and divide of same value. |
| 413 | - Fold FClamp feeding a compare. |
| 414 | - Fold OpLoad feeding an extract, to reduce excessive copying. (#1547) |
| 415 | - Fold Fmix feeding an extract. |
| 416 | - Use simplification pass instead of insert-extract elimination. |
| 417 | - Constant fold OpVectorTimesScalar. |
David Neto | 5f53c42 | 2018-04-06 16:42:56 -0400 | [diff] [blame] | 418 | - Copy propagate arrays, in simple cases. |
David Neto | 6a986d0 | 2018-05-25 21:58:26 -0400 | [diff] [blame] | 419 | - Aggressive dead code elimination: Can remove more instructions, e.g. derivatives. |
| 420 | - Aggressive dead code elimination: Remove Workgroup variables that are written but not read. |
David Neto | 5f53c42 | 2018-04-06 16:42:56 -0400 | [diff] [blame] | 421 | - Better handling of OpImageTexelPointer |
David Neto | 5f53c42 | 2018-04-06 16:42:56 -0400 | [diff] [blame] | 422 | - Initial utilities for scalar evolution. |
David Neto | 6a986d0 | 2018-05-25 21:58:26 -0400 | [diff] [blame] | 423 | - Add Vector dead code elimination. |
| 424 | - Each pass can only run once. |
| 425 | - Allow code hosting in if-conversion. |
| 426 | - Add external interface for adding a PassToken, so external code can make their own |
| 427 | passes. |
| 428 | - Fixes: |
| 429 | #1404: Don't optimize away the compute compute workgroup size constant. |
| 430 | #1407: Remove a bad assertion |
| 431 | #1456: Fix bug in SSA rewriter related to variables updated in loops. |
| 432 | #1487: Fix long runtime in Dead insertion elimination: Don't revist select phi nodes. |
| 433 | #1492: Aggressive dead code elimination can remove OpDecorateStringGOOGLE. |
| 434 | #1527: Fix inlining of functions having OpKill and OpUnreachable. |
| 435 | #1559: Fix assert failure in reduce-load-size pass. |
| 436 | #1556: Aggressive dead code elimination: Fix handling of OpCopyMemory. |
David Neto | 5f53c42 | 2018-04-06 16:42:56 -0400 | [diff] [blame] | 437 | - Validator: |
| 438 | - Check Vulkan built-in variables |
| 439 | - Check Vulkan-specific atomic result type rule. |
| 440 | - Relax control barrier check for SPIR-V 1.3. Fixes #1427 |
| 441 | - Check OpPhi. |
David Neto | 6a986d0 | 2018-05-25 21:58:26 -0400 | [diff] [blame] | 442 | - Check OpMemoryModel. |
David Neto | 5f53c42 | 2018-04-06 16:42:56 -0400 | [diff] [blame] | 443 | - Stop checking sizes derived from spec-constants. |
| 444 | - Re-enable checks for OpUConvert. |
David Neto | 6a986d0 | 2018-05-25 21:58:26 -0400 | [diff] [blame] | 445 | - Vulkan: Fix check for PrimitiveId: Permit as Input in fragment shader. |
| 446 | - Validate binary version for the given target environment. |
| 447 | - Add tests for OpBranch checks. |
| 448 | - Vulkan 1.1: Check scope for non-uniform subgroup operations. |
| 449 | - Fix checks for SPV_AMD_gpu_shader_int16. |
| 450 | - Fix logical layout check for OpDecorateId. |
| 451 | - Fix checks for ViewportIndex & Layer for Vulkan and SPV_EXT_shader_viewport_index_layer. |
| 452 | - Fixes: |
| 453 | #1470: Vulkan: Don't restrict WorkgroupSize to Input storage class. |
| 454 | #1469: Vulkan: Permit Subgroup memory scope for Vulkan 1.1. |
| 455 | #1472: Per-vertex variable validation fixes. |
| 456 | #1483: Valdiate barrier execution scopes for Vulkan 1.1. |
David Neto | 5f53c42 | 2018-04-06 16:42:56 -0400 | [diff] [blame] | 457 | - Fixes: |
| 458 | #898: Linker properly removes FuncParamAttr from imported symbols. |
| 459 | #924, #1174: Fix handling of decoration groups in optimizer, linker. |
David Neto | ac43466 | 2018-03-07 17:13:18 -0500 | [diff] [blame] | 460 | |
David Neto | 8d8a712 | 2018-03-07 17:11:50 -0500 | [diff] [blame] | 461 | v2018.2 2018-03-07 |
David Neto | a0da44e | 2018-03-07 17:10:13 -0500 | [diff] [blame] | 462 | - General: |
David Neto | 8d8a712 | 2018-03-07 17:11:50 -0500 | [diff] [blame] | 463 | - Support SPIR-V 1.3 and Vulkan 1.1. |
| 464 | - Default target environment is now SPIR-V 1.3. For command-line tools, |
| 465 | use the --target-env option to override the default. Examples: |
| 466 | # Generate a SPIR-V 1.0 binary instead of SPIR-V 1.3 |
| 467 | spirv-as --target-env spv1.0 a.spvasm -o a.spv |
| 468 | spirv-as --target-env vulkan1.0 a.spvasm -o a.spv |
| 469 | # Validate as Vulkan 1.0 |
| 470 | spirv-val --target-env vulkan1.0 a.spv |
David Neto | a0da44e | 2018-03-07 17:10:13 -0500 | [diff] [blame] | 471 | - Support SPV_GOOGLE_decorate_string and SPV_GOOGLE_hlsl_functionality1 |
| 472 | - Fixes: |
| 473 | - Fix Android.mk build. Compilation was failing due to missing definitions of |
| 474 | SpvCapabilityFloat16ImageAMD and other enumerated values. |
| 475 | - Optimizer: Avoid generating duplicate names when merging types. |
| 476 | - #1375: Validator: SPV_AMD_gpu_shaer_half_float implicitly allows declaration |
| 477 | of the 16-bit floating point type. |
| 478 | - #1376: Optimizer: Avoid folding half-precision float. |
David Neto | fe21921 | 2018-03-02 14:11:58 -0500 | [diff] [blame] | 479 | |
David Neto | 6432a12 | 2018-03-02 14:10:43 -0500 | [diff] [blame] | 480 | v2018.1 2018-03-02 |
David Neto | c452bfd | 2018-02-06 11:47:44 -0500 | [diff] [blame] | 481 | - General: |
| 482 | - Support Visual Studio 2013 again. (Continue support for VS 2015 and VS 2017.) |
David Neto | b08b94e | 2018-02-27 11:48:40 -0500 | [diff] [blame] | 483 | - Support building SPIRV-Tools as a shared library. |
| 484 | - Improve the HLSL legalization optimization recipe. #1311 |
David Neto | c452bfd | 2018-02-06 11:47:44 -0500 | [diff] [blame] | 485 | - Optimizer: |
David Neto | b08b94e | 2018-02-27 11:48:40 -0500 | [diff] [blame] | 486 | - General speedups. |
David Neto | a7cec78 | 2018-03-02 14:01:28 -0500 | [diff] [blame] | 487 | - Remove generic dead code elimination functionality from transforms: |
| 488 | --eliminate-local-single-block |
| 489 | --eliminate-local-single-store |
| 490 | --eliminate-local-multi-store |
| 491 | To recover the previous behaviour, a recipe using those transforms should now |
| 492 | also invoke the --eliminate-dead-code-aggressive transform. |
| 493 | - Improve folding, including coverage for floating point, OpSelect, and arithmetic |
| 494 | with non-trivial constant operands. |
David Neto | b08b94e | 2018-02-27 11:48:40 -0500 | [diff] [blame] | 495 | - Add loop-invariant code motion pass. |
| 496 | - Add loop-unrolling pass, for honouring unroll hits. |
| 497 | - Add loop-unswitch pass. |
| 498 | - Add instruction simplification pass. |
David Neto | c452bfd | 2018-02-06 11:47:44 -0500 | [diff] [blame] | 499 | - Aggressive dead code elimination: Understands capability hierarchy when finding |
| 500 | instructions it can eliminate (combinators). (PR #1268) |
David Neto | b08b94e | 2018-02-27 11:48:40 -0500 | [diff] [blame] | 501 | - CCP can now fold floating point arithmetic. #1311 |
David Neto | c452bfd | 2018-02-06 11:47:44 -0500 | [diff] [blame] | 502 | - Validator: |
| 503 | - Validate barrier instructions. |
David Neto | b08b94e | 2018-02-27 11:48:40 -0500 | [diff] [blame] | 504 | - Check Vulkan-specific rules for atomics. |
David Neto | a7cec78 | 2018-03-02 14:01:28 -0500 | [diff] [blame] | 505 | - Check Vulkan prohibition of Location or Component decorations on BuiltIn variables. |
| 506 | - Linker: |
| 507 | - Add --verify-ids option |
| 508 | - Add option to allow a resulting module to be partially linked. |
| 509 | - Handle OpModuleProcessed (instructions in SPIR-V layout section 7c) |
David Neto | c452bfd | 2018-02-06 11:47:44 -0500 | [diff] [blame] | 510 | - Fixes: |
| 511 | - #1265: Optimizer: Fix use-after free bug in if-conversion. (Fix object lifecycle bug |
| 512 | in type manager.) |
David Neto | b08b94e | 2018-02-27 11:48:40 -0500 | [diff] [blame] | 513 | - #1282: Fix new warnings found by GCC 8.0.1. |
| 514 | - #1285: Optimizer: Fix random failures during inlining. (Dangling references in DefUseManager) |
| 515 | - #1295: Optimizer: Fix incorrect handling of Phi nodes in CCP. |
| 516 | - #1300: Fix CCP: avoid bad CCP transitions and unsettled values. |
| 517 | - #1304: Avoid static-duration variables of class type (with constructors). |
| 518 | - #1323: Fix folding of an insert composite feeding a composite extract. |
| 519 | - #1339: Fix CCP: Handle OpConstantNull boolean values as conditions. |
| 520 | - #1341: DCEInst: Keep atomic instructions (and some others with side effects). |
David Neto | a7cec78 | 2018-03-02 14:01:28 -0500 | [diff] [blame] | 521 | - #1354: Don't fold integer division. |
| 522 | - #1357: Support OpConstantNull in folding. |
| 523 | - #1361: CCP: Fix handling of non-constant module-scope values |
David Neto | 1c0056c | 2018-02-02 11:27:07 -0500 | [diff] [blame] | 524 | |
David Neto | c430a41 | 2018-02-02 11:25:58 -0500 | [diff] [blame] | 525 | v2018.0 2018-02-02 |
David Neto | bcd4f23 | 2018-02-02 11:23:33 -0500 | [diff] [blame] | 526 | - General |
| 527 | - VisualStudio 2013 is no longer supported. VisualStudio 2015 is supported. |
| 528 | - Use "include/unified1" directory from SPIRV-Headers. Requires recent SPIRV-Headers source. |
David Neto | 38f297c | 2018-01-30 17:47:00 -0500 | [diff] [blame] | 529 | - Disassembler: spirv-dis adds --color option to force color disassembly. |
Alan Baker | 80b743a | 2018-01-15 13:25:45 -0500 | [diff] [blame] | 530 | - Optimizer: |
David Neto | 38f297c | 2018-01-30 17:47:00 -0500 | [diff] [blame] | 531 | - Add pass to eliminate dead insertions. |
| 532 | - Aggressive dead code elimination now removes OpSwitch constructs. |
| 533 | - Block merging occurs in more cases. |
| 534 | - Add driver workaround transform: replace OpUnreachable with harmless branch to merge. |
| 535 | - Improve instruction folding framework. |
David Neto | bcd4f23 | 2018-02-02 11:23:33 -0500 | [diff] [blame] | 536 | - Add loop analysis. |
| 537 | - Add scalar replacement of aggregates to size-optimization recipe. |
| 538 | - Add pass to replace instructions invalid for a shader stage, with a harmless value. |
| 539 | This changes the semantics of the program! Not for general use! |
| 540 | - Rearragne and add passes to performance-optimization recipe, to produce better results. |
David Neto | 38f297c | 2018-01-30 17:47:00 -0500 | [diff] [blame] | 541 | - Validator: |
David Neto | bcd4f23 | 2018-02-02 11:23:33 -0500 | [diff] [blame] | 542 | - Validate OpenCL extended instructions. |
David Neto | 38f297c | 2018-01-30 17:47:00 -0500 | [diff] [blame] | 543 | - Shaders can't perform atomics on floats. |
David Neto | bcd4f23 | 2018-02-02 11:23:33 -0500 | [diff] [blame] | 544 | - Validate memory semantics values in atomics. |
| 545 | - Validate instruction-adjacency constraints, e.g. OpPhi predecessors, merge instructions |
| 546 | immediately precede branches. |
David Neto | ba017f7 | 2018-01-12 18:52:42 -0500 | [diff] [blame] | 547 | - Fixes: |
| 548 | - PR 1198: Optimizer: Fix CCP in presence of matrix constants. |
David Neto | ae6daee | 2018-01-16 22:52:39 -0500 | [diff] [blame] | 549 | - #1199: Optimizer: Fix CCP: don't propagate spec constants. |
| 550 | - #1203: Optimizer: Fix common uniform elim bug introduced by refactoring. |
David Neto | 38f297c | 2018-01-30 17:47:00 -0500 | [diff] [blame] | 551 | - #1210: Optimizer: Aggressive dead code elimination: Fix 'break' identification. |
| 552 | - #1212: Optimizer: Aggressive dead code elimination: Was skipping too many instructions. |
| 553 | - #1214: Optimizer: Aggressive dead code elimination: Fix infinite loop. |
| 554 | - #1228: Optimizer: Fix CCP: Handling of varying Phi nodes; was resulting in infinite loop. |
| 555 | - #1245: Optimizer: Dead branch elimination: Avoid a null pointer dereference. |
| 556 | - #1250: Optimizer: Dead branch elimination: Avoid spuriously reporting a change. |
David Neto | 86dec64 | 2018-01-12 13:33:43 -0500 | [diff] [blame] | 557 | |
David Neto | 902ed46 | 2018-01-12 13:32:04 -0500 | [diff] [blame] | 558 | v2017.3 2018-01-12 |
David Neto | 2e5672d | 2017-12-19 17:50:01 -0500 | [diff] [blame] | 559 | - General: |
David Neto | 902ed46 | 2018-01-12 13:32:04 -0500 | [diff] [blame] | 560 | - Support DebugInfo extended instruction set, targeted at OpenCL environments. |
| 561 | See the SPIR-V Registry. |
| 562 | - Generate a SPIRV-Tools.pc file for pkg-config. |
David Neto | 2e5672d | 2017-12-19 17:50:01 -0500 | [diff] [blame] | 563 | - Optimizer: |
David Neto | 902ed46 | 2018-01-12 13:32:04 -0500 | [diff] [blame] | 564 | - Progress for legalization of code generated from HLSL (issue #1118): |
| 565 | - Add --legalize-hlsl option to run transforms used to transform intermediate |
| 566 | code generated by HLSL to SPIR-V for Vulkan compilers. Those compilers |
| 567 | normally run these transforms automatically. This option is used for developing |
| 568 | those transforms. |
| 569 | - Add Private-to-Function variable conversion for modules with logical |
| 570 | addressing. |
| 571 | - Add --ccp: SSA Conditional Constant Propagation (CCP) |
| 572 | - Add --print-all to show disassembly for each optimization pass. |
| 573 | - Internal: Add loop descriptors and post-order tree iterator. |
| 574 | - Generalized dead branch elimination |
| 575 | - Aggressive dead code elimination (ADCE) now removes dead functions and |
| 576 | module-scope variables. |
| 577 | - Vector extract/insert elimination now optimizes through some cases of |
| 578 | VectorShuffle, and GLSL.std.450 Mix extended instruction. |
David Neto | 2e5672d | 2017-12-19 17:50:01 -0500 | [diff] [blame] | 579 | - Validator: |
David Neto | 902ed46 | 2018-01-12 13:32:04 -0500 | [diff] [blame] | 580 | - Add validation for GLSL.std.450 extended instruction set. |
| 581 | - Check out of bounds composite accesses, where that's statically computable. |
| 582 | Fixes #1112. |
David Neto | 2e5672d | 2017-12-19 17:50:01 -0500 | [diff] [blame] | 583 | - Check upper bits of literal numbers that aren't a multiple of 32-bits wide. |
| 584 | - More validation of primitive instructions |
David Neto | 902ed46 | 2018-01-12 13:32:04 -0500 | [diff] [blame] | 585 | - Add optional "relaxed" checking logical addressing mode to permit some |
| 586 | cases of pointer-to-pointer. Contributes to HLSL legalization (issue #1118). |
David Neto | 2e5672d | 2017-12-19 17:50:01 -0500 | [diff] [blame] | 587 | - Fixes: |
| 588 | #1100: Validator: Image operand Sample can be used with OpImageSparseFetch, |
David Neto | 902ed46 | 2018-01-12 13:32:04 -0500 | [diff] [blame] | 589 | OpImageSparseRead. |
David Neto | 2e5672d | 2017-12-19 17:50:01 -0500 | [diff] [blame] | 590 | #1108: Remove duplicates transform was incorrectly removing non-duplicate |
| 591 | decorations. |
David Neto | 902ed46 | 2018-01-12 13:32:04 -0500 | [diff] [blame] | 592 | #1111: Optimizer's type manager could reference deleted memory. |
| 593 | #1112: Fix decoration equality check, e.g. it is now symmetric. |
| 594 | #1129: Validator now disallows Dim=SupbassData for OpImageSparseRead. |
| 595 | #1143: Fix CCP: Was generating incorrect code for loops. |
| 596 | #1153: Fix CCP crash. |
| 597 | #1154: Optimizer's internal instruction-to-block mappings were sometimes |
| 598 | inconsistent. |
| 599 | #1159: Fix CCP infinite loop. |
| 600 | #1168: Fix dead branch elimination intermittently generating incorrect code. |
| 601 | Fixes https://github.com/KhronosGroup/glslang/issues/1205 |
| 602 | #1186: Fix validation of PackDouble2x32 and UnpackDouble2x32 |
David Neto | 7361034 | 2017-12-15 18:24:41 -0500 | [diff] [blame] | 603 | |
David Neto | 1ccfb58 | 2017-12-15 18:21:55 -0500 | [diff] [blame] | 604 | v2017.2 2017-12-15 |
| 605 | - General: |
| 606 | - Support OpenCL 1.2, 2.0 target environments, including embedded profiles |
| 607 | - Add CONTRIBUTING.md |
| 608 | - Fix exit status code for spirv-link |
| 609 | - Disassember: Enable emitting ANSI colour codes to a string |
| 610 | - Library avoids polluting global namespace. The libraries can export C and C++ |
| 611 | symbols starting with "spv", or in a C++ namespace. Add a test for this. |
| 612 | - Linux release builds include debug information, for easier profiling |
| 613 | - Build bots no longer test VisualStudio 2013 |
| 614 | - Testing dependency RE2 requires VisualStudio 2015 or later |
| 615 | - Build bots check code formatting |
Stephen McGroarty | 8ba68fa | 2017-11-27 21:21:26 +0000 | [diff] [blame] | 616 | - Optimizer: |
David Neto | 1ccfb58 | 2017-12-15 18:21:55 -0500 | [diff] [blame] | 617 | - Add --skip-validation to spirv-opt |
| 618 | - Add dominance tree analysis |
| 619 | - Add generic value propagation engine |
| 620 | - Add global redundancy elimination within a function |
| 621 | - Add scalar replacement of function-scope variables of composite type |
| 622 | - Aggressive dead code elimination: Remove empty loops |
| 623 | - Killing an instruction notifies the IRContext |
| 624 | - IRContext::KillInst deletes the instruction |
| 625 | - Move CFG analysis to IRContext |
| 626 | - Add constant manager |
| 627 | - Fix: Don't consider derivative instructions as combinators. |
| 628 | - Fix: Don't delete an instruction twice in local dead-code-elimination |
| 629 | - Fix: Don't consider derivative instructions as combinators. |
| 630 | - Validator: |
| 631 | - Finish checking of image instructions (Section 3.32.10) |
| 632 | - Check sparse image instructions |
| 633 | - Check OpTypeImage, OpTypeSampleImage |
| 634 | - Check composite instructions (Section 3.32.12) |
| 635 | - Check atomic instructions (Section 3.32.18) |
| 636 | - Check OpEmitStreamVertex, OpEndStreamPrimitive instructions |
| 637 | - Re-enable validation of OpCopyObject |
| 638 | - OpKill, image ImplicitLod and QueryLod instructions can only be used in Fragment |
| 639 | shaders. |
| 640 | - Fixes for image instruction validation: |
| 641 | - Lod image operand only usable with ExplicitLod and OpImageFetch |
| 642 | - ExplicitLod Lod image operand must be float scalar |
| 643 | - OpImageFectch Lod image operand must be int scalar |
| 644 | - OpImageGather component operand must be 32-bits (integer scalar) |
| 645 | - OpImageQuerySizeLod Lod must be integer scalar |
Alan Baker | 0cae89e | 2017-11-23 23:08:58 -0500 | [diff] [blame] | 646 | - Fixes: |
David Neto | 1ccfb58 | 2017-12-15 18:21:55 -0500 | [diff] [blame] | 647 | #622: Remove names and decorations when inlining |
| 648 | #989: Aggressive dead code elim: Don't optimize away live breaks from a loop |
| 649 | #991: Fix validation of SPV_AMD_shader_ballot |
Alan Baker | 0cae89e | 2017-11-23 23:08:58 -0500 | [diff] [blame] | 650 | #1004: Use after free of an instruction, in remove-duplicates transform |
David Neto | e1a6f8d | 2017-11-24 10:17:13 -0500 | [diff] [blame] | 651 | #1007: OpImageRead not required to return 4-component vector |
| 652 | #1009: OpImageRead can return scalar int/float types |
David Neto | 1ccfb58 | 2017-12-15 18:21:55 -0500 | [diff] [blame] | 653 | #1011: OpImageWrite should allow scalar int/float texel types |
| 654 | #1012: Fix validat Dref type check |
| 655 | #1017: Load-store elimination considers variable initializations |
| 656 | #1034: Fix Windows debug build: operator< should be a weak ordering |
| 657 | #1083: Inlining: Set parent (function) for each inlined basic block. |
| 658 | #1075: Aggressive dead code elimination: Was leaving dangling references to |
| 659 | removed blocks. |
David Neto | b0a7037 | 2017-11-23 18:16:41 -0500 | [diff] [blame] | 660 | |
David Neto | 493c088 | 2017-11-23 18:12:23 -0500 | [diff] [blame] | 661 | v2017.1 2017-11-23 |
David Neto | 1affe5a | 2017-10-04 17:02:39 -0400 | [diff] [blame] | 662 | - Update README with details on the public_spirv_tools_dev@khronos.org mailing list. |
David Neto | d84df94 | 2017-09-26 11:30:57 -0400 | [diff] [blame] | 663 | - General: |
David Neto | 493c088 | 2017-11-23 18:12:23 -0500 | [diff] [blame] | 664 | - Automatically deploy built artifacts to GitHub Releases |
| 665 | - Add a Linker (module combiner). Under development. |
| 666 | - Add Android.mk for Android NDK builds. |
David Neto | 76555bd | 2017-11-08 00:23:42 -0500 | [diff] [blame] | 667 | - Add the 'effcee' library as an optional dependency for use in tests. |
| 668 | Eventually it will be a required dependency, once downstream projects have |
David Neto | 493c088 | 2017-11-23 18:12:23 -0500 | [diff] [blame] | 669 | a chance to adjust. Requires 're2' library. |
David Neto | d84df94 | 2017-09-26 11:30:57 -0400 | [diff] [blame] | 670 | - Avoid static-duration variables of class type (with constructors). |
David Neto | 493c088 | 2017-11-23 18:12:23 -0500 | [diff] [blame] | 671 | - Hack around bugs in gcc-4.8.1 template handling |
| 672 | - Faster opcode lookup |
Andrey Tuganov | 82df4bb | 2017-08-30 10:13:10 -0400 | [diff] [blame] | 673 | - Validator: |
David Neto | a91cecf | 2017-09-14 10:35:22 -0400 | [diff] [blame] | 674 | - Recognize extensions listed on SPIR-V registry, |
| 675 | through #25 SPV_AMD_shader_fragment_mask |
David Neto | 493c088 | 2017-11-23 18:12:23 -0500 | [diff] [blame] | 676 | - Validator issues an info message when it sees an unrecognized extension. |
| 677 | - Type check basic arithmetic operations |
| 678 | - Type check carry/extended arithmetic operations |
| 679 | - Type check vector arithmetic operations |
| 680 | - Type check Relational and Logical instructions |
| 681 | - Type check Bit instructions |
| 682 | - Check type uniqueness rules |
| 683 | - Check conversion instructions |
| 684 | - Check image instructions |
| 685 | - Check derivative instructions |
| 686 | - Check OpVectorShuffle |
| 687 | - Check OpBranchConditional |
| 688 | - OpModuleProcessed is only allowed after debug names section and before annotations |
| 689 | section. |
| 690 | - Checks the right kind of return is called for each function (void or non-void). |
| 691 | - Add option to relax type check when storing structs (--relax-store-struct) |
David Neto | d84df94 | 2017-09-26 11:30:57 -0400 | [diff] [blame] | 692 | - Optimizer: |
David Neto | 493c088 | 2017-11-23 18:12:23 -0500 | [diff] [blame] | 693 | - Refactoring internal representation of the module, including: |
| 694 | - IRContext: owns a module and manages analyses |
| 695 | - Instructions are owned by intrusive lists, and have unique IDs |
| 696 | - BasicBlock owns its instruction list. |
| 697 | - DefUseManager: change representation of uses, for faster processing |
| 698 | on large modules. |
| 699 | - Add high level recipes: -O, -Os, and -Oconfig |
| 700 | Recipes for -O and -Os are under development. |
| 701 | - Add eliminate-dead-function transform |
David Neto | d84df94 | 2017-09-26 11:30:57 -0400 | [diff] [blame] | 702 | - Add strength reduction transform: For now, convert multiply by power of 2 |
| 703 | to a bit shift. |
David Neto | 493c088 | 2017-11-23 18:12:23 -0500 | [diff] [blame] | 704 | - Add CFG cleanup transform |
| 705 | - Add removal of dead module-scope variables |
| 706 | - Add merge-return transform for modules without structured control flow |
| 707 | - Add redundancy elimination within a basic block (local value numbering) |
| 708 | - Extract-insert elimination: |
| 709 | - Recognize the case where the first instruction in the sequence is an |
| 710 | OpCompositeConstruct or OpConstantComposite |
| 711 | - Handle some cases of nested structs |
| 712 | - Dead branch elimination now can eliminate entire selection constructs |
| 713 | when all arms are dead. |
| 714 | - Compressing codec: |
| 715 | - Updated algorithm to 1.01, 1.02, 1.03 |
| 716 | - Not built by default. Use -DSPIRV_BUILD_COMPRESSION=ON to build. |
| 717 | - Codec can be parameterized by a customized model. |
David Neto | 25ddfec | 2017-09-02 19:01:03 -0400 | [diff] [blame] | 718 | - Fixes: |
David Neto | 493c088 | 2017-11-23 18:12:23 -0500 | [diff] [blame] | 719 | #728: Fix decoration of inlined functions |
David Neto | 40e9c60 | 2017-09-01 18:12:15 -0400 | [diff] [blame] | 720 | #798: spirv-as should fail when given unrecognized long option |
David Neto | 25ddfec | 2017-09-02 19:01:03 -0400 | [diff] [blame] | 721 | #800: Inliner: Fix inlining function into header of multi-block loop |
David Neto | d84df94 | 2017-09-26 11:30:57 -0400 | [diff] [blame] | 722 | #824: Eliminate-local-multi-store: Fix a crash |
| 723 | #826: Elimiante-local-multi-store: Fix a crash |
David Neto | 6eaaf7b | 2017-09-27 10:03:20 -0400 | [diff] [blame] | 724 | #827: Fix crash when compact-ids transform runs before another transform. |
Andrey Tuganov | c25b5be | 2017-09-25 12:45:48 -0400 | [diff] [blame] | 725 | #834: Add Cmake option to build the compressing codec. Off by default. |
David Neto | 493c088 | 2017-11-23 18:12:23 -0500 | [diff] [blame] | 726 | #911: Fix classification of Line and NoLine instructions |
David Neto | 7e2d26c | 2017-09-01 16:28:22 -0400 | [diff] [blame] | 727 | |
David Neto | d16403a | 2017-09-01 16:24:27 -0400 | [diff] [blame] | 728 | v2017.0 2017-09-01 |
| 729 | - Update README to describe that assembler, disassembler, and binary parser support |
| 730 | are based on grammar files from the SPIRV-Headers repository. |
| 731 | |
David Neto | a0977e8 | 2017-09-01 16:14:25 -0400 | [diff] [blame] | 732 | v2016.7 2017-09-01 |
David Neto | dbc2049 | 2017-03-14 12:43:41 -0400 | [diff] [blame] | 733 | - Add SPIR-V 1.2 |
| 734 | - OpenCL 2.2 support is now based on SPIR-V 1.2 |
David Neto | 0b0454c | 2017-06-22 10:22:55 -0400 | [diff] [blame] | 735 | - Support AMD extensions in assembler, disassembler: |
| 736 | SPV_AMD_gcn_shader |
| 737 | SPV_AMD_shader_ballot |
| 738 | SPV_AMD_shader_explicit_vertex_parameter |
| 739 | SPV_AMD_shader_trinary_minmax |
| 740 | SPV_AMD_gpu_shader_half_float |
| 741 | SPV_AMD_texture_gather_bias_lod |
| 742 | SPV_AMD_gpu_shader_int16 |
| 743 | - Optimizer: Add support for: |
| 744 | - Inline all function calls in entry points. |
David Neto | 15612fe | 2017-08-01 15:33:15 -0400 | [diff] [blame] | 745 | - Flatten decoration groups. Fixes #602 |
David Neto | 0b0454c | 2017-06-22 10:22:55 -0400 | [diff] [blame] | 746 | - Id compaction (minimize Id bound). Fixes #624 |
| 747 | - Eliminate redundant composite insert followed by extract |
| 748 | - Simplify access chains to local variables |
| 749 | - Eliminate local variables with a single store, if possible |
David Neto | 15612fe | 2017-08-01 15:33:15 -0400 | [diff] [blame] | 750 | - Eliminate local variables with a several stores, if possible |
David Neto | 0b0454c | 2017-06-22 10:22:55 -0400 | [diff] [blame] | 751 | - Eliminate loads and stores in same block to local variables |
David Neto | 15612fe | 2017-08-01 15:33:15 -0400 | [diff] [blame] | 752 | - Eliminate redundant insert/extract to composite values |
| 753 | - Aggressive dead instruction elimination |
| 754 | - Eliminate dead branches |
| 755 | - Merge blocks when the second can only be preceded by the first |
David Neto | 95a600c | 2017-08-04 17:48:22 -0400 | [diff] [blame] | 756 | - Eliminate ommon uniform loads |
David Neto | 1d8efb0 | 2017-04-20 15:54:10 -0400 | [diff] [blame] | 757 | - Assembler: Add option to preserve numeric ids. Fixes #625 |
David Neto | f8cc397 | 2016-12-16 15:32:56 -0500 | [diff] [blame] | 758 | - Add build target spirv-tools-vimsyntax to generate spvasm.vim, a SPIR-V |
| 759 | assembly syntax file for Vim. |
David Neto | 699943d | 2017-01-17 15:41:23 -0500 | [diff] [blame] | 760 | - Version string: Allow overriding of wall clock timestamp with contents |
| 761 | of environment variable SOURCE_DATE_EPOCH. |
David Neto | e3632a2 | 2017-02-28 11:53:05 -0500 | [diff] [blame] | 762 | - Validator implements relaxed rules for SPV_KHR_16bit_storage. |
David Neto | 826d968 | 2017-07-04 12:27:31 -0400 | [diff] [blame] | 763 | - CMake installation rules use GNUInstallDirs. For example, libraries |
| 764 | will be installed into a lib64 directory if that's the norm for the |
| 765 | current system. |
David Neto | 37422e9 | 2016-12-19 13:26:42 -0500 | [diff] [blame] | 766 | - Fixes: |
Ehsan Nasiri | da4ae05 | 2017-02-15 13:29:33 -0500 | [diff] [blame] | 767 | #500: Parameterize validator limit checks |
David Neto | 37422e9 | 2016-12-19 13:26:42 -0500 | [diff] [blame] | 768 | #508: Support compilation under CYGWIN |
Ehsan Nasiri | 109ce22 | 2017-01-05 12:53:02 -0500 | [diff] [blame] | 769 | #517: Fix validation when continue (or case) contstruct is also the head of a |
| 770 | nested control construct. |
David Neto | dadd516 | 2017-02-09 14:23:52 -0500 | [diff] [blame] | 771 | #551: If a merge block is reachable, it must be *strictly* dominated by its |
| 772 | header. |
Adam Van Ymeren | c094970 | 2017-02-15 13:31:07 -0500 | [diff] [blame] | 773 | #548: Validator: Error when the reserved OpImageSparseSampleProj* opcodes |
| 774 | are used. |
David Neto | afc60bb | 2017-04-02 02:17:41 -0400 | [diff] [blame] | 775 | #611: spvtools::Optimizer was failing to save the module to the output |
| 776 | binary vector when all passes succeded without changes. |
David Neto | 51b6778 | 2017-05-12 17:35:18 -0400 | [diff] [blame] | 777 | #629: The inline-entry-points-all optimization could generate invalidly |
| 778 | structured code when the inlined function had early returns. |
David Neto | 35a0695 | 2017-07-04 16:24:46 -0400 | [diff] [blame] | 779 | #697: Optimizer's Instruction::ForEachInId method was skipping semantics-id |
| 780 | and scope-id. |
David Neto | 720869b | 2017-08-10 13:13:33 -0400 | [diff] [blame] | 781 | #755: Inliner: Fix inlining of callee with single Return appearing before |
| 782 | the end of the function. |
David Neto | fc60d1e | 2017-08-30 14:25:23 -0400 | [diff] [blame] | 783 | #776: Fix dead branch elimination in presence of complex but dead control |
| 784 | flow. |
David Neto | d843cae | 2017-09-01 10:15:42 -0400 | [diff] [blame] | 785 | #781: SPV_KHR_variable_pointers allows duplicate pointer types |
David Neto | 9090da5 | 2017-08-29 23:22:07 -0400 | [diff] [blame] | 786 | #782: Inliner: Fix remapping of non-label forward references in callee |
David Neto | f241374 | 2017-09-01 16:13:12 -0400 | [diff] [blame] | 787 | #787: Inliner: Fix remapping of inlined entry block when called from |
| 788 | single block loop. |
| 789 | #790: Inliner: Fix remapping of inlined entry block when callee has |
| 790 | multiple returns. |
David Neto | 68c5f04 | 2016-12-13 11:49:50 -0500 | [diff] [blame] | 791 | |
David Neto | 5f5fa3a | 2016-12-13 11:49:09 -0500 | [diff] [blame] | 792 | v2016.6 2016-12-13 |
Lei Zhang | 620f05e | 2016-09-16 16:12:04 -0400 | [diff] [blame] | 793 | - Published the C++ interface for assembling, disassembling, validation, and |
| 794 | optimization. |
David Neto | ee6c877 | 2016-10-12 10:47:28 -0400 | [diff] [blame] | 795 | - Support SPV_KHR_shader_draw_parameters in assembler, disassembler, parser. |
David Neto | 5f5fa3a | 2016-12-13 11:49:09 -0500 | [diff] [blame] | 796 | - Validator: |
| 797 | - Add validator API accepting raw binary words |
| 798 | - Increased coverage: |
| 799 | - Checks "Data rules" in Universal Validation Rules, section 2.16.1 |
| 800 | - WIP: Universal Limits. |
| 801 | - The minimum mandated upper bounds are checked. |
| 802 | - TODO: Parameterize the validator to allow larger limits accepted by |
| 803 | a more than minimally capable implementation. |
| 804 | - OpSampledImage checks |
| 805 | - OpConstantComposite checks |
| 806 | - Id bound check |
| 807 | - Disasssembler: |
| 808 | - Generates friendly GLSL-based names for more builtin variables |
| 809 | - Generates friendly names for numeric OpConstant values |
| 810 | - Vendor tool info extracted from SPIR-V XML registry file. |
Umar Arshad | a6ef1ea | 2016-09-22 10:23:08 -0400 | [diff] [blame] | 811 | - Fixes issues: |
| 812 | #429: Validator: Allow OpTypeForwardPointer and OpTypeStruct to reference |
| 813 | undefined IDs |
David Neto | 5f5fa3a | 2016-12-13 11:49:09 -0500 | [diff] [blame] | 814 | #482: Validator: OpVariable initializer can be an ID of a module-scope variable |
David Neto | 6519fce | 2016-09-16 16:40:00 -0400 | [diff] [blame] | 815 | |
David Neto | f9763ac | 2016-09-16 16:39:40 -0400 | [diff] [blame] | 816 | v2016.5 2016-09-16 |
David Neto | 9382035 | 2016-09-16 14:40:02 -0400 | [diff] [blame] | 817 | - Support SPV_KHR_shader_ballot in assembler, disassembler, parser. |
David Neto | e0dd033 | 2016-09-13 12:38:42 -0400 | [diff] [blame] | 818 | - Disassembler: Generate friendly names for built-in variables. |
David Neto | 26b51ef | 2016-09-12 16:48:05 -0400 | [diff] [blame] | 819 | - Partial fixes: |
| 820 | #359: Add Emacs helper for automatically diassembling/assembling a SPIR-V |
| 821 | binary on file load/save. |
David Neto | 5c9080e | 2016-09-14 11:04:19 -0400 | [diff] [blame] | 822 | - Fixes: |
David Neto | 247e024 | 2016-09-14 15:22:47 -0400 | [diff] [blame] | 823 | #414: Validator: Allow OpUndef for composite constants |
David Neto | 5c9080e | 2016-09-14 11:04:19 -0400 | [diff] [blame] | 824 | #415: Validator: Phi can use its own value in some cases. |
David Neto | e70a957 | 2016-09-01 15:38:53 -0400 | [diff] [blame] | 825 | |
David Neto | 9fc8658 | 2016-09-01 15:33:59 -0400 | [diff] [blame] | 826 | v2016.4 2016-09-01 |
| 827 | - Relicensed under Apache 2.0 |
qining | 380f36e | 2016-08-04 13:24:08 -0400 | [diff] [blame] | 828 | - Add optimization passes (in API and spirv-opt command) |
| 829 | - Fold spec constants defined with OpSpecConstantOp and |
| 830 | OpSpecConstantComposite to normal constants with fixed value(s). |
David Neto | 9fc8658 | 2016-09-01 15:33:59 -0400 | [diff] [blame] | 831 | - Fixes issues: |
| 832 | #318: Relicensed under Apache 2.0 |
David Neto | 0d4b73c | 2016-08-24 11:18:16 -0400 | [diff] [blame] | 833 | |
David Neto | a7a84bd | 2016-08-24 11:17:07 -0400 | [diff] [blame] | 834 | v2016.3 2016-08-24 |
David Neto | c296701 | 2016-08-05 18:19:30 -0400 | [diff] [blame] | 835 | - Add target environment enums for OpenCL 2.1, OpenCL 2.2, |
| 836 | OpenGL 4.0, OpenGL 4.1, OpenGL 4.2, OpenGL 4.3, OpenGL 4.5. |
David Neto | 996a814 | 2016-08-03 11:55:14 -0400 | [diff] [blame] | 837 | - Add spirv-cfg, an experimental tool to dump the control flow graph |
| 838 | as a GraphiViz "dot" graph |
| 839 | - Add optimization pass: Eliminate dead constants. |
David Neto | 3c35b63 | 2016-08-22 11:38:18 -0400 | [diff] [blame] | 840 | - Add spirv-lesspipe.sh filter utility |
qining | 23266c9 | 2016-08-10 16:02:18 -0400 | [diff] [blame] | 841 | - Fixes issues: |
David Neto | 7784829 | 2016-08-10 10:40:59 -0400 | [diff] [blame] | 842 | #288: Check def-use dominance rules for OpPhi (variable,parent) operands |
David Neto | a7a84bd | 2016-08-24 11:17:07 -0400 | [diff] [blame] | 843 | #339: Allow OpUndef in types-constants-global-vars section, as required |
| 844 | by SPIR-V 1.0 Rev7, 1.1 Rev 3. |
David Neto | 033b7d0 | 2016-08-12 14:19:17 -0400 | [diff] [blame] | 845 | #340: Avoid race on mkdir during build |
David Neto | 97d06a3 | 2016-08-24 09:47:49 -0400 | [diff] [blame] | 846 | #365: Relax PointSize, ClipDistance, CullDistance capability check in all |
| 847 | environments not just Vulkan 1.0. |
David Neto | aa30312 | 2016-08-05 17:10:36 -0400 | [diff] [blame] | 848 | |
David Neto | 8e3ac3c | 2016-08-05 17:07:34 -0400 | [diff] [blame] | 849 | v2016.2 2016-08-05 |
Umar Arshad | efc782d | 2016-07-13 18:57:52 -0400 | [diff] [blame] | 850 | - Validator is incomplete |
| 851 | - Checks ID use block is dominated by definition block |
David Neto | c978b72 | 2016-07-27 17:02:22 -0400 | [diff] [blame] | 852 | - Add optimization passes (in API and spirv-opt command) |
qining | a245062 | 2016-07-26 12:11:03 -0400 | [diff] [blame] | 853 | - Strip debug info instructions |
| 854 | - Freeze spec constant to their default values |
David Neto | 8e3ac3c | 2016-08-05 17:07:34 -0400 | [diff] [blame] | 855 | - Allow INotEqual as operation for OpSpecConstantOp |
David Neto | c978b72 | 2016-07-27 17:02:22 -0400 | [diff] [blame] | 856 | - Fixes bugs: |
| 857 | #270: validator: crash when continue construct is unreachable |
| 858 | #279: validator: infinite loop when analyzing some degenerate control |
| 859 | flow graphs |
David Neto | 8e3ac3c | 2016-08-05 17:07:34 -0400 | [diff] [blame] | 860 | #286: validator: don't incorrectly generate def-use error for |
| 861 | (variable,parent) parameters to OpPhi |
David Neto | 9acc0f1 | 2016-08-02 11:59:10 -0400 | [diff] [blame] | 862 | #290: disassembler: never generate bare % for an identifier |
David Neto | 621fa39 | 2016-08-04 14:57:09 -0400 | [diff] [blame] | 863 | #295: validator: def-use dominance check should ignore unreachable uses |
David Neto | 8e3ac3c | 2016-08-05 17:07:34 -0400 | [diff] [blame] | 864 | #276: validator: allow unreachable continue constructs |
| 865 | #297: validator: allow an unreachable block to branch to a reachable |
| 866 | merge block |
Lei Zhang | 45af1dd | 2016-07-19 15:04:43 -0400 | [diff] [blame] | 867 | |
Lei Zhang | 1e7c5cb | 2016-07-19 15:03:52 -0400 | [diff] [blame] | 868 | v2016.1 2016-07-19 |
David Neto | 06581f5 | 2016-07-07 17:03:22 -0400 | [diff] [blame] | 869 | - Fix https://github.com/KhronosGroup/SPIRV-Tools/issues/261 |
| 870 | Turn off ClipDistance and CullDistance capability checks for Vulkan. |
David Neto | 0bdcc23 | 2016-07-08 14:29:52 -0400 | [diff] [blame] | 871 | - The disassembler can emit friendly names based on debug info (OpName |
| 872 | instructions), and will infer somewhat friendly names for most types. |
| 873 | This is turned on by default for the spirv-dis command line tool. |
Lei Zhang | 1e7c5cb | 2016-07-19 15:03:52 -0400 | [diff] [blame] | 874 | - Updated to support SPIR-V 1.1 rev 2 |
| 875 | - Input StorageClass, Sampled1D capability, and SampledBuffer capability |
| 876 | do not require Shader capability anymore. |
David Neto | ce7ced1 | 2016-07-04 15:13:08 -0400 | [diff] [blame] | 877 | |
David Neto | 8405893 | 2016-06-02 15:29:13 -0400 | [diff] [blame] | 878 | v2016.0 2016-07-04 |
David Neto | 9166854 | 2016-04-21 20:50:11 -0400 | [diff] [blame] | 879 | |
| 880 | - Adds v<year>.<index> versioning, with "-dev" indicating |
| 881 | work in progress. The intent is to more easly report |
| 882 | and summarize functionality when SPIRV-Tools is incorporated |
| 883 | in downstream projects. |
| 884 | |
| 885 | - Summary of functionality (See the README.md for more): |
| 886 | - Supports SPIR-V 1.1 Rev 1 |
| 887 | - Supports SPIR-V 1.0 Rev 5 |
| 888 | - Supports GLSL std450 extended instructions 1.0 Rev 3 |
| 889 | - Supports OpenCL extended instructions 1.0 Rev 2 |
| 890 | - Assembler, disassembler are complete |
| 891 | - Supports floating point widths of 16, 32, 64 bits |
| 892 | - Supports integer widths up to 64 bits |
| 893 | - Validator is incomplete |
David Neto | 8405893 | 2016-06-02 15:29:13 -0400 | [diff] [blame] | 894 | - Checks capability requirements in most cases |
| 895 | - Checks module layout constraints |
| 896 | - Checks ID use-definition ordering constraints, |
| 897 | ignoring control flow |
| 898 | - Checks some control flow graph rules |
| 899 | - Optimizer is introduced, with few available transforms. |
David Neto | 9166854 | 2016-04-21 20:50:11 -0400 | [diff] [blame] | 900 | - Supported on Linux, OSX, Android, Windows |
David Neto | 37e4600 | 2016-06-14 11:45:35 -0400 | [diff] [blame] | 901 | |
| 902 | - Fixes bugs: |
| 903 | - #143: OpenCL pow and pown arguments |