On Fri May 19 21:57:41 2023 +0000, Zebediah Figura wrote:
This feels fragile. I've probably asked this already, but do we really need to create new hlsl_ir_vars? If this is just specific to RDEF logic, can we just add code to generate multiple RDEF entries from a single var?
Agreed. It feels like you might need to change something in `sm4_register_from_deref()`, but it doesn't look like that complicated in comparison with doing this pass, which is not really intuitive.