Module: vkd3d Branch: master Commit: 1c7351342523e6b2d805a97542641da5e272adc2 URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/1c7351342523e6b2d805a97542641d...
Author: Francisco Casas fcasas@codeweavers.com Date: Wed Nov 15 17:41:33 2023 -0300
tests: Use the vulkan runner to run SM1 compilation tests.
At the current moment this is a little odd because for SM1 [test] directives are skipped, and the [shader] directives are not executed by the shader_runner_vulkan.c:compile_shader() but by the general shader_runner.c:compile_shader(). So in principle it is a little weird that we go through the vulkan runner.
But fret not, because in the future we plan to make the parser agnostic to the language of the tests, so we will get rid of the general shader_runner.c:compile_shader() function and instead call a runner->compile_shader() function, defined for each runner. Granted, most of these may call a generic implementation that uses native compiler in Windows, and vkd3d-shader on Linux, but it would be more conceptually correct.
---
tests/hlsl/abs.shader_test | 4 +- tests/hlsl/any.shader_test | 24 +++---- tests/hlsl/arithmetic-float-uniform.shader_test | 16 ++--- tests/hlsl/arithmetic-int-uniform.shader_test | 32 ++++----- tests/hlsl/arithmetic-int.shader_test | 2 + tests/hlsl/ceil.shader_test | 4 +- tests/hlsl/cf-cond-types.shader_test | 6 +- tests/hlsl/combined-samplers.shader_test | 4 +- tests/hlsl/conditional.shader_test | 16 ++--- tests/hlsl/ddxddy.shader_test | 16 ++--- tests/hlsl/discard.shader_test | 6 +- tests/hlsl/distance.shader_test | 2 +- tests/hlsl/dot.shader_test | 4 +- tests/hlsl/entry-point-semantics.shader_test | 6 +- tests/hlsl/expr-indexing.shader_test | 14 ++-- tests/hlsl/float-comparison.shader_test | 4 +- tests/hlsl/floor.shader_test | 4 +- tests/hlsl/fmod.shader_test | 12 ++-- tests/hlsl/for.shader_test | 9 +-- tests/hlsl/function-return.shader_test | 50 +++++++------- tests/hlsl/fwidth.shader_test | 2 +- tests/hlsl/half.shader_test | 4 +- tests/hlsl/hard-copy-prop.shader_test | 19 +++--- tests/hlsl/initializer-implicit-array.shader_test | 2 +- tests/hlsl/length.shader_test | 2 +- tests/hlsl/lit.shader_test | 12 ++-- tests/hlsl/loop.shader_test | 28 ++++---- tests/hlsl/matrix-indexing.shader_test | 8 +-- tests/hlsl/non-const-indexing.shader_test | 52 +++++++-------- tests/hlsl/normalize.shader_test | 2 +- tests/hlsl/reflect.shader_test | 4 +- tests/hlsl/return.shader_test | 79 +++++++++++------------ tests/hlsl/round.shader_test | 8 +-- tests/hlsl/sample-bias.shader_test | 8 +-- tests/hlsl/sample-level.shader_test | 16 ++--- tests/hlsl/sampler.shader_test | 8 +-- tests/hlsl/saturate.shader_test | 4 +- tests/hlsl/sign.shader_test | 22 +++---- tests/hlsl/smoothstep.shader_test | 4 +- tests/hlsl/static-initializer.shader_test | 9 +-- tests/hlsl/step.shader_test | 4 +- tests/hlsl/ternary.shader_test | 23 ++++--- tests/hlsl/trigonometry.shader_test | 16 ++--- tests/hlsl/trunc.shader_test | 10 +-- tests/hlsl/vector-indexing-uniform.shader_test | 4 +- tests/shader_runner.c | 13 ++-- tests/shader_runner_vulkan.c | 22 +++++-- 47 files changed, 313 insertions(+), 307 deletions(-)