vkd3d-shader/d3d-asm: Add an "internal" mode for the ASM dumper.

The new mode exposes more details about what's going on inside the VSIR
code and it's meant to ease development and debugging.
This commit is contained in:
Giovanni Mascellani
2023-11-30 12:09:04 +01:00
committed by Alexandre Julliard
parent e7fdf2e97f
commit 1015cc952e
Notes: Alexandre Julliard 2023-12-12 23:17:24 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/502
3 changed files with 44 additions and 6 deletions

View File

@@ -1315,9 +1315,15 @@ struct vkd3d_string_buffer_cache
size_t count, max_count, capacity;
};
enum vsir_asm_dialect
{
VSIR_ASM_VSIR,
VSIR_ASM_D3D,
};
enum vkd3d_result vkd3d_dxbc_binary_to_text(const struct vkd3d_shader_instruction_array *instructions,
const struct vkd3d_shader_version *shader_version, const struct vkd3d_shader_compile_info *compile_info,
struct vkd3d_shader_code *out);
struct vkd3d_shader_code *out, enum vsir_asm_dialect dialect);
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);