Henri Verbeet pushed to branch master at wine / vkd3d
Commits: 4b9c2327 by Francisco Casas at 2025-04-02T19:25:12+02:00 vkd3d-shader/ir: Reset instruction pointers after shader_instruction_array_insert_at().
Every call to shader_instruction_array_insert_at() means a possible reallocation of all vsir instructions in the program. This means that all previous pointers are potentially no longer valid.
We are currently using these potentially invalid pointers in some cases, usually in the form of "ins->location". This commit fixes these.
I moved all pointer changes to right after the call to shader_instruction_array_insert_at() to make this more evident.
- - - - -
1 changed file:
- libs/vkd3d-shader/ir.c
View it on GitLab: https://gitlab.winehq.org/wine/vkd3d/-/commit/4b9c23272a89b1f362fd75605fa8dd...