vkd3d-shader/hlsl: Allow non-constant deref propagation on SM1.

Note that we still have to preempt the propagation to SM1 pixel shader
uniforms. Otherwise this will turn the many constant derefs that appear
from the <index-val> copy generated in lower_index_loads() into a single
non-constant deref, causing it to allocate all the registers instead of
up until the last one used.
This commit is contained in:
Francisco Casas
2025-03-17 21:35:00 -03:00
committed by Henri Verbeet
parent f65e6265e0
commit 3ead8d532b
Notes: Henri Verbeet 2025-04-02 19:43:14 +02:00
Approved-by: Elizabeth Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1434
3 changed files with 11 additions and 11 deletions

View File

@@ -471,7 +471,7 @@ uniform 8 float 2
uniform 12 float 3
uniform 16 float 0
draw quad
todo probe (0, 0) rgba(1, 1, 1, 1)
probe (0, 0) rgba(1, 1, 1, 1)
uniform 16 float 1
draw quad
todo probe (0, 0) rgba(2, 2, 2, 2)
probe (0, 0) rgba(2, 2, 2, 2)