mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-12-15 08:03:30 -08:00
tests/hlsl: Mark a denormalization mode test as todo on Intel.
It behaves the same as llvmpipe.
This commit is contained in:
committed by
Henri Verbeet
parent
124bdae77c
commit
ffbf0320ba
Notes:
Henri Verbeet
2025-11-17 15:29:49 +01:00
Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1831
@@ -506,6 +506,11 @@ static inline bool is_llvmpipe_device(ID3D12Device *device)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline bool is_intel_device(ID3D12Device *device)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
static inline bool is_nvidia_device(ID3D12Device *device)
|
static inline bool is_nvidia_device(ID3D12Device *device)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
@@ -828,6 +833,14 @@ static inline bool is_llvmpipe_device(ID3D12Device *device)
|
|||||||
return properties.driverID == VK_DRIVER_ID_MESA_LLVMPIPE;
|
return properties.driverID == VK_DRIVER_ID_MESA_LLVMPIPE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline bool is_intel_device(ID3D12Device *device)
|
||||||
|
{
|
||||||
|
VkPhysicalDeviceDriverPropertiesKHR properties;
|
||||||
|
|
||||||
|
get_driver_properties(device, NULL, &properties);
|
||||||
|
return properties.driverID == VK_DRIVER_ID_INTEL_OPEN_SOURCE_MESA;
|
||||||
|
}
|
||||||
|
|
||||||
static inline bool is_nvidia_device(ID3D12Device *device)
|
static inline bool is_nvidia_device(ID3D12Device *device)
|
||||||
{
|
{
|
||||||
VkPhysicalDeviceDriverPropertiesKHR properties;
|
VkPhysicalDeviceDriverPropertiesKHR properties;
|
||||||
|
|||||||
@@ -537,12 +537,12 @@ uint4 main() : SV_Target
|
|||||||
denorm preserve
|
denorm preserve
|
||||||
uniform 0 uint64_t2 0x0031fa182c40c60d 0 % f64(1e-307, 0)
|
uniform 0 uint64_t2 0x0031fa182c40c60d 0 % f64(1e-307, 0)
|
||||||
draw quad
|
draw quad
|
||||||
todo(llvmpipe) probe (0, 0) u64(0x0000b8157268fdaf, 0x009c16c5c5253574) % f64(1e-309, 9.999999999999999e-306)
|
todo(llvmpipe | intel) probe (0, 0) u64(0x0000b8157268fdaf, 0x009c16c5c5253574) % f64(1e-309, 9.999999999999999e-306)
|
||||||
|
|
||||||
denorm ftz
|
denorm ftz
|
||||||
uniform 0 uint64_t2 0x0031fa182c40c60d 0 % f64(1e-307, 0)
|
uniform 0 uint64_t2 0x0031fa182c40c60d 0 % f64(1e-307, 0)
|
||||||
draw quad
|
draw quad
|
||||||
todo(llvmpipe) probe (0, 0) u64(0x0000b8157268fdaf, 0x009c16c5c5253574) % f64(1e-309, 9.999999999999999e-306)
|
todo(llvmpipe | intel) probe (0, 0) u64(0x0000b8157268fdaf, 0x009c16c5c5253574) % f64(1e-309, 9.999999999999999e-306)
|
||||||
|
|
||||||
[require]
|
[require]
|
||||||
shader model >= 6.2
|
shader model >= 6.2
|
||||||
|
|||||||
@@ -139,6 +139,7 @@ static const char * const shader_runner_tag_names[SHADER_RUNNER_TAG_COUNT] =
|
|||||||
[SHADER_RUNNER_TAG_D3D11] = "d3d11",
|
[SHADER_RUNNER_TAG_D3D11] = "d3d11",
|
||||||
[SHADER_RUNNER_TAG_D3D12] = "d3d12",
|
[SHADER_RUNNER_TAG_D3D12] = "d3d12",
|
||||||
[SHADER_RUNNER_TAG_GLSL] = "glsl",
|
[SHADER_RUNNER_TAG_GLSL] = "glsl",
|
||||||
|
[SHADER_RUNNER_TAG_INTEL] = "intel",
|
||||||
[SHADER_RUNNER_TAG_LLVM] = "llvm",
|
[SHADER_RUNNER_TAG_LLVM] = "llvm",
|
||||||
[SHADER_RUNNER_TAG_LLVMPIPE] = "llvmpipe",
|
[SHADER_RUNNER_TAG_LLVMPIPE] = "llvmpipe",
|
||||||
[SHADER_RUNNER_TAG_MESA] = "mesa",
|
[SHADER_RUNNER_TAG_MESA] = "mesa",
|
||||||
|
|||||||
@@ -172,6 +172,7 @@ enum shader_runner_tag
|
|||||||
SHADER_RUNNER_TAG_D3D11,
|
SHADER_RUNNER_TAG_D3D11,
|
||||||
SHADER_RUNNER_TAG_D3D12,
|
SHADER_RUNNER_TAG_D3D12,
|
||||||
SHADER_RUNNER_TAG_GLSL,
|
SHADER_RUNNER_TAG_GLSL,
|
||||||
|
SHADER_RUNNER_TAG_INTEL,
|
||||||
SHADER_RUNNER_TAG_LLVM,
|
SHADER_RUNNER_TAG_LLVM,
|
||||||
SHADER_RUNNER_TAG_LLVMPIPE,
|
SHADER_RUNNER_TAG_LLVMPIPE,
|
||||||
SHADER_RUNNER_TAG_MESA,
|
SHADER_RUNNER_TAG_MESA,
|
||||||
|
|||||||
@@ -1086,6 +1086,9 @@ static void d3d12_runner_init_caps(struct d3d12_shader_runner *runner,
|
|||||||
if (is_llvmpipe_device(device))
|
if (is_llvmpipe_device(device))
|
||||||
runner->caps.tags[SHADER_RUNNER_TAG_LLVMPIPE].present = true;
|
runner->caps.tags[SHADER_RUNNER_TAG_LLVMPIPE].present = true;
|
||||||
|
|
||||||
|
if (is_intel_device(device))
|
||||||
|
runner->caps.tags[SHADER_RUNNER_TAG_INTEL].present = true;
|
||||||
|
|
||||||
runner->caps.tags[SHADER_RUNNER_TAG_MESA].present = get_mesa_device_version(device,
|
runner->caps.tags[SHADER_RUNNER_TAG_MESA].present = get_mesa_device_version(device,
|
||||||
&runner->caps.tags[SHADER_RUNNER_TAG_MESA].major, &runner->caps.tags[SHADER_RUNNER_TAG_MESA].minor,
|
&runner->caps.tags[SHADER_RUNNER_TAG_MESA].major, &runner->caps.tags[SHADER_RUNNER_TAG_MESA].minor,
|
||||||
&runner->caps.tags[SHADER_RUNNER_TAG_MESA].patch);
|
&runner->caps.tags[SHADER_RUNNER_TAG_MESA].patch);
|
||||||
|
|||||||
@@ -1837,6 +1837,9 @@ static bool init_vulkan_runner(struct vulkan_shader_runner *runner)
|
|||||||
if (device_info.driver_properties.driverID == VK_DRIVER_ID_MESA_LLVMPIPE)
|
if (device_info.driver_properties.driverID == VK_DRIVER_ID_MESA_LLVMPIPE)
|
||||||
runner->caps.tags[SHADER_RUNNER_TAG_LLVMPIPE].present = true;
|
runner->caps.tags[SHADER_RUNNER_TAG_LLVMPIPE].present = true;
|
||||||
|
|
||||||
|
if (device_info.driver_properties.driverID == VK_DRIVER_ID_INTEL_OPEN_SOURCE_MESA)
|
||||||
|
runner->caps.tags[SHADER_RUNNER_TAG_INTEL].present = true;
|
||||||
|
|
||||||
runner->caps.shader_caps[SHADER_CAP_CLIP_PLANES] = true;
|
runner->caps.shader_caps[SHADER_CAP_CLIP_PLANES] = true;
|
||||||
runner->caps.shader_caps[SHADER_CAP_FOG] = true;
|
runner->caps.shader_caps[SHADER_CAP_FOG] = true;
|
||||||
runner->caps.shader_caps[SHADER_CAP_POINT_SIZE] = true;
|
runner->caps.shader_caps[SHADER_CAP_POINT_SIZE] = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user