Henri Verbeet pushed to branch master at wine / vkd3d
Commits: e4bb77ec by Henri Verbeet at 2025-08-07T20:33:24+02:00 vkd3d-shader: Cleanup the vsir program on vsir_program_transform_early() failure in vsir_parse().
- - - - - 7c37fc6a by Henri Verbeet at 2025-08-07T20:33:24+02:00 vkd3d-shader: Introduce struct vkd3d_shader_source_list.
- - - - - e7be5aa9 by Henri Verbeet at 2025-08-07T20:33:24+02:00 vkd3d-shader/hlsl: Pass a vkd3d_shader_source_list pointer to hlsl_ctx_init().
Instead of storing the list inside struct hlsl_ctx. The source file names in the list are used by the location information that the HLSL frontend produces, and end up being referenced by the vsir program. If we want the vsir program to be able to outlive the hlsl_ctx, its location information can't reference data owned by the hlsl_ctx.
- - - - - 85603dc9 by Henri Verbeet at 2025-08-07T20:37:41+02:00 vkd3d-shader/hlsl: Initialise the vsir program in hlsl_compile_shader().
Mostly in preparation for returning a vsir program from hlsl_compile_shader() in the next commit.
- - - - - f95fc288 by Henri Verbeet at 2025-08-07T20:40:01+02:00 vkd3d-shader/hlsl: Return a vsir program from hlsl_compile_shader().
This largely brings the HLSL frontend in line with the other frontends.
- - - - - f7890fc5 by Henri Verbeet at 2025-08-07T20:40:01+02:00 vkd3d-shader/hlsl: Support HLSL sources in vkd3d_shader_scan().
- - - - -
7 changed files:
- libs/vkd3d-shader/hlsl.c - libs/vkd3d-shader/hlsl.h - libs/vkd3d-shader/hlsl.y - libs/vkd3d-shader/hlsl_codegen.c - libs/vkd3d-shader/ir.c - libs/vkd3d-shader/vkd3d_shader_main.c - libs/vkd3d-shader/vkd3d_shader_private.h
View it on GitLab: https://gitlab.winehq.org/wine/vkd3d/-/compare/f9bb84e5ef13b52c207fe9eaa23f4...