1. 28 Oct, 2015 2 commits
    • Add a test for flat shader 'provoking vertex'. · d55d283c
      Jamie Madill authored
      The provoking vertex, or leading vertex, is the vertex in a triangle
      which produces the value that gets used for a flat-shaded triangle.
      Flat shading means the same value gets used for the entire triangle.
      
      It seems as though D3D and OpenGL have different definitions of which
      vertex is the leading/provoking one; GL says it is the *last* vertex
      of a primitive, while while D3D says it is the first.
      
      Additional complexity comes about from triangle strips, which switch
      winding order, and primitive restart, which defines new primitives in
      the middle of prior primitives.
      
      BUG=angleproject:754
      
      Change-Id: If1217cba33dabf3b1e4ad13fd639d049cb16fe44
      Reviewed-on: https://chromium-review.googlesource.com/309152Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org>
      Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
      Tested-by: 's avatarJamie Madill <jmadill@chromium.org>
    • Fix parsing integers larger than 0x7FFFFFFF · f541f529
      Olli Etuaho authored
      Parsing should accept all values between 0 and 0xFFFFFFFF as specified in
      ESSL 3.00 section 4.1.3.
      
      When a signed literal is parsed, it's interpreted as if it specifies the
      bit pattern of a two's complement integer. For example, parsing
      "0xFFFFFFFF" results in -1. Decimal literals behave the same way, so for
      example parsing "3000000000" results in -1294967296.
      
      This change affects parsing of literals in ESSL 1.00 as well. In ESSL
      3.00, an out-of-range integer literal now generates a compiler error.
      
      Unit tests are added based on examples in the ESSL 3.00 spec and one
      example in GLSL 4.5 spec that ESSL should match.
      
      BUG=541550
      TEST=angle_unittests
      
      Change-Id: I82f8ef5cfa2881019a3f80d77ff99707d61c000d
      Reviewed-on: https://chromium-review.googlesource.com/305420Reviewed-by: 's avatarZhenyao Mo <zmo@chromium.org>
      Tested-by: 's avatarOlli Etuaho <oetuaho@nvidia.com>
      Reviewed-by: 's avatarCorentin Wallez <cwallez@google.com>
  2. 27 Oct, 2015 6 commits
  3. 26 Oct, 2015 10 commits
  4. 23 Oct, 2015 7 commits
  5. 22 Oct, 2015 8 commits
  6. 21 Oct, 2015 3 commits
  7. 20 Oct, 2015 2 commits
  8. 19 Oct, 2015 2 commits