Commit Graph

160 Commits

Author SHA1 Message Date
Henri Verbeet
dc7cdec9a5 tests/hlsl: Add a sampler min/max reduction filtering test.
The Metal runner could in principle support this feature using
MTLSamplerDescriptor.reductionMode, but that requires macOS 26.0/Tahoe,
which is newer than my current setup.
2025-11-26 16:06:24 +01:00
Giovanni Mascellani
f47f712164 tests/hlsl: Test SM6.6 dynamic resources. 2025-11-24 17:38:14 +01:00
Giovanni Mascellani
d380bc196f tests/shader_runner: Use SHADER_MODEL_MAX to represent the maxium supported shader model. 2025-11-24 17:14:24 +01:00
Giovanni Mascellani
e4cbbe3172 tests/shader_runner_d3d12: Lay out the descriptor heap as suggested by descriptor mappings. 2025-11-20 18:29:28 +01:00
Giovanni Mascellani
9b7ff3dcf6 tests/shader_runner_d3d12: Do not keep a free list for pipeline states.
It's not very useful, since we're synchronizing with the GPU
anyway.
2025-11-20 18:27:04 +01:00
Giovanni Mascellani
544a0d1631 tests/shader_runner_d3d12: Do not leave a root signature around between draw calls.
Since it's always recreated anyway.
2025-11-20 18:27:04 +01:00
Giovanni Mascellani
ffbf0320ba tests/hlsl: Mark a denormalization mode test as todo on Intel.
It behaves the same as llvmpipe.
2025-11-17 15:20:47 +01:00
Giovanni Mascellani
653de0c076 tests/shader_runner: Generate a default descriptor mapping when none is provided. 2025-11-12 15:02:18 +01:00
Giovanni Mascellani
a30c07f510 tests/shader_runner_d3d12: Always create a descriptor heap.
So it's also available when resources are not used, which
simplifies later commits.
2025-11-12 14:58:15 +01:00
Giovanni Mascellani
fb985f496d tests/shader_runner_d3d12: Appropriately set the root descriptor table for dispatching. 2025-11-12 14:57:24 +01:00
Giovanni Mascellani
da6ce78c1c tests/shader_runner: Add support for testing explicit descriptor mapping.
When no descriptor mapping is specified, the backend will just
build the usual default mapping. Otherwise the explicit mapping
is used.

Once all backends support the explicit mapping, we'll be able to
handle generating the default mapping in the shader runner core
rather than having each backend implement its own algorithm.

So far only the d3d12 backend supports explicit descriptor
mapping.
2025-10-30 18:42:35 +01:00
Giovanni Mascellani
6b157cc149 tests/shader_runner_d3d12: Move the uniform root parameter to the end of the root signature.
So that it's easy to index SRV and UAV root parameters without an offset.
2025-10-30 18:27:04 +01:00
Francisco Casas
cb7dac4d65 tests/shader_runner: Introduce a "cull-distance" capability. 2025-10-29 12:24:50 +01:00
Giovanni Mascellani
cd64aa69c8 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.
2025-10-06 19:41:09 +02:00
Giovanni Mascellani
3c8b4ce731 ci: Run Linux tests on Debian trixie.
So we have a more recent version of SPIRV-Tools and also don't
have to recompile Mesa to test llvmpipe. This fixes a few failing
tests, but also breaks a couple.
2025-10-03 00:43:10 +02:00
Giovanni Mascellani
463df8e1ea tests/hlsl: Skip a shader model 6 floating-point comparison test on Windows NVIDIA. 2025-09-29 12:44:53 +02:00
Shaun Ren
d037b45718 tests/shader_runner: Allocate the d3d11/d3d12 resource_data arrays dynamically. 2025-09-03 11:58:42 +02:00
Shaun Ren
40789b32e7 tests/shader_runner: Correct the d3d11/d3d12 subresource indexing calculations.
See D3D11CalcSubresource()/D3D12CalcSubresource() for reference.
2025-09-03 11:57:53 +02:00
Henri Verbeet
ce20f9d4b2 tests/shader_runner_d3d12: Check whether the d3d12 device supports geometry shaders. 2025-08-06 12:04:16 +02:00
Conor McCarthy
cd8cea6913 tests: Replace test_ps_viewport_index() with a shader runner test.
Mainly to allow testing the functionality in question with DXIL shaders
as well.
2025-07-31 14:55:33 +02:00
Giovanni Mascellani
3797c922a5 tests/hlsl: Test SV_GSInstanceID. 2025-07-29 12:50:23 +02:00
Elizabeth Figura
e312207124 tests/shader_runner: Add support for cube resources. 2025-06-26 17:38:55 +02:00
Elizabeth Figura
587c2dc76e tests/shader_runner: Add support for 3D resources. 2025-06-26 17:31:34 +02:00
Francisco Casas
cf726cf521 tests/shader_runner_d3d12: Handle the "bug" qualifier on state creation failure. 2025-06-23 17:50:37 +02:00
Giovanni Mascellani
c82d1aac4d tests: Mark some tests in arithmetic-int-uniform.shader_test as buggy on MoltenVK < 1.2.11.
The bug is already solved on recent MoltenVK versions, but the CI
is stuck with 1.2.9, so it's useful to filter these failures out.
2025-06-04 13:04:53 +02:00