Skip to content

Commit

Permalink
tests: Check for FP64 support, not Int64 support in denorm test.
Browse files Browse the repository at this point in the history
Signed-off-by: Hans-Kristian Arntzen <[email protected]>
  • Loading branch information
HansKristian-Work committed May 19, 2023
1 parent edb15f4 commit 6365efe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/d3d12_sm_advanced.c
Original file line number Diff line number Diff line change
Expand Up @@ -5693,7 +5693,7 @@ void test_advanced_cbv_layout(void)
static void test_denorm_behavior(bool use_dxil)
{
D3D12_FEATURE_DATA_D3D12_OPTIONS4 features4;
D3D12_FEATURE_DATA_D3D12_OPTIONS1 features1;
D3D12_FEATURE_DATA_D3D12_OPTIONS features;
D3D12_FEATURE_DATA_SHADER_MODEL model;
D3D12_ROOT_PARAMETER root_param[2];
D3D12_ROOT_SIGNATURE_DESC rs_desc;
Expand Down Expand Up @@ -6414,9 +6414,9 @@ static void test_denorm_behavior(bool use_dxil)
features4.Native16BitShaderOpsSupported;

support_64bit =
SUCCEEDED(ID3D12Device_CheckFeatureSupport(context.device, D3D12_FEATURE_D3D12_OPTIONS1,
&features1, sizeof(features1))) &&
features1.Int64ShaderOps;
SUCCEEDED(ID3D12Device_CheckFeatureSupport(context.device, D3D12_FEATURE_D3D12_OPTIONS,
&features, sizeof(features))) &&
features.DoublePrecisionFloatShaderOps;

memset(&rs_desc, 0, sizeof(rs_desc));
memset(&root_param, 0, sizeof(root_param));
Expand Down

0 comments on commit 6365efe

Please sign in to comment.