wined3d: Create a separate function for setting format fixups.