vkd3d-shader/d3d-asm: Resolve SSA values when outputting SM<6 assembly.

In particular, since commit eaebef4265 we
may receive vsir generated from HLSL sources, which typically contains
SSA values.
This commit is contained in:
Henri Verbeet
2025-08-12 15:49:05 +02:00
parent 8334386d99
commit 9336b4647c
Notes: Henri Verbeet 2025-08-13 16:27:46 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1678
3 changed files with 24 additions and 5 deletions

View File

@@ -1685,11 +1685,12 @@ enum vsir_asm_flags
VSIR_ASM_FLAG_DUMP_ALL_INDICES = 0x2,
VSIR_ASM_FLAG_DUMP_SIGNATURES = 0x4,
VSIR_ASM_FLAG_DUMP_DESCRIPTORS = 0x8,
VSIR_ASM_FLAG_ALLOCATE_TEMPS = 0x10,
};
enum vkd3d_result d3d_asm_compile(struct vsir_program *program,
const struct vkd3d_shader_compile_info *compile_info,
struct vkd3d_shader_code *out, enum vsir_asm_flags flags);
const struct vkd3d_shader_compile_info *compile_info, struct vkd3d_shader_code *out,
enum vsir_asm_flags flags, struct vkd3d_shader_message_context *message_context);
void vkd3d_string_buffer_cleanup(struct vkd3d_string_buffer *buffer);
struct vkd3d_string_buffer *vkd3d_string_buffer_get(struct vkd3d_string_buffer_cache *list);
void vkd3d_string_buffer_init(struct vkd3d_string_buffer *buffer);