Well you have two choices....turn the TV upside down, or reverse the cable (just kidding).
This is most unusual. I would try to reboot the computer, as well as unplug the TV and restart it. Also, make sure you have the latest graphic drivers installed for the GPU. Check the graphics driver software, and see if there is a way to flip it back upright.
Which cable did you use to connect the computer to the TV?