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.
This commit is contained in:
Francisco Casas
2023-10-06 13:16:48 -03:00
committed by Alexandre Julliard
parent 281796c526
commit 0ef25ad137
Notes: Alexandre Julliard 2023-11-07 22:39:54 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Zebediah Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/435
5 changed files with 123 additions and 79 deletions

View File

@@ -258,7 +258,7 @@ uniform 0 float 0.9
todo(sm>=6) draw quad
probe all rgba (0.4, 0.1, 0.7, 0.6) 1
[pixel shader todo]
[pixel shader]
uniform float4 f[3];
@@ -295,21 +295,21 @@ float4 main() : sv_target
uniform 0 float4 0.3 0.0 0.0 0.0
uniform 4 float4 0.0 0.0 0.0 0.0
uniform 8 float4 0.1 0.0 0.0 0.0
todo draw quad
todo probe all rgba (0.3, 0.2, 0.6, 0.6) 1
todo(sm>=6) draw quad
todo(sm>=6) probe all rgba (0.3, 0.2, 0.6, 0.6) 1
uniform 4 float4 0.35 0.0 0.0 0.0
todo draw quad
todo probe all rgba (0.3, 0.3, 0.6, 0.6) 1
todo(sm>=6) draw quad
todo(sm>=6) probe all rgba (0.3, 0.3, 0.6, 0.6) 1
uniform 8 float4 0.5 0.0 0.0 0.0
todo draw quad
todo probe all rgba (0.3, 0.5, 0.6, 0.6) 1
todo(sm>=6) draw quad
todo(sm>=6) probe all rgba (0.3, 0.5, 0.6, 0.6) 1
uniform 0 float4 1.0 0.0 0.0 0.0
todo draw quad
todo probe all rgba (0.3, 0.5, 0.6, 0.6) 1
todo(sm>=6) draw quad
todo(sm>=6) probe all rgba (0.3, 0.5, 0.6, 0.6) 1
uniform 4 float4 2.0 0.0 0.0 0.0
todo draw quad
todo probe all rgba (0.4, 0.1, 0.6, 0.6) 1
todo(sm>=6) draw quad
todo(sm>=6) probe all rgba (0.4, 0.1, 0.6, 0.6) 1