Module: vkd3d
Branch: master
Commit: 0ef25ad137d076490b87edabfd573546ae9b8ff4
URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/0ef25ad137d076490b87edabfd573…
Author: Francisco Casas <fcasas(a)codeweavers.com>
Date: Fri Oct 6 13:16:48 2023 -0300
vkd3d-shader/tpf: Support relative addressing for indexable temps in SM4.
For relative addressing, the vkd3d_shader_registers must point to
another vkd3d_shader_src_param. For now, use the sm4_instruction to save
them, since the only purpose of this struct is to be used as paramter
for write_sm4_instruction.
---
libs/vkd3d-shader/tpf.c | 86 +++++++++++++++++++++++--------
tests/hlsl/function-return.shader_test | 22 ++++----
tests/hlsl/matrix-indexing.shader_test | 6 +--
tests/hlsl/non-const-indexing.shader_test | 66 ++++++++++++------------
tests/hlsl/return.shader_test | 22 ++++----
5 files changed, 123 insertions(+), 79 deletions(-)