1. 27 Aug, 2016 1 commit
    • Add a workaround for Intel drivers on glsl function texelfetchoffset · 11e43ece
      Shao authored
      GLSL function texelfetchoffset will be translated into texture.Load in
      ANGLE. In D3D there is a note that When one or more of the coordinates
      in Location exceeds the u, v, or w mipmap level dimensions of the
      texture, Load returns zero in all components, but in glsl there is no
      such restriction, which will cause the WebGL 2 dEQP test
      deqp/functional/gles3/shadertexturefunction/texelfetchoffset.html fail
      on Windows with Intel GPU.
      
      Adapted from ExpandIntegerPowExpressions.cpp, this patch adds a
      translation from texelFetchOffset into texelFetch to work around this
      issue.
      
      BUG=angleproject:1469
      
      Change-Id: Iecfb9570472036acf5960789bdb1a63f191316be
      Reviewed-on: https://chromium-review.googlesource.com/367883
      Commit-Queue: Jamie Madill <jmadill@chromium.org>
      Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org>
  2. 26 Aug, 2016 7 commits
  3. 25 Aug, 2016 8 commits
  4. 24 Aug, 2016 4 commits
  5. 23 Aug, 2016 5 commits
  6. 22 Aug, 2016 4 commits
  7. 18 Aug, 2016 3 commits
  8. 17 Aug, 2016 3 commits
  9. 16 Aug, 2016 4 commits
  10. 15 Aug, 2016 1 commit
    • Clarify error checking function names in the GLSL parser · 856c497e
      Olli Etuaho authored
      Most error checking functions in ParseContext used to follow a format
      like <property>ErrorCheck. Sometimes this function would check that
      the node/value would have <property>, sometimes it would check that
      the node/value would not have it, which was confusing. Change most of
      these functions to use a lot more descriptive names, which clearly
      communicate what they are checking for.
      
      Also includes a bit of refactoring in constructorErrorCheck(), so that
      the function only checks for errors rather than also setting the type
      of the constructor node.
      
      Also make TType::arraySize unsigned, and return a sanitized size from
      checkIsValidArraySize() instead of using an output parameter.
      
      BUG=angleproject:911
      TEST=angle_unittests
      
      Change-Id: Id9767b8c79594ad3f782f801ea68eb96df721a31
      Reviewed-on: https://chromium-review.googlesource.com/367070Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
      Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
      Commit-Queue: Olli Etuaho <oetuaho@nvidia.com>