wined3d: Move the D3DSIO_DCL dumping code into its own function.