1. 13 Jan, 2016 4 commits
    • Add sampler array tests · 2173db3d
      Olli Etuaho authored
      This adds some coverage for samplers that is missing from dEQP.
      
      The shaders in the added tests both have a sampler array with two
      samplers. The test shaders sample both textures, add up the results,
      and the tests then check that the results of the shaders are correct.
      Only constant indexing is used to access the sampler arrays.
      
      One test accesses the sampler array in the main function, another one
      first passes the array as a parameter to a user-defined function.
      
      BUG=angleproject:1261
      TEST=angle_end2end_tests
      
      Change-Id: I9a0100705ac0da4905d50da37c0149fdbdd24c42
      Reviewed-on: https://chromium-review.googlesource.com/321623Reviewed-by: 's avatarZhenyao Mo <zmo@chromium.org>
      Tested-by: 's avatarOlli Etuaho <oetuaho@nvidia.com>
    • Add a test for sampler as a function parameter · 4644a20b
      Olli Etuaho authored
      This adds some coverage for samplers that's missing from dEQP.
      
      The test shader passes a sampler to an user-defined function, samples
      the texture there and sets the returned sample to gl_FragColor. The
      test then checks that the shader result is correct.
      
      BUG=angleproject:1261
      TEST=angle_end2end_tests
      
      Change-Id: I2cc511e591a4af01515c6fb38fd43c5f15337bcb
      Reviewed-on: https://chromium-review.googlesource.com/321622Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
      Reviewed-by: 's avatarZhenyao Mo <zmo@chromium.org>
      Tested-by: 's avatarOlli Etuaho <oetuaho@nvidia.com>
    • Test drawing with a shader with two different sampler types · 53a2da13
      Olli Etuaho authored
      This adds some test coverage that's missing from dEQP.
      
      The test uses two different samplers in a shader, a cube map sampler
      and a 2D texture sampler, adds the sampling results together and checks
      if the result is correct.
      
      BUG=angleproject:1261
      TEST=angle_end2end_tests
      
      Change-Id: If21e24c964fc208b5d1ccd446834dabf13194944
      Reviewed-on: https://chromium-review.googlesource.com/321621Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
      Reviewed-by: 's avatarZhenyao Mo <zmo@chromium.org>
      Tested-by: 's avatarOlli Etuaho <oetuaho@nvidia.com>
    • Refactoring: Split TextureTest to multiple classes · 4a8329f2
      Olli Etuaho authored
      This removes the cube map setup and the draw scale parameter from the
      tests that don't need them, and reuses the code for setting up the window
      and the shader program for most of the texture tests. The tests are now
      structured as follows:
      
      TexCoordDrawTest: Test class that sets up a shader program for drawing
      with texture coordinates. Vertex shader source can be overridden in
      subclasses, and fragment shader source must be specified in subclasses.
      
      Texture2DTest: Inherits TexCoordDrawTest, sets up a 2D texture and a
      shader for drawing from it.
      
      Texture2DTestWithDrawScale: Inherits Texture2DTest, adding a scale
      parameter that scales the quad that gets drawn.
      
      TextureCubeTest: Inherits TexCoordDrawTest, sets up a cube map and a 2D
      texture and a shader for drawing from them.
      
      Texture2DArrayTestES3: Inherits TexCoordDrawTest. Reserves a texture ID
      and sets up an ESSL3 shader for drawing from a 2D texture array.
      
      Also add a few comments about where things being tested are specified.
      
      Also, ANGLETest::drawQuad parameter names are renamed to make their
      meaning clearer. The parameters affect the vertex shader attribute
      values, which the shader may use for other things besides setting the
      vertex position.
      
      BUG=angleproject:1261
      TEST=angle_end2end_tests
      
      Change-Id: Id673e36d5883aaaf47f2f830c2a1ad0ca293d578
      Reviewed-on: https://chromium-review.googlesource.com/321620Reviewed-by: 's avatarZhenyao Mo <zmo@chromium.org>
      Tested-by: 's avatarOlli Etuaho <oetuaho@nvidia.com>
  2. 12 Jan, 2016 6 commits
  3. 11 Jan, 2016 3 commits
  4. 08 Jan, 2016 2 commits
  5. 07 Jan, 2016 4 commits
  6. 06 Jan, 2016 3 commits
  7. 05 Jan, 2016 9 commits
  8. 04 Jan, 2016 7 commits
  9. 02 Jan, 2016 2 commits