vkd3d-shader/hlsl: Use unique temps for non-indexable variables.

This commit is contained in:
Elizabeth Figura
2025-06-23 14:12:52 -05:00
committed by Henri Verbeet
parent 933907d3b7
commit 25ae2fcc84
Notes: Henri Verbeet 2025-09-02 11:45:55 +02:00
Approved-by: Francisco Casas (@fcasas)
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1592
2 changed files with 41 additions and 29 deletions

View File

@@ -1184,8 +1184,8 @@ struct hlsl_ctx
} constant_defs;
/* 'c' registers where the constants expected by SM2 sincos are stored. */
struct hlsl_reg d3dsincosconst1, d3dsincosconst2;
/* Number of allocated SSA IDs, used in translation to vsir. */
unsigned int ssa_count;
/* Number of allocated SSA and temp IDs, used in translation to vsir. */
unsigned int ssa_count, temp_count;
/* Number of threads to be executed (on the X, Y, and Z dimensions) in a single thread group in
* compute shader profiles. It is set using the numthreads() attribute in the entry point. */