From e761b2cad19ba79ee60e33b2f317174e19ca3752 Mon Sep 17 00:00:00 2001 From: "Anna (navi) Figueiredo Gomes" Date: Mon, 2 Sep 2024 23:35:17 +0200 Subject: [PATCH] tests/shader_runner: Introduce a "d3d12" tag. --- tests/shader_runner.c | 1 + tests/shader_runner_d3d12.c | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/tests/shader_runner.c b/tests/shader_runner.c index 464487a8..51c0a6a3 100644 --- a/tests/shader_runner.c +++ b/tests/shader_runner.c @@ -147,6 +147,7 @@ static bool check_qualifier_args_conjunction(struct shader_runner *runner, const {"sm<4", SHADER_MODEL_2_0, SHADER_MODEL_4_0 - 1}, {"sm<6", SHADER_MODEL_2_0, SHADER_MODEL_6_0 - 1}, {"glsl", 0, 0, true}, + {"d3d12", 0, 0, true}, }; while (*line != ')' && *line != '|') diff --git a/tests/shader_runner_d3d12.c b/tests/shader_runner_d3d12.c index 2159c678..f0171400 100644 --- a/tests/shader_runner_d3d12.c +++ b/tests/shader_runner_d3d12.c @@ -980,6 +980,11 @@ static void d3d12_runner_init_caps(struct d3d12_shader_runner *runner, D3D12_FEATURE_DATA_D3D12_OPTIONS options; HRESULT hr; + static const char *const tags[] = + { + "d3d12", + }; + static const enum DXGI_FORMAT formats[] = { DXGI_FORMAT_R32_FLOAT, @@ -1021,6 +1026,8 @@ static void d3d12_runner_init_caps(struct d3d12_shader_runner *runner, runner->caps.rov = options.ROVsSupported; runner->caps.wave_ops = options1.WaveOps; runner->caps.depth_bounds = options2.DepthBoundsTestSupported; + runner->caps.tags = tags; + runner->caps.tag_count = ARRAY_SIZE(tags); for (unsigned int i = 0; i < ARRAY_SIZE(formats); ++i) {