[PATCH vkd3d 1/2] vkd3d: Add more features to CheckFeatureSupport().

Chip Davis cdavis at codeweavers.com
Mon Nov 25 10:15:01 CST 2019


November 25, 2019 5:59 AM, "Conor McCarthy" <cmccarthy at codeweavers.com> wrote:

> diff --git a/libs/vkd3d/device.c b/libs/vkd3d/device.c
> index 7ff567d..0404b76 100644
> --- a/libs/vkd3d/device.c
> +++ b/libs/vkd3d/device.c
> @@ -1336,6 +1336,33 @@ static HRESULT vkd3d_init_device_caps(struct d3d12_device *device,
>      device->feature_options.VPAndRTArrayIndexFromAnyShaderFeedingRasterizerSupportedWithoutGSEmulation = FALSE;
>      device->feature_options.ResourceHeapTier = D3D12_RESOURCE_HEAP_TIER_2;
> 
> +    device->feature_options1.WaveOps = FALSE;
> +    device->feature_options1.WaveLaneCountMin = 0;
> +    device->feature_options1.WaveLaneCountMax = 0;
> +    device->feature_options1.TotalLaneCount = 0;
> +    device->feature_options1.ExpandedComputeResourceStates = TRUE;
> +    device->feature_options1.Int64ShaderOps = features->shaderInt64;
> +
> +    /* Depth bounds test is enabled in D3D12_DEPTH_STENCIL_DESC1, which is not supported. */
> +    device->feature_options2.DepthBoundsTestSupported = FALSE;
> +    /* d3d12_command_list_SetSamplePositions() is not implemented. */
> +    device->feature_options2.ProgrammableSamplePositionsTier = D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER_NOT_SUPPORTED;
> +
> +    device->feature_options3.CopyQueueTimestampQueriesSupported = FALSE;
> +    device->feature_options3.CastingFullyTypedFormatSupported = FALSE;
> +    device->feature_options3.WriteBufferImmediateSupportFlags = D3D12_COMMAND_LIST_SUPPORT_FLAG_NONE;
> +    device->feature_options3.ViewInstancingTier = D3D12_VIEW_INSTANCING_TIER_NOT_SUPPORTED;
> +    device->feature_options3.BarycentricsSupported = FALSE;
> +
> +    /* Alignment support can be tested later. */
> +    device->feature_options4.MSAA64KBAlignedTextureSupported = FALSE;
> +    device->feature_options4.SharedResourceCompatibilityTier = D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER_0;
> +    device->feature_options4.Native16BitShaderOpsSupported = features->shaderInt16;

I think this also needs shaderFloat16 from VK_KHR_shader_float16_int8.


Chip



More information about the wine-devel mailing list