mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-12-15 08:03:30 -08:00
tests/shader_runner: Introduce a new tag system.
Mostly to be able to associate a version number to each tag and get rid of all the foo<1.2.3 tags. The new system also has fixed tag slots, rather than dealing with strings, so we don't have to manually adjust the size of the `tags' array. With the new system each tag can be present or not, and if it is present it can have an associated version number (of the form major.minor.patch). If the version is not available, it is set to 0.0.0. Each tag can be queried for existence and for comparison with the version number.
This commit is contained in:
committed by
Henri Verbeet
parent
41515b7047
commit
cd64aa69c8
Notes:
Henri Verbeet
2025-10-06 19:48:45 +02:00
Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1768
@@ -358,12 +358,14 @@ static BOOL init_test_context(struct d3d11_shader_runner *runner)
|
||||
runner->caps.format_caps[formats[i]] = get_format_support(runner->device, formats[i]);
|
||||
}
|
||||
|
||||
runner->caps.tag_count = 0;
|
||||
runner->caps.tags[runner->caps.tag_count++] = "d3d11";
|
||||
runner->caps.tags[SHADER_RUNNER_TAG_D3D11].present = true;
|
||||
runner->caps.tags[SHADER_RUNNER_TAG_WINDOWS].present = true;
|
||||
|
||||
if (test_options.use_warp_device)
|
||||
runner->caps.tags[runner->caps.tag_count++] = "warp";
|
||||
runner->caps.tags[SHADER_RUNNER_TAG_WARP].present = true;
|
||||
|
||||
if (is_nvidia_windows_device(runner->device))
|
||||
runner->caps.tags[runner->caps.tag_count++] = "nvidia";
|
||||
runner->caps.tags[SHADER_RUNNER_TAG_NVIDIA].present = true;
|
||||
|
||||
rt_width = RENDER_TARGET_WIDTH;
|
||||
rt_height = RENDER_TARGET_HEIGHT;
|
||||
|
||||
Reference in New Issue
Block a user