mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-09-13 09:16:14 -07:00
tests/shader_runner: Introduce a "d3d12" tag.
This commit is contained in:
parent
3eb2a3d0e4
commit
e761b2cad1
Notes:
Henri Verbeet
2024-09-11 15:31:24 +02:00
Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1031
@ -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<4", SHADER_MODEL_2_0, SHADER_MODEL_4_0 - 1},
|
||||||
{"sm<6", SHADER_MODEL_2_0, SHADER_MODEL_6_0 - 1},
|
{"sm<6", SHADER_MODEL_2_0, SHADER_MODEL_6_0 - 1},
|
||||||
{"glsl", 0, 0, true},
|
{"glsl", 0, 0, true},
|
||||||
|
{"d3d12", 0, 0, true},
|
||||||
};
|
};
|
||||||
|
|
||||||
while (*line != ')' && *line != '|')
|
while (*line != ')' && *line != '|')
|
||||||
|
@ -980,6 +980,11 @@ static void d3d12_runner_init_caps(struct d3d12_shader_runner *runner,
|
|||||||
D3D12_FEATURE_DATA_D3D12_OPTIONS options;
|
D3D12_FEATURE_DATA_D3D12_OPTIONS options;
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
|
|
||||||
|
static const char *const tags[] =
|
||||||
|
{
|
||||||
|
"d3d12",
|
||||||
|
};
|
||||||
|
|
||||||
static const enum DXGI_FORMAT formats[] =
|
static const enum DXGI_FORMAT formats[] =
|
||||||
{
|
{
|
||||||
DXGI_FORMAT_R32_FLOAT,
|
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.rov = options.ROVsSupported;
|
||||||
runner->caps.wave_ops = options1.WaveOps;
|
runner->caps.wave_ops = options1.WaveOps;
|
||||||
runner->caps.depth_bounds = options2.DepthBoundsTestSupported;
|
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)
|
for (unsigned int i = 0; i < ARRAY_SIZE(formats); ++i)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user