1. 08 Oct, 2018 3 commits
    • Clean up TCompiler members and style · 6f591c97
      Olli Etuaho authored
      Some dead code and duplicate data are cleaned up from the compiler.
      Several parameters can be accessed directly from ShBuiltInResources
      instead of creating a copy in TCompiler.
      
      This also encapsulates some TCompiler member functions as private and
      changes the remaining unprefixed TCompiler member variable names to
      start with the m prefix.
      
      BUG=angleproject:2068
      TEST=angle_unittests
      
      Change-Id: I6690aaf538b17e0f45460660272a21f82f1808a0
      Reviewed-on: https://chromium-review.googlesource.com/c/1267503Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
      Commit-Queue: Olli Etuaho <oetuaho@nvidia.com>
    • ES31: Fix some bugs in ShaderStorageBlockOutputHLSL · 6d765b07
      Qin Jiajia authored
      When EOpIndexDirect/EOpIndexIndirect/EOpIndexDirectStruct/TIntermSwizzle
      appear in [] in ssbo access chain, we should transfer the process of them to
      OutputHLSL.
      
      For example:
          instance.v[gl_GlobalInvocationID.x] = data;
          // becomes
          float_Store(dx_instance, 0 + 16 * gl_GlobalInvocationID.x, _data);
      
          instance.v[s.index[0].x] = data;
          // becomes
          float_Store(dx_instance, 0 + 16 * _s.index[0].x, _data);
      
      Bug: angleproject:1951
      Change-Id: I333e238400a10a799a6294f8759cf9c4ef2451c8
      Reviewed-on: https://chromium-review.googlesource.com/c/1250661Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org>
      Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
      Commit-Queue: Jiajia Qin <jiajia.qin@intel.com>
    • ES31: Support textureGather[Offset] on shadow samplers · 19b51d29
      Jiawei Shao authored
      This patch implements translating textureGather[Offset] into HLSL
      when the sampler is a shadow sampler. The related HLSL function
      should be GatherCmp().
      
      According to the definition of textureGatherOffset():
      ([ESSL 3.1] Chapter 8.9.3 Page 138)
      - gvec4 textureGatherOffset(gsampler2D sampler, vec2 P,
        ivec2 offset, [,int comp])
      - vec4 textureGatherOffset(sampler2DShadow sampler, vec2 P,
        float refZ, ivec2 offset)
      We need to add parameter "refZ" before "offset" when the sampler
      is a shadow sampler.
      
      Bug: angleproject:2826
      Test: dEQP-GLES31.functional.texture.gather.basic.2d.depth32f.*
           dEQP-GLES31.functional.texture.gather.basic.2d_array.depth32f.*
           dEQP-GLES31.functional.texture.gather.basic.cube.depth32f.*
           dEQP-GLES31.functional.texture.gather.offset.min_required_offset.2d.depth32f.*
           dEQP-GLES31.functional.texture.gather.offset.min_required_offset.2d_array.depth32f.*
           dEQP-GLES31.functional.texture.gather.offset.implementation_offset.2d.depth32f.*
           dEQP-GLES31.functional.texture.gather.offset.implementation_offset.2d_array.depth32f.*
      
      Change-Id: I9a7d095dd3cfa41aaefd14d012ed1f309abfc6d5
      Reviewed-on: https://chromium-review.googlesource.com/c/1244081
      Commit-Queue: Jiawei Shao <jiawei.shao@intel.com>
      Reviewed-by: 's avatarJiajia Qin <jiajia.qin@intel.com>
      Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
      Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org>
  2. 05 Oct, 2018 9 commits
  3. 04 Oct, 2018 6 commits
  4. 03 Oct, 2018 5 commits
  5. 02 Oct, 2018 5 commits
  6. 01 Oct, 2018 12 commits