wined3d: Unroll loops in ARB if needed.