tests/shader-runner: Check for int64 support in the Vulkan runner.

This commit is contained in:
Conor McCarthy 2023-12-14 18:59:46 +10:00 committed by Alexandre Julliard
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

View File

@ -71,6 +71,7 @@ struct vulkan_shader_runner
} samplers[MAX_SAMPLERS]; } samplers[MAX_SAMPLERS];
bool supports_float64; bool supports_float64;
bool supports_int64;
DECLARE_VK_PFN(vkCreateInstance); DECLARE_VK_PFN(vkCreateInstance);
#define VK_INSTANCE_PFN DECLARE_VK_PFN #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) if (runner->r.require_float64 && !runner->supports_float64)
return false; return false;
if (runner->r.require_int64 && !runner->supports_int64)
return false;
return true; return true;
} }
@ -1340,6 +1343,12 @@ static bool init_vulkan_runner(struct vulkan_shader_runner *runner)
features.shaderFloat64 = VK_TRUE; features.shaderFloat64 = VK_TRUE;
runner->supports_float64 = 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)))) if ((vr = VK_CALL(vkCreateDevice(runner->phys_device, &device_desc, NULL, &device))))
{ {