Module: vkd3d Branch: master Commit: 5c986b9cde97e0def4756f8c6692f9a7bbe22a91 URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/5c986b9cde97e0def4756f8c6692f9...
Author: Francisco Casas fcasas@codeweavers.com Date: Wed Nov 1 17:07:46 2023 -0300
vkd3d-shader/hlsl: Lower SLT instructions for pixel shaders.
Properly passing the inverse-trig.shader_test tests whose qualifiers have been removed requires making spirv.c capable of handling ABS. The same happens for the ps_3_0 equality test in float-comparison.shader_test.
---
libs/vkd3d-shader/hlsl.c | 10 ++++ libs/vkd3d-shader/hlsl.h | 2 + libs/vkd3d-shader/hlsl_codegen.c | 63 ++++++++++++++++++++++++++ tests/hlsl/any.shader_test | 24 +++++----- tests/hlsl/expr-indexing.shader_test | 14 +++--- tests/hlsl/float-comparison.shader_test | 10 ++-- tests/hlsl/inverse-trig.shader_test | 4 +- tests/hlsl/matrix-indexing.shader_test | 6 +-- tests/hlsl/non-const-indexing.shader_test | 10 ++-- tests/hlsl/step.shader_test | 4 +- tests/hlsl/vector-indexing-uniform.shader_test | 4 +- 11 files changed, 113 insertions(+), 38 deletions(-)