Edit

kc3-lang/angle/util/angle_features_autogen.h

Branch :

  • Show log

    Commit

  • Author : Alexey Knyazev
    Date : 2023-03-01 00:00:00
    Hash : 4256c022
    Message : Metal: Implement ANGLE_stencil_texturing Used texture views to sample stencil values from combined depth/stencil textures. Texture2DDepthStencilTestES3.TexSampleModes* tests were split into swizzled and non-swizzled variants to suppress only swizzled cases on some platforms. Added a new avoidStencilTextureSwizzle workaround to skip creating swizzled texture views of stencil-only textures on platforms that fail to sample from them. Fixed: angleproject:8051 Change-Id: I0b1148f8d30fc6459239efcdaeee6c0364633cc8 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4304058 Commit-Queue: Alexey Knyazev <lexa.knyazev@gmail.com> Reviewed-by: Kenneth Russell <kbr@chromium.org> Reviewed-by: Geoff Lang <geofflang@chromium.org>

  • util/angle_features_autogen.h
  • // GENERATED FILE - DO NOT EDIT.
    // Generated by gen_features.py using data from *_features.json.
    //
    // Copyright 2022 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.
    //
    // angle_features_autogen.h: List of ANGLE features to help enable/disable them in tests.
    
    #ifndef ANGLE_SRC_TESTS_TEST_UTILS_ANGLE_FEATURES_AUTOGEN_H_
    #define ANGLE_SRC_TESTS_TEST_UTILS_ANGLE_FEATURES_AUTOGEN_H_
    
    #include "util_export.h"
    
    namespace angle
    {
    enum class Feature
    {
        AddAndTrueToLoopCondition,
        AddMockTextureNoRenderTarget,
        AdjustSrcDstRegionForBlitFramebuffer,
        AllocateNonZeroMemory,
        AllowAstcFormats,
        AllowBufferReadWrite,
        AllowClearForRobustResourceInit,
        AllowCompressedFormats,
        AllowES3OnFL100,
        AllowETCFormats,
        AllowGenerateMipmapWithCompute,
        AllowGenMultipleMipsPerPass,
        AllowInlineConstVertexData,
        AllowMultisampleStoreAndResolve,
        AllowRenderpassWithoutAttachment,
        AllowRuntimeSamplerCompareMode,
        AllowSamplerCompareGradient,
        AllowSamplerCompareLod,
        AllowSeparateDepthStencilBuffers,
        AllowTranslateUniformBlockToStructuredBuffer,
        AlwaysCallUseProgramAfterLink,
        AlwaysUnbindFramebufferTexture2D,
        AsyncCommandBufferReset,
        AsyncCommandQueue,
        Avoid1BitAlphaTextureFormats,
        AvoidStencilTextureSwizzle,
        BindTransformFeedbackBufferBeforeBindBufferRange,
        BorderColorSrgb,
        BottomLeftOriginPresentRegionRectangles,
        BresenhamLineRasterization,
        CacheCompiledShader,
        CallClearTwice,
        ClampArrayAccess,
        ClampFragDepth,
        ClampMscRate,
        ClampPointSize,
        ClearToZeroOrOneBroken,
        ClipSrcRegionForBlitFramebuffer,
        CompressVertexData,
        CopyIOSurfaceToNonIOSurfaceForReadOptimization,
        CopyTextureToBufferForReadOptimization,
        DecodeEncodeSRGBForGenerateMipmap,
        DeferFlushUntilEndRenderPass,
        DepthClamping,
        DepthStencilBlitExtraCopy,
        DisableAnisotropicFiltering,
        DisableB5G6R5Support,
        DisableBlendFuncExtended,
        DisableDrawBuffersIndexed,
        DisableFlippingBlitWithCommand,
        DisableGPUSwitchingSupport,
        DisableMultisampledRenderToTexture,
        DisableNativeParallelCompile,
        DisableProgramBinary,
        DisableProgramCachingForTransformFeedback,
        DisableProgrammableBlending,
        DisableRasterizerOrderViews,
        DisableRasterOrderGroups,
        DisableRWTextureTier2Support,
        DisableSemaphoreFd,
        DisableSyncControlSupport,
        DisableTextureClampToBorder,
        DisableTimestampQueries,
        DisableWorkerContexts,
        DisallowMixedDepthStencilLoadOpNoneAndLoad,
        DoesSRGBClearsOnLinearFramebufferAttachments,
        DontInitializeUninitializedLocals,
        DontRelinkProgramsInParallel,
        DontUseLoopsToInitializeVariables,
        DoWhileGLSLCausesGPUHang,
        DumpShaderSource,
        EglColorspaceAttributePassthrough,
        EmulateAbsIntFunction,
        EmulateAdvancedBlendEquations,
        EmulateAtan2Float,
        EmulateClipDistanceState,
        EmulateCopyTexImage2D,
        EmulateCopyTexImage2DFromRenderbuffers,
        EmulateDithering,
        EmulatedPrerotation180,
        EmulatedPrerotation270,
        EmulatedPrerotation90,
        EmulateImmutableCompressedTexture3D,
        EmulateIsnanFloat,
        EmulateMaxVertexAttribStride,
        EmulatePackSkipRowsAndPackSkipPixels,
        EmulatePixelLocalStorage,
        EmulatePrimitiveRestartFixedIndex,
        EmulateR32fImageAtomicExchange,
        EmulateRGB10,
        EmulateTinyStencilTextures,
        EmulateTransformFeedback,
        EnableAsyncPipelineCacheCompression,
        EnableCaptureLimits,
        EnableInMemoryMtlLibraryCache,
        EnableMultisampledRenderToTexture,
        EnableParallelMtlLibraryCompilation,
        EnablePrecisionQualifiers,
        EnablePreRotateSurfaces,
        EnableProgramBinaryForCapture,
        EnableShaderSubstitution,
        EnableTimestampQueries,
        ExpandIntegerPowExpressions,
        ExplicitlyEnablePerSampleShading,
        ExposeNonConformantExtensionsAndVersions,
        FinishDoesNotCauseQueriesToBeAvailable,
        FlushAfterEndingTransformFeedback,
        FlushBeforeDeleteTextureIfCopiedTo,
        FlushOnFramebufferChange,
        ForceAtomicValueResolution,
        ForceBufferGPUStorage,
        ForceContinuousRefreshOnSharedPresent,
        ForceD16TexFilter,
        ForceD24S8AsUnsupported,
        ForceDepthAttachmentInitOnClear,
        ForceFallbackFormat,
        ForceFragmentShaderPrecisionHighpToMediump,
        ForceGlErrorChecking,
        ForceInitShaderVariables,
        ForceMaxUniformBufferSize16KB,
        ForceNearestFiltering,
        ForceNearestMipFiltering,
        ForceNonCSBaseMipmapGeneration,
        ForceRobustResourceInit,
        ForceStaticVertexStrideState,
        ForceSubmitImmutableTextureUpdates,
        ForceTextureLodOffset1,
        ForceTextureLodOffset2,
        ForceTextureLodOffset3,
        ForceTextureLodOffset4,
        ForceWaitForSubmissionToCompleteForQueryResult,
        GetDimensionsIgnoresBaseLevel,
        HasBaseVertexInstancedDraw,
        HasCheapRenderPass,
        HasDepthAutoResolve,
        HasEffectivePipelineCacheSerialization,
        HasEvents,
        HasExplicitMemBarrier,
        HasNonUniformDispatch,
        HasShaderStencilOutput,
        HasStencilAutoResolve,
        HasTextureSwizzle,
        InitFragmentOutputVariables,
        InitializeCurrentVertexAttributes,
        IntelDisableFastMath,
        IntelExplicitBoolCastWorkaround,
        KeepBufferShadowCopy,
        LimitMax3dArrayTextureSizeTo1024,
        LimitMaxColorTargetBitsForTesting,
        LimitMaxDrawBuffersForTesting,
        LimitMaxMSAASamplesTo4,
        LimitWebglMaxTextureSizeTo4096,
        LogMemoryReportCallbacks,
        LogMemoryReportStats,
        LoseContextOnOutOfMemory,
        MapUnspecifiedColorSpaceToPassThrough,
        MergeProgramPipelineCachesToGlobalCache,
        MrtPerfWorkaround,
        MultisampleColorFormatShaderReadWorkaround,
        MutableMipmapTextureUpload,
        OverrideSurfaceFormatRGB8ToRGBA8,
        PackLastRowSeparatelyForPaddingInclusion,
        PackOverlappingRowsSeparatelyPackBuffer,
        PadBuffersToMaxVertexAttribStride,
        PassHighpToPackUnormSnormBuiltins,
        PerFrameWindowSizeQuery,
        PermanentlySwitchToFramebufferFetchMode,
        PersistentlyMappedBuffers,
        PreAddTexelFetchOffsets,
        PrecisionSafeDivision,
        PreemptivelyStartProvokingVertexCommandBuffer,
        PreferAggregateBarrierCalls,
        PreferCPUForBufferSubData,
        PreferDeviceLocalMemoryHostVisible,
        PreferDrawClearOverVkCmdClearAttachments,
        PreferDriverUniformOverSpecConst,
        PreferLinearFilterForYUV,
        PreferMonolithicPipelinesOverLibraries,
        PreferSkippingInvalidateForEmulatedFormats,
        PreferSubmitAtFBOBoundary,
        PreferSubmitOnAnySamplesPassedQueryEnd,
        PromotePackedFormatsTo8BitPerChannel,
        ProvokingVertex,
        QueryCounterBitsGeneratesErrors,
        ReadPixelsUsingImplementationColorReadFormatForNorm16,
        ReapplyUBOBindingsAfterUsingBinaryProgram,
        RegenerateStructNames,
        RemoveDynamicIndexingOfSwizzledVector,
        RemoveInvariantAndCentroidForESSL3,
        ResetTexImage2DBaseLevel,
        RetainSPIRVDebugInfo,
        RewriteFloatUnaryMinusOperator,
        RewriteRepeatedAssignToSwizzled,
        RewriteRowMajorMatrices,
        RewriteUnaryMinusOperator,
        RGBA4IsNotSupportedForColorRendering,
        RGBDXT1TexturesSampleZeroAlpha,
        RoundOutputAfterDithering,
        SanitizeAMDGPURendererString,
        ScalarizeVecAndMatConstructorArgs,
        SelectViewInGeometryShader,
        SetDataFasterThanImageUpload,
        SetPrimitiveRestartFixedIndexForDrawArrays,
        SetZeroLevelBeforeGenerateMipmap,
        ShiftInstancedArrayDataWithOffset,
        SingleThreadedTextureDecompression,
        SkipVSConstantRegisterZero,
        SlowAsyncCommandQueueForTesting,
        SlowDownMonolithicPipelineCreationForTesting,
        SupportsAndroidHardwareBuffer,
        SupportsAndroidNativeFenceSync,
        SupportsBindMemory2,
        SupportsBlendOperationAdvanced,
        SupportsColorWriteEnable,
        SupportsComputeTranscodeEtcToBc,
        SupportsCustomBorderColor,
        SupportsDepthClipControl,
        SupportsDepthClipEnable,
        SupportsDepthStencilResolve,
        SupportsExtendedDynamicState,
        SupportsExtendedDynamicState2,
        SupportsExternalFenceCapabilities,
        SupportsExternalFenceFd,
        SupportsExternalMemoryDmaBufAndModifiers,
        SupportsExternalMemoryFd,
        SupportsExternalMemoryFuchsia,
        SupportsExternalMemoryHost,
        SupportsExternalSemaphoreCapabilities,
        SupportsExternalSemaphoreFd,
        SupportsExternalSemaphoreFuchsia,
        SupportsFilteringPrecision,
        SupportsFragmentShaderInterlockARB,
        SupportsFragmentShaderInterlockNV,
        SupportsFragmentShaderOrderingINTEL,
        SupportsFragmentShaderPixelInterlock,
        SupportsFragmentShadingRate,
        SupportsGeometryStreamsCapability,
        SupportsGetMemoryRequirements2,
        SupportsGGPFrameToken,
        SupportsGraphicsPipelineLibrary,
        SupportsHostQueryReset,
        SupportsImage2dViewOf3d,
        SupportsImageCubeArray,
        SupportsImageFormatList,
        SupportsImagelessFramebuffer,
        SupportsIncrementalPresent,
        SupportsIndexTypeUint8,
        SupportsLockSurfaceExtension,
        SupportsLogicOpDynamicState,
        SupportsMemoryBudget,
        SupportsMixedReadWriteDepthStencilLayouts,
        SupportsMultiDrawIndirect,
        SupportsMultisampledRenderToSingleSampled,
        SupportsMultisampledRenderToSingleSampledGOOGLEX,
        SupportsMultiview,
        SupportsNegativeViewport,
        SupportsPipelineCreationCacheControl,
        SupportsPipelineCreationFeedback,
        SupportsPipelineProtectedAccess,
        SupportsPipelineRobustness,
        SupportsPipelineStatisticsQuery,
        SupportsPresentation,
        SupportsPrimitivesGeneratedQuery,
        SupportsPrimitiveTopologyListRestart,
        SupportsProtectedMemory,
        SupportsRasterizationOrderAttachmentAccess,
        SupportsRenderpass2,
        SupportsRenderPassLoadStoreOpNone,
        SupportsRenderPassStoreOpNone,
        SupportsSamplerMirrorClampToEdge,
        SupportsShaderFloat16,
        SupportsShaderFramebufferFetch,
        SupportsShaderFramebufferFetchEXT,
        SupportsShaderFramebufferFetchNonCoherent,
        SupportsShaderFramebufferFetchNonCoherentEXT,
        SupportsShaderPixelLocalStorageEXT,
        SupportsShaderStencilExport,
        SupportsSharedPresentableImageExtension,
        SupportsSurfaceCapabilities2Extension,
        SupportsSurfacelessQueryExtension,
        SupportsSurfaceProtectedCapabilitiesExtension,
        SupportsSurfaceProtectedSwapchains,
        SupportsSwapchainMaintenance1,
        SupportsTimestampSurfaceAttribute,
        SupportsTransformFeedbackExtension,
        SupportsVertexInputDynamicState,
        SupportsYUVSamplerConversion,
        SupportsYuvTarget,
        SwapbuffersOnFlushOrFinishWithSingleBuffer,
        SyncMonolithicPipelinesToBlobCache,
        SyncVertexArraysToDefault,
        UnbindFBOBeforeSwitchingContext,
        UnfoldShortCircuits,
        UnpackLastRowSeparatelyForPaddingInclusion,
        UnpackOverlappingRowsSeparatelyUnpackBuffer,
        UnsizedSRGBReadPixelsDoesntTransform,
        UploadDataToIosurfacesWithStagingBuffers,
        UploadTextureDataInChunks,
        UseInstancedPointSpriteEmulation,
        UseMultipleDescriptorsForExternalFormats,
        UseNonZeroStencilWriteMaskStaticState,
        UseResetCommandBufferBitForSecondaryPools,
        UseSystemMemoryForConstantBuffers,
        UseUnusedBlocksWithStandardOrSharedLayout,
        UseVmaForImageSuballocation,
        VaryingsRequireMatchingPrecisionInSpirv,
        VertexIDDoesNotIncludeBaseVertex,
        WaitIdleBeforeSwapchainRecreation,
        WarmUpPipelineCacheAtLink,
        ZeroMaxLodWorkaround,
    
        InvalidEnum,
        EnumCount = InvalidEnum,
    };
    
    ANGLE_UTIL_EXPORT extern const char *GetFeatureName(Feature feature);
    
    }  // namespace angle
    
    #endif  // ANGLE_SRC_TESTS_TEST_UTILS_ANGLE_FEATURES_AUTOGEN_H_