1. 06 Aug, 2020 5 commits
  2. 04 Aug, 2020 3 commits
  3. 03 Aug, 2020 1 commit
  4. 02 Aug, 2020 1 commit
  5. 30 Jul, 2020 3 commits
  6. 29 Jul, 2020 4 commits
  7. 28 Jul, 2020 5 commits
  8. 27 Jul, 2020 8 commits
    • Manual changes required for SPIR-V update · 12c9d4ac
      Alexis Hetu authored
      Bug: b/123642959
      Change-Id: I9ee44d6f3ae332f50110a4108481103dca998c77
      Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/47098
      Presubmit-Ready: Alexis Hétu <sugoi@google.com>
      Kokoro-Result: kokoro <noreply+kokoro@google.com>
      Tested-by: 's avatarAlexis Hétu <sugoi@google.com>
      Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
    • Merge changes Icf7b69da,I2c88ee38 · deae0116
      Alexis Hétu authored
      * changes:
        Update SPIR-V Headers to 979924c8b
        Squashed 'third_party/SPIRV-Headers/' changes from f8bf11a02..979924c8b
    • Merge changes Id54668de,I200b4417 · f0946aa3
      Alexis Hétu authored
      * changes:
        Update SPIR-V Tools to 8a5500656
        Squashed 'third_party/SPIRV-Tools/' changes from 55af3902f..8a5500656
    • Add Wayland support for Vulkan WSI · a681d126
      Nicolas Caramelli authored
      Bug: b/161736397
      Change-Id: Ia795a1dcf201cc33027f520c0af8d5839d873af9
      Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/46768Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com>
      Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
      Tested-by: 's avatarNicolas Caramelli <caramelli.devel@gmail.com>
    • Update SPIR-V Headers to 979924c8b · 29427935
      Alexis Hetu authored
      Changes:
          979924c8b Support SPV_KHR_terminate_invocation (#163)
          7f2ae1193 Merge pull request #162 from vkushwaha-nv/SPV_EXT_shader_atomic_float
          7083cb52e Add changes for SPV_EXT_shader_atomic_float
          308bd0742 Merge pull request #160 from dj2/reg_tint
          5ce353315 Register the Tint compiler
          11d7637e7 Merge pull request #159 from dneto0/fix-quotes
          291d7bf7a spir-v.xml: Use plain ASCII quotes in comment
          ed09fc149 Merge pull request #158 from mkinsner/mkinsner/fpfastmath_allocation_mechanism
          f2d2ca132 Rebuild headers against the previous grammar commit.
          9e2b21a74 Merge pull request #150 from MrSidims/private/MrSidims/UpstreamIntelExt
          7d343e9c0 Apply suggestions
          dfa87b6d4 Add Intel specific definitions from KhronosGroup/SPIRV-LLVM-Translator
          ae6e15156 Header build from previous grammar update.
          8012d1c86 Merge pull request #152 from MrSidims/private/MrSidims/FunctionPointers
          982a08f59 Propose bit allocation mechanism for the FP Fast Math Mode bitfield, following from the mechanism previously added for the loop control bitfield.
          ac638f181 Merge pull request #157 from dneto0/update-example
          1fa1a92e0 Update example to use unified1 headers
          c0df742ec Update headers to SPIR-V 1.5 Revision 3
          375789625 Add a bunch of missing "version" : "None" for ray tracing.
          6300597a6 Rebuild the headers with the fixed grammar file.
          c26f7e838 Add missing "version" : "None" for ShaderCallKHR
          445017dc7 Grammar: The ray-tracing updates were not done in numerical ordering.
          2ad0492fb Discuss generator magic number reservations.
          9995e294c Add SPV_INTEL_function_pointers preview extension
      
      Commands:
          ./third_party/update-spirvheaders.sh
      
      Bug: b/123642959
      Change-Id: Icf7b69da64e742a2e43fa6d7d9c42addf0d5aee2
    • Squashed 'third_party/SPIRV-Headers/' changes from f8bf11a02..979924c8b · 91f0d257
      Alexis Hetu authored
      979924c8b Support SPV_KHR_terminate_invocation (#163)
      7f2ae1193 Merge pull request #162 from vkushwaha-nv/SPV_EXT_shader_atomic_float
      7083cb52e Add changes for SPV_EXT_shader_atomic_float
      308bd0742 Merge pull request #160 from dj2/reg_tint
      5ce353315 Register the Tint compiler
      11d7637e7 Merge pull request #159 from dneto0/fix-quotes
      291d7bf7a spir-v.xml: Use plain ASCII quotes in comment
      ed09fc149 Merge pull request #158 from mkinsner/mkinsner/fpfastmath_allocation_mechanism
      f2d2ca132 Rebuild headers against the previous grammar commit.
      9e2b21a74 Merge pull request #150 from MrSidims/private/MrSidims/UpstreamIntelExt
      7d343e9c0 Apply suggestions
      dfa87b6d4 Add Intel specific definitions from KhronosGroup/SPIRV-LLVM-Translator
      ae6e15156 Header build from previous grammar update.
      8012d1c86 Merge pull request #152 from MrSidims/private/MrSidims/FunctionPointers
      982a08f59 Propose bit allocation mechanism for the FP Fast Math Mode bitfield, following from the mechanism previously added for the loop control bitfield.
      ac638f181 Merge pull request #157 from dneto0/update-example
      1fa1a92e0 Update example to use unified1 headers
      c0df742ec Update headers to SPIR-V 1.5 Revision 3
      375789625 Add a bunch of missing "version" : "None" for ray tracing.
      6300597a6 Rebuild the headers with the fixed grammar file.
      c26f7e838 Add missing "version" : "None" for ShaderCallKHR
      445017dc7 Grammar: The ray-tracing updates were not done in numerical ordering.
      2ad0492fb Discuss generator magic number reservations.
      9995e294c Add SPV_INTEL_function_pointers preview extension
      
      git-subtree-dir: third_party/SPIRV-Headers
      git-subtree-split: 979924c8bc839e4cb1b69d03d48398551f369ce7
    • Update SPIR-V Tools to 8a5500656 · 02ce5163
      Alexis Hetu authored
      Changes:
          8a5500656 spirv-fuzz: adds TransformationReplaceLoadStoreWithCopyMemory (#3586)
          7c901a49c Preserve OpenCL.DebugInfo.100 through private-to-local pass (#3571)
          767518e8e spirv-fuzz: Relax type checking for int contants (#3573)
          f8920bcfa spirv-fuzz: Generalise transformation access chain (#3546)
          98ac9fd6d spirv-fuzz: Split blocks starting with OpPhi before trying to outline (#3581)
          059ab0819 spirv-fuzz: Set message consumer in replayer when shrinking (#3591)
          d6306537d spirv-fuzz: Don't use default parameters (#3583)
          969f02864 Change DEPS rolling script to point at external/ (#3584)
          1aaf5c613 spirv-fuzz: Create a helper in fuzzerutil to reuse function type (#3572)
          89b3bc5a8 spirv-fuzz: Test usages of IdIsIrrelevant fact (#3578)
          9dc1bfa31 spirv-fuzz: adds TransformationReplaceCopyMemoryWithLoadStore (#3575)
          586a12b9d spirv-fuzz: adds TransformationReplaceCopyObjectWithStoreLoad (#3567)
          0b84727f2 Start SPIRV-Tools v2020.5
          895927bd3 Finalize SPIRV-Tools v2020.4
          bc2f78b7d spirv-fuzz: Fix usages of irrelevant constants (#3566)
          a0d8dc2b4 Update CHANGES
          f3cec9366 Support SPV_KHR_terminate_invocation (#3568)
          dca2c86bc Sink pointer instructions in merge return (#3569)
          cf7e922e7 Preserve OpenCL.DebugInfo.100 through elim-dead-code-aggressive (#3542)
          fe9e5db89 spirv-fuzz: TransformationReplaceParamsWithStruct (#3455)
          e4aebf99f Add changes for SPV_EXT_shader_atomic_float (#3562)
          5dc96d5d2 spirv-fuzz: Use irrelevant constants (#3565)
          98395b834 spirv-fuzz: Extend TransformationRecordSynonymousConstants to allow composite constants (#3537)
          a3b0adc30 spirv-fuzz: Add is_irrelevant parameter (#3563)
          8b5ed4448 spirv-fuzz: Add IdIsIrrelevant fact (#3561)
          c10d6cebb spirv-fuzz: refactor to use RemoveAtRandomIndex (#3560)
          0d8fe0fba spirv-fuzz: add TransformationAddRelaxedDecoration (#3545)
          717e7877c Store location values sparsely (#3488)
          d5766f280 Permit Simple and GLSL450 memory model in WEBGPU_0 (#3463)
          bcc78b3e9 spirv-fuzz: support floating-point in TransformationInvertComparisonOperator (#3551)
          fb32c4074 Change MaybeApplyTransformation to return a boolean (#3555)
          7dfd9b868 spirv-fuzz: Implement MaybeApplyTransformation helper function (#3540)
          de1ff50f2 spirv-fuzz: Assert false in IsApplicable method of TransformationAccessChain (#3528)
          680c77fa6 spirv-fuzz: Add support for OpBitcast to TransformationEquationInstruction (#3523)
          b0206b0f6 spirv-fuzz: Add support for OpConvert to TransformationEquationInstruction (#3472)
          7221ccf85 Fix reachability in the validator (#3541)
          2fa735dc0 spirv-fuzz: Remove TransformationCopyObject (#3531)
          8e0215afe spirv-opt: Add support for OpLabel to dominator analysis (#3516)
          f12c40f5a spirv-fuzz: Fuzzer pass to interchange zero-like constants (#3524)
          3e7238c68 spirv-fuzz: Add replay range option (#3535)
          4c33fb0d3 Rewrite KillDebugDeclares() (#3513)
          362276978 spirv-fuzz: Fix instruction insertion issue (#3521)
          91d921e89 spirv-fuzz: Implement the OpMatrixTimesMatrix linear algebra case (#3527)
          282392dda Add support to GPU-AV instrumentation for Task and Mesh shaders (#3512)
          c9b254d04 spirv-fuzz: Support adding dead break from back-edge block (#3519)
          fe4dca516 Support OpPhi when replacing boolean constant operand (#3518)
          40c3c1cac spirv-fuzz: TransformationAddSynonyms (#3447)
          13dc28ce7 spirv-fuzz: Remove unused functions (#3510)
          282962362 spirv-fuzz: Minor refactoring (#3507)
          cf8c86a2d Preserve OpenCL.DebugInfo.100 through elim-local-single-store (#3498)
          a687057a8 Preserve debug info in vector DCE pass (#3497)
          5f8cdd8b4 Implement transformation to record synonymous constants. (#3494)
          94667fbf6 Fix build failure (#3508)
          44428352b Upgrade elim-local-single-block for OpenCL.DebugInfo.100 (#3451)
          de56c34bd spirv-fuzz: TransformationReplaceParameterWithGlobal (#3434)
          11946e640 Implement the OpMatrixTimesVector linear algebra case (#3500)
          f8eddbbe5 Preserve OpenCL.100.DebugInfo in reduce-load-size pass (#3492)
          daa3b47ed spirv-fuzz: Add image sample unused components transformation (#3439)
          7afbc0c8b spirv-fuzz: Add variables with workgroup storage class (#3485)
          2fbeb04b6 spirv-fuzz: Implement the OpVectorTimesMatrix linear algebra case (#3489)
          6d61c1159 spirv-fuzz: fuzzerutil::MaybeGetConstant* #3487
          6a4da9da4 Debug info preservation in copy-prop-array pass (#3444)
          bd2a9ea85 spirv-fuzz: TransformationInvertComparisonOperator (#3475)
          2c1ff230c Fix regression (#3481)
          4a92579a4 spirv-fuzz: Add fuzzerutil::FindOrCreate* (#3479)
          fba90d6b0 spirv-fuzz: Add FuzzerPassAddCopyMemoryInstructions (#3391)
          ab10489a0 spirv-fuzz: Add one parameter at a time (#3469)
          fc0dc3a9c Fix ADCE pass bug for mulitple entries (#3470)
          91c50e3fc Add gl_BaseInstance to the name mapper. (#3462)
          c3680adbd Implement the OpMatrixTimesScalar linear algebra case (#3450)
          efaae24d0 Clear debug information for kill and replacement (#3459)
          a1fb255a2 Validate location assignments (#3308)
          7a1af5878 Support OpCompositeExtract pattern in desc_sroa (#3456)
          29ba53f2a spirv-fuzz: Implement FuzzerPassAddParameters (#3399)
          71a5b6770 spirv-fuzz: Add GetParameters (#3454)
          8e586e46a spirv-fuzz: Permute OpPhi instruction operands (#3421)
          36b5bb701 Add support for different default/trunks in roll-deps (#3442)
          d4b9f576e [spirv-opt] debug info preservation in ssa-rewrite (#3356)
          2a1b8c062 Updated desc_sroa to support flattening structures (#3448)
          33cf7c425 spirv-fuzz: Refactor variable creation (#3414)
          d5306c8e8 spirv-fuzz: Swap operands in OpBranchConditional (#3423)
          545d158a2 Use structured order to unroll loops. (#3443)
          5342930f9 Debug info preservation in dead branch elimination (#3425)
          99651228b Add RemoveParameter method (#3437)
          57d9e360c Fix return type (#3435)
          a7112d544 Eliminate branches with condition of OpConstantNull (#3438)
          949470354 spirv-fuzz: Implement vector shuffle fuzzer pass (#3412)
          12a4fb3bc spirv-fuzz: Add replace linear algebra instruction transformation (#3402)
          52a5f074e Update access control lists. (#3433)
          30bf46dbe Fix operand access (#3427)
          5543d5faa Debug info preservation in ccp pass (#3420)
          458140aed Fix round trip tests that weren't instantiated (#3417)
          e49896709 spirv-fuzz: Add a test (#3238)
          c01f826bc spirv-fuzz: Add support for OpSpecConstant* (#3373)
          7c213720b spirv-fuzz: Fix replayer bug (#3401)
          9ed0fef6e Add value instruction condition (#3385)
          ffaecad32 Fix instruction function use (#3390)
          94808bd0f spirv-fuzz: Fix regression (#3396)
          74130f2d3 Fix googletest inclusion (#3398)
          636f449e1 Add tests for merge-return debug info preservation (#3389)
          f050cca7e spirv-fuzz: Add push id through variable transformation (#3359)
          8dfdbeff8 Rolling 4 dependencies (#3380)
          20e7fc505 Start SPIRV-Tools v2020.4
          e128ab0d6 Finalize SPIRV-Tools v2020.3
          9b8a6a144 Update CHANGES
          d3d89bb90 spirv-fuzz: Support bit width argument for int and float types (#3378)
      
      Commands:
          ./third_party/update-spirvtools.sh
      
      Bug: b/123642959
      Change-Id: Id54668de78b22bf61434d050162e06de30366d52
    • Squashed 'third_party/SPIRV-Tools/' changes from 55af3902f..8a5500656 · c00ee6cc
      Alexis Hetu authored
      8a5500656 spirv-fuzz: adds TransformationReplaceLoadStoreWithCopyMemory (#3586)
      7c901a49c Preserve OpenCL.DebugInfo.100 through private-to-local pass (#3571)
      767518e8e spirv-fuzz: Relax type checking for int contants (#3573)
      f8920bcfa spirv-fuzz: Generalise transformation access chain (#3546)
      98ac9fd6d spirv-fuzz: Split blocks starting with OpPhi before trying to outline (#3581)
      059ab0819 spirv-fuzz: Set message consumer in replayer when shrinking (#3591)
      d6306537d spirv-fuzz: Don't use default parameters (#3583)
      969f02864 Change DEPS rolling script to point at external/ (#3584)
      1aaf5c613 spirv-fuzz: Create a helper in fuzzerutil to reuse function type (#3572)
      89b3bc5a8 spirv-fuzz: Test usages of IdIsIrrelevant fact (#3578)
      9dc1bfa31 spirv-fuzz: adds TransformationReplaceCopyMemoryWithLoadStore (#3575)
      586a12b9d spirv-fuzz: adds TransformationReplaceCopyObjectWithStoreLoad (#3567)
      0b84727f2 Start SPIRV-Tools v2020.5
      895927bd3 Finalize SPIRV-Tools v2020.4
      bc2f78b7d spirv-fuzz: Fix usages of irrelevant constants (#3566)
      a0d8dc2b4 Update CHANGES
      f3cec9366 Support SPV_KHR_terminate_invocation (#3568)
      dca2c86bc Sink pointer instructions in merge return (#3569)
      cf7e922e7 Preserve OpenCL.DebugInfo.100 through elim-dead-code-aggressive (#3542)
      fe9e5db89 spirv-fuzz: TransformationReplaceParamsWithStruct (#3455)
      e4aebf99f Add changes for SPV_EXT_shader_atomic_float (#3562)
      5dc96d5d2 spirv-fuzz: Use irrelevant constants (#3565)
      98395b834 spirv-fuzz: Extend TransformationRecordSynonymousConstants to allow composite constants (#3537)
      a3b0adc30 spirv-fuzz: Add is_irrelevant parameter (#3563)
      8b5ed4448 spirv-fuzz: Add IdIsIrrelevant fact (#3561)
      c10d6cebb spirv-fuzz: refactor to use RemoveAtRandomIndex (#3560)
      0d8fe0fba spirv-fuzz: add TransformationAddRelaxedDecoration (#3545)
      717e7877c Store location values sparsely (#3488)
      d5766f280 Permit Simple and GLSL450 memory model in WEBGPU_0 (#3463)
      bcc78b3e9 spirv-fuzz: support floating-point in TransformationInvertComparisonOperator (#3551)
      fb32c4074 Change MaybeApplyTransformation to return a boolean (#3555)
      7dfd9b868 spirv-fuzz: Implement MaybeApplyTransformation helper function (#3540)
      de1ff50f2 spirv-fuzz: Assert false in IsApplicable method of TransformationAccessChain (#3528)
      680c77fa6 spirv-fuzz: Add support for OpBitcast to TransformationEquationInstruction (#3523)
      b0206b0f6 spirv-fuzz: Add support for OpConvert to TransformationEquationInstruction (#3472)
      7221ccf85 Fix reachability in the validator (#3541)
      2fa735dc0 spirv-fuzz: Remove TransformationCopyObject (#3531)
      8e0215afe spirv-opt: Add support for OpLabel to dominator analysis (#3516)
      f12c40f5a spirv-fuzz: Fuzzer pass to interchange zero-like constants (#3524)
      3e7238c68 spirv-fuzz: Add replay range option (#3535)
      4c33fb0d3 Rewrite KillDebugDeclares() (#3513)
      362276978 spirv-fuzz: Fix instruction insertion issue (#3521)
      91d921e89 spirv-fuzz: Implement the OpMatrixTimesMatrix linear algebra case (#3527)
      282392dda Add support to GPU-AV instrumentation for Task and Mesh shaders (#3512)
      c9b254d04 spirv-fuzz: Support adding dead break from back-edge block (#3519)
      fe4dca516 Support OpPhi when replacing boolean constant operand (#3518)
      40c3c1cac spirv-fuzz: TransformationAddSynonyms (#3447)
      13dc28ce7 spirv-fuzz: Remove unused functions (#3510)
      282962362 spirv-fuzz: Minor refactoring (#3507)
      cf8c86a2d Preserve OpenCL.DebugInfo.100 through elim-local-single-store (#3498)
      a687057a8 Preserve debug info in vector DCE pass (#3497)
      5f8cdd8b4 Implement transformation to record synonymous constants. (#3494)
      94667fbf6 Fix build failure (#3508)
      44428352b Upgrade elim-local-single-block for OpenCL.DebugInfo.100 (#3451)
      de56c34bd spirv-fuzz: TransformationReplaceParameterWithGlobal (#3434)
      11946e640 Implement the OpMatrixTimesVector linear algebra case (#3500)
      f8eddbbe5 Preserve OpenCL.100.DebugInfo in reduce-load-size pass (#3492)
      daa3b47ed spirv-fuzz: Add image sample unused components transformation (#3439)
      7afbc0c8b spirv-fuzz: Add variables with workgroup storage class (#3485)
      2fbeb04b6 spirv-fuzz: Implement the OpVectorTimesMatrix linear algebra case (#3489)
      6d61c1159 spirv-fuzz: fuzzerutil::MaybeGetConstant* #3487
      6a4da9da4 Debug info preservation in copy-prop-array pass (#3444)
      bd2a9ea85 spirv-fuzz: TransformationInvertComparisonOperator (#3475)
      2c1ff230c Fix regression (#3481)
      4a92579a4 spirv-fuzz: Add fuzzerutil::FindOrCreate* (#3479)
      fba90d6b0 spirv-fuzz: Add FuzzerPassAddCopyMemoryInstructions (#3391)
      ab10489a0 spirv-fuzz: Add one parameter at a time (#3469)
      fc0dc3a9c Fix ADCE pass bug for mulitple entries (#3470)
      91c50e3fc Add gl_BaseInstance to the name mapper. (#3462)
      c3680adbd Implement the OpMatrixTimesScalar linear algebra case (#3450)
      efaae24d0 Clear debug information for kill and replacement (#3459)
      a1fb255a2 Validate location assignments (#3308)
      7a1af5878 Support OpCompositeExtract pattern in desc_sroa (#3456)
      29ba53f2a spirv-fuzz: Implement FuzzerPassAddParameters (#3399)
      71a5b6770 spirv-fuzz: Add GetParameters (#3454)
      8e586e46a spirv-fuzz: Permute OpPhi instruction operands (#3421)
      36b5bb701 Add support for different default/trunks in roll-deps (#3442)
      d4b9f576e [spirv-opt] debug info preservation in ssa-rewrite (#3356)
      2a1b8c062 Updated desc_sroa to support flattening structures (#3448)
      33cf7c425 spirv-fuzz: Refactor variable creation (#3414)
      d5306c8e8 spirv-fuzz: Swap operands in OpBranchConditional (#3423)
      545d158a2 Use structured order to unroll loops. (#3443)
      5342930f9 Debug info preservation in dead branch elimination (#3425)
      99651228b Add RemoveParameter method (#3437)
      57d9e360c Fix return type (#3435)
      a7112d544 Eliminate branches with condition of OpConstantNull (#3438)
      949470354 spirv-fuzz: Implement vector shuffle fuzzer pass (#3412)
      12a4fb3bc spirv-fuzz: Add replace linear algebra instruction transformation (#3402)
      52a5f074e Update access control lists. (#3433)
      30bf46dbe Fix operand access (#3427)
      5543d5faa Debug info preservation in ccp pass (#3420)
      458140aed Fix round trip tests that weren't instantiated (#3417)
      e49896709 spirv-fuzz: Add a test (#3238)
      c01f826bc spirv-fuzz: Add support for OpSpecConstant* (#3373)
      7c213720b spirv-fuzz: Fix replayer bug (#3401)
      9ed0fef6e Add value instruction condition (#3385)
      ffaecad32 Fix instruction function use (#3390)
      94808bd0f spirv-fuzz: Fix regression (#3396)
      74130f2d3 Fix googletest inclusion (#3398)
      636f449e1 Add tests for merge-return debug info preservation (#3389)
      f050cca7e spirv-fuzz: Add push id through variable transformation (#3359)
      8dfdbeff8 Rolling 4 dependencies (#3380)
      20e7fc505 Start SPIRV-Tools v2020.4
      e128ab0d6 Finalize SPIRV-Tools v2020.3
      9b8a6a144 Update CHANGES
      d3d89bb90 spirv-fuzz: Support bit width argument for int and float types (#3378)
      
      git-subtree-dir: third_party/SPIRV-Tools
      git-subtree-split: 8a5500656ec0b495bb9d4f23257c3d21123225a9
  9. 26 Jul, 2020 2 commits
  10. 24 Jul, 2020 1 commit
  11. 23 Jul, 2020 6 commits
  12. 22 Jul, 2020 1 commit
    • Fix ReactorDebugInfo off by one line issues · 6a8a7498
      Antonio Maiorano authored
      Before this commit, when debugging with the ReactorDebugInfo feature,
      variables were being incorrectly displayed in the debugger. For
      instance, given:
      
      Int a = 1;
      Int b = 2;
      
      The debugger would not display 'a', and would display 'b' as containing
      the value '1'. The reason for this was that while the Int constructor
      for 'a' was executing, we invoke boost::stacktrace() to determine the
      variable's source location (file and line number); however, the stack
      trace would return the return address of the constructor call, which
      would be on the next line -- that of 'Int b'.
      
      To fix this, knowing that all ReactorDebugInfo emits come from function
      calls in Reactor code, we assume that all backtrace addresses point to
      the next instruction following the call, thus we subtract 1 from these
      addresses. When resolving the file and line number, this gets back the
      previous instruction's location. There are likely corner cases where
      this doesn't work, but it's better than what we have now.
      
      Bug: b/161821289
      Change-Id: Ie92ead393f321fc1a26fc019d6450bfddb7a5e24
      Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/46868Reviewed-by: 's avatarBen Clayton <bclayton@google.com>
      Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
      Kokoro-Result: kokoro <noreply+kokoro@google.com>
      Tested-by: 's avatarAntonio Maiorano <amaiorano@google.com>