From f6c61a3eaed53a5079220004e5b2c80eb84a6ecf Mon Sep 17 00:00:00 2001 From: Danylo Piliaiev Date: Wed, 20 Oct 2021 20:37:57 +0300 Subject: [PATCH] tests: Use 4 samples in test_shader_get_render_target_sample_count Spec for CheckMultisampleQualityLevels says: "FEATURE_LEVEL_11_0 devices are required to support 4x MSAA for all render target formats, and 8x MSAA for all render target formats except R32G32B32A32 formats." Test uses R32G32B32A32_FLOAT and since we don't check if this format supports 8x MSAA, reduce MSAA to the minimum required by spec. Signed-off-by: Danylo Piliaiev --- tests/d3d12_shaders.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/d3d12_shaders.c b/tests/d3d12_shaders.c index 8cd67649..363ba49c 100644 --- a/tests/d3d12_shaders.c +++ b/tests/d3d12_shaders.c @@ -11410,11 +11410,11 @@ static void test_shader_get_render_target_sample_count(bool use_dxil) use_dxil ? (const void*)ps_code_dxil : (const void*)ps_code_dxbc, use_dxil ? sizeof(ps_code_dxil) : sizeof(ps_code_dxbc), }; - static const struct vec4 sample_count = {8.0f, 8.0f, 8.0f, 8.0f}; + static const struct vec4 sample_count = {4.0f, 4.0f, 4.0f, 4.0f}; memset(&desc, 0, sizeof(desc)); desc.rt_format = DXGI_FORMAT_R32G32B32A32_FLOAT; - desc.sample_desc.Count = 8; + desc.sample_desc.Count = 4; desc.no_pipeline = true; if (!init_test_context(&context, &desc)) return;