vkd3d-shader/hlsl: Extend the liveness of nodes produced outside loops.

Otherwise, it is possible that the register used by the temp is
overridden by a subsequent instruction within the same loop.
This commit is contained in:
Francisco Casas
2023-05-10 12:30:39 -04:00
committed by Alexandre Julliard
parent fbd2df2ad5
commit e060773c19
Notes: Alexandre Julliard 2023-05-24 22:33:32 +02: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/208
3 changed files with 32 additions and 32 deletions

View File

@@ -17,7 +17,7 @@ float4 main() : sv_target
[test]
uniform 0 float 5.0
draw quad
todo probe all rgba (50.0, 50.0, 50.0, 50.0)
probe all rgba (50.0, 50.0, 50.0, 50.0)
[pixel shader]
@@ -40,4 +40,4 @@ float4 main() : sv_target
[test]
uniform 0 float 4.0
draw quad
todo probe all rgba (20.0, 20.0, 20.0, 20.0)
probe all rgba (20.0, 20.0, 20.0, 20.0)

View File

@@ -175,15 +175,15 @@ probe all rgba (0.2, 0.2, 0.2, 0.2) 1
uniform 0 float 0.3
draw quad
todo probe all rgba (0.4, 0.4, 0.4, 0.4) 1
probe all rgba (0.4, 0.4, 0.4, 0.4) 1
uniform 0 float 0.7
draw quad
todo probe all rgba (0.8, 0.8, 0.8, 0.8) 1
probe all rgba (0.8, 0.8, 0.8, 0.8) 1
uniform 0 float 0.9
draw quad
todo probe all rgba (0.9, 0.9, 0.9, 0.9) 1
probe all rgba (0.9, 0.9, 0.9, 0.9) 1
[pixel shader]