mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
tests/shader-runner: Check for int64 support in the Vulkan runner.
This commit is contained in:
parent
a80ea8168f
commit
f23426ec32
Notes:
Alexandre Julliard
2023-12-14 23:31:36 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/524
@ -71,6 +71,7 @@ struct vulkan_shader_runner
|
||||
} samplers[MAX_SAMPLERS];
|
||||
|
||||
bool supports_float64;
|
||||
bool supports_int64;
|
||||
|
||||
DECLARE_VK_PFN(vkCreateInstance);
|
||||
#define VK_INSTANCE_PFN DECLARE_VK_PFN
|
||||
@ -89,6 +90,8 @@ static bool vulkan_runner_check_requirements(struct shader_runner *r)
|
||||
|
||||
if (runner->r.require_float64 && !runner->supports_float64)
|
||||
return false;
|
||||
if (runner->r.require_int64 && !runner->supports_int64)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
@ -1340,6 +1343,12 @@ static bool init_vulkan_runner(struct vulkan_shader_runner *runner)
|
||||
features.shaderFloat64 = VK_TRUE;
|
||||
runner->supports_float64 = true;
|
||||
}
|
||||
trace("shaderInt64: %u.\n", ret_features.shaderInt64);
|
||||
if (ret_features.shaderInt64)
|
||||
{
|
||||
features.shaderInt64 = VK_TRUE;
|
||||
runner->supports_int64 = true;
|
||||
}
|
||||
|
||||
if ((vr = VK_CALL(vkCreateDevice(runner->phys_device, &device_desc, NULL, &device))))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user