1. 10 Jul, 2017 3 commits
    • Add support for new internalformats in copyTextureCHROMIUM · 340b7b8b
      Brandon Jones authored
      This adds support in blit11::copyTexture for LUMA, LUMA_ALPHA, and ALPHA
      formats as destinations. Added is handling for each case to match up
      the corresponding shader. This required new premultiply and
      unmultiply D3D11 shaders for some cases.
      
      Changed copyTextureCHROMIUM validation to allow new formats.
      
      Tests have been created to demonstrate using copyTextureCHROMIUM with
      the new formats with default parameters, as well as with the
      unpackPremultiply and unpackUnmultiply parameters.
      
      BUG=:angleproject:2101
      
      Change-Id: Id8cd303a46fe70710bc18172fc938552a6e4cfaf
    • Add function in MatchOutputCodeTest to find occurrence of a string · 70c95fa6
      Martin Radev authored
      The patch adds a function in MatchOutputCodeTest to get the position
      of the first occurrence of an expression in the translated output code.
      This can help design more complicated tests like a test which checks
      for the order of simple expressions.
      
      BUG=angleproject:2062
      TEST=angle_unittests
      
      Change-Id: I1249d4762c247848c4eec64ecb8c1357b5e8d40a
      Reviewed-on: https://chromium-review.googlesource.com/563659Reviewed-by: 's avatarOlli Etuaho <oetuaho@nvidia.com>
      Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org>
      Commit-Queue: Olli Etuaho <oetuaho@nvidia.com>
    • Fall back to CPU copies for srgb textures in copy_texture_CHROMIUM. · 88318b44
      Geoff Lang authored
      The copied data is not supposed to have sRGB conversions applied to it
      when written to the destination texture but an sRGB SRV is used by Blit11.
      Instead of creating multiple sRGB and non-sRGB SRVs for textures, simply
      fall back to the CPU copy path for this format for now.
      
      Clip color channels that should not exist in the destination texture
      formats in Image11::CopyImage.  This works around issues with texture
      formats with emulated channels.
      
      TEST=conformance2/textures/image_bitmap_from_canvas/tex-2d-srgb8-rgb-unsigned_byte
      TEST=conformance2/textures/image_bitmap_from_canvas/tex-2d-srgb8_alpha8-rgba-unsigned_byte
      
      BUG=angleproject:1932
      
      Change-Id: Ieeda3569f80d016fda781e7eb498acd3b97568d0
      Reviewed-on: https://chromium-review.googlesource.com/559857Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org>
      Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
      Commit-Queue: Geoff Lang <geofflang@chromium.org>
  2. 09 Jul, 2017 1 commit
  3. 07 Jul, 2017 5 commits
  4. 06 Jul, 2017 7 commits
  5. 05 Jul, 2017 12 commits
  6. 04 Jul, 2017 3 commits
  7. 03 Jul, 2017 2 commits
  8. 30 Jun, 2017 5 commits
  9. 29 Jun, 2017 2 commits