vkd3d-shader/ir: Split updating DCL_TEMPS instructions to a dedicated pass.

So that it can be used in other contexts as well. And so that
register allocation can be run also when there is no need to update
or create DCL_TEMPS instructions.
This commit is contained in:
Giovanni Mascellani
2025-07-19 22:50:08 +02:00
committed by Henri Verbeet
parent 079e989b8e
commit decc155cca
Notes: Henri Verbeet 2025-07-21 12:36:25 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1630
4 changed files with 35 additions and 23 deletions

View File

@@ -2147,6 +2147,9 @@ int d3dbc_compile(struct vsir_program *program, uint64_t config_flags,
if ((result = vsir_allocate_temp_registers(program, message_context)))
return result;
if ((result = vsir_update_dcl_temps(program, message_context)))
return result;
d3dbc.program = program;
d3dbc.message_context = message_context;
switch (version->type)