Edit

kc3-lang/angle/src/tests/test_expectations/GPUTestConfig.h

Branch :

  • Show log

    Commit

  • Author : Le Hoang Quyen
    Date : 2019-11-21 01:19:40
    Hash : 6fcc0bb8
    Message : Metal: Re-add end2end test configs (running test is still disabled) angle_test_instantiate.cpp & angle_test_instantiate_apple.mm: - Disabled metal platform selection on pre-10.13 mac devices for Bug: angleproject:4153 Explicitly disabled tests on metal: - DifferentStencilMasksTest.DrawWithDifferentMask - PointSpritesTest.PointSizeAboveMaxIsClamped - WebGL2ReadOutsideFramebufferTest.CopyTexSubImage3D This requires the crash fix in http://crrev.com/c/1924101 Bug: angleproject:4153 Bug: angleproject:2634 Change-Id: I95046d731a8ba7414cf1a1f4b6f2940282725872 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1926389 Commit-Queue: Jonah Ryan-Davis <jonahr@google.com> Reviewed-by: Jamie Madill <jmadill@chromium.org> Reviewed-by: Jonah Ryan-Davis <jonahr@google.com>

  • src/tests/test_expectations/GPUTestConfig.h
  • //
    // Copyright 2019 The ANGLE Project Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style license that can be
    // found in the LICENSE file.
    //
    
    #ifndef TEST_EXPECTATIONS_GPU_TEST_CONFIG_H_
    #define TEST_EXPECTATIONS_GPU_TEST_CONFIG_H_
    
    #include <common/bitset_utils.h>
    
    namespace angle
    {
    
    struct GPUTestConfig
    {
      public:
        enum API
        {
            kAPIUnknown = 0,
            kAPID3D9,
            kAPID3D11,
            kAPIGLDesktop,
            kAPIGLES,
            kAPIVulkan,
            kAPISwiftShader,
            kAPIMetal,
        };
    
        enum Condition
        {
            kConditionNone = 0,
            kConditionWinXP,
            kConditionWinVista,
            kConditionWin7,
            kConditionWin8,
            kConditionWin10,
            kConditionWin,
            kConditionMacLeopard,
            kConditionMacSnowLeopard,
            kConditionMacLion,
            kConditionMacMountainLion,
            kConditionMacMavericks,
            kConditionMacYosemite,
            kConditionMacElCapitan,
            kConditionMacSierra,
            kConditionMacHighSierra,
            kConditionMacMojave,
            kConditionMac,
            kConditionLinux,
            kConditionAndroid,
            kConditionNVIDIA,
            kConditionAMD,
            kConditionIntel,
            kConditionVMWare,
            kConditionRelease,
            kConditionDebug,
            kConditionD3D9,
            kConditionD3D11,
            kConditionGLDesktop,
            kConditionGLES,
            kConditionVulkan,
            kConditionMetal,
            kConditionNexus5X,
            kConditionPixel2OrXL,
            kConditionNVIDIAQuadroP400,
            kConditionSwiftShader,
    
            kNumberOfConditions,
        };
    
        using ConditionArray = angle::BitSet<GPUTestConfig::kNumberOfConditions>;
    
        GPUTestConfig();
        GPUTestConfig(const API &api);
    
        const GPUTestConfig::ConditionArray &getConditions() const;
    
      protected:
        GPUTestConfig::ConditionArray mConditions;
    };
    
    }  // namespace angle
    
    #endif  // TEST_EXPECTATIONS_GPU_TEST_CONFIG_H_