Giovanni Mascellani (@giomasce) commented about libs/vkd3d-shader/dxil.c:
else { src_param_init_from_value(&src_params[0], operands[coord_idx]);
if (!operands[3]->is_undefined || !operands[4]->is_undefined)
if (!operands[3]->is_undefined || (!is_cmp_xchg && !operands[4]->is_undefined))
Maybe the right thing to do here is to check `operands[coord_idx + 1]` and `operands[coord_idx + 2]`?