wined3d: Optimize sampler states in stateblocks.