On Fri Jan 19 16:43:32 2024 +0000, Francisco Casas wrote:
What about a pass to be called after our passes, that searches for DCL_TEMPS and updates it using `temp_count` if it exists, or creates it if it doesn't (and `temp_count` > 0)?
@giomasce Basically [this commit](https://gitlab.winehq.org/fcasas/vkd3d/-/commit/1ea862ed8f750442c54101fb67e8...) but, of course, introducing it in a patch that should go in before the other passes that require additional temps.
As I mentioned through chat, I think that the 1st idea requires us to care about updating the `dcl_temps` on each pass, and the second requires us to write two passes, one to delete the DCL_TEMPS and other to introduce them, and avoid checking that DCL_TEMPS is present on the validator.