b2ea899e
by Elizabeth Figura at 2026-07-21T14:56:17+02:00
vkd3d-shader/hlsl: Fix mask handling in sm1_generate_vsir_init_dst_operand_from_deref().
The code was essentially wrong, or at least looked wrong, by virtue of ignoring
the input writemask for registers. This ultimately doesn't really matter,
because output semantics always get a copy, and the copy will write all
components. Still, the code looked wrong, and we might eventually want to avoid
doing such copies if possible, so fix it.
The fact that it calculated the deref offset using hlsl_reg_from_deref(), on a
variable that might have a special sm1 register and therefore would not have an
allocated hlsl_reg, is not great either, even if that register was never used.
Avoid this, now matching sm1_generate_vsir_init_src_operand_from_deref().