Henri Verbeet pushed to branch master at wine / vkd3d
Commits: bdba25d0 by Francisco Casas at 2025-10-02T23:40:51+02:00 vkd3d-shader: Store a vkd3d_result in struct vkd3d_shader_parser.
- - - - - aa943c51 by Francisco Casas at 2025-10-02T23:40:56+02:00 vkd3d-shader/dxil: Handle sm6_parser_add_instruction() returning NULL.
Only calls to sm6_parser_add_instruction() where we are using the returned vkd3d_shader_instruction are checked for, since these return values might cause NULL dereferences if unchecked.
Other calls to sm6_parser_add_instruction() can be left alone since the error is still recorded via sm6->p.status.
- - - - - 1512c6c8 by Francisco Casas at 2025-10-02T23:47:50+02:00 vkd3d-shader/dxil: Set the parser status to VKD3D_ERROR_NOT_IMPLEMENTED on missing functionality.
- - - - - d774cde9 by Francisco Casas at 2025-10-02T23:49:28+02:00 vkd3d-shader/dxil: Propagate the vkd3d_result of sm6_parser_declare_global().
- - - - - f30141f0 by Francisco Casas at 2025-10-02T23:52:19+02:00 vkd3d-shader/dxil: Propagate parser errors in sm6_parser_init().
- - - - - 626ad24f by Francisco Casas at 2025-10-02T23:53:27+02:00 vkd3d-shader/dxil: Don't preallocate instructions in sm6_parser_globals_init().
- - - - - 03a58d74 by Francisco Casas at 2025-10-02T23:53:32+02:00 vkd3d-shader/dxil: Don't preallocate instructions in sm6_function_emit_blocks().
- - - - - da4d5ef3 by Francisco Casas at 2025-10-03T00:10:06+02:00 vkd3d-shader/dxil: Get rid of sm6_parser_require_space().
It's not obvious what this last remaining use of sm6_parser_require_space() is preallocating space for, and that's as good of a reason as any to get rid of it.
- - - - -
6 changed files:
- libs/vkd3d-shader/d3dbc.c - libs/vkd3d-shader/dxil.c - libs/vkd3d-shader/ir.c - libs/vkd3d-shader/tpf.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/f9c71d5775dd7e3be19911c8bf77f...