1. 03 Oct, 2016 2 commits
    • D3D11: Fix Buffer11::copyFromStorage and UBOs. · c4431804
      Jamie Madill authored
      The change to initialize a constant buffer immediately after
      calling BufferData in D3D11 led to a bug where we would map
      the UBO for writing with the wrong map bits. Fix this by
      using the same map method as the rest of the code.
      
      The D3D11 runtime seems to allow arbitrarily large constant buffers
      on Windows 10, but not Windows 7. Thus this CL also fixes a bug in
      our constant buffer size clamping to not copy more than the available
      buffer size for uniform buffers.
      
      BUG=chromium:651493
      
      Change-Id: I876767691d02db90ecb08a8fa78199f03339a35e
      Reviewed-on: https://chromium-review.googlesource.com/391167Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org>
      Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
      Commit-Queue: Jamie Madill <jmadill@chromium.org>
    • Ensure that all functions have a body node in the AST · f51fdd2e
      Olli Etuaho authored
      Some traversers that insert code to main() assume that the main()
      function has a non-null body node in place. This assumption was
      previously wrong, since functions could be missing the body node
      in case the function body was empty.
      
      Fix possible invalid dereferencing of missing function body nodes by
      always adding an empty sequence node to represent the body of
      functions that have an empty body in the ESSL source. This also
      enables simplifying some tree traversers that used to take the
      possibility of missing function body nodes into account.
      
      Also fix AddDefaultReturnStatements to check the last statement inside
      the function body for a return statement, instead of checking the
      first statement.
      
      BUG=angleproject:1539
      TEST=angle_unittests, angle_end2end_tests
      
      Change-Id: I2fbd18c78653fa2f1a96dbd9a619accc4874030d
      Reviewed-on: https://chromium-review.googlesource.com/392046Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org>
      Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
      Commit-Queue: Olli Etuaho <oetuaho@nvidia.com>
  2. 01 Oct, 2016 2 commits
  3. 30 Sep, 2016 1 commit
  4. 29 Sep, 2016 6 commits
  5. 28 Sep, 2016 4 commits
  6. 27 Sep, 2016 5 commits
  7. 26 Sep, 2016 2 commits
  8. 23 Sep, 2016 5 commits
  9. 22 Sep, 2016 10 commits
  10. 21 Sep, 2016 3 commits