Merge remote-tracking branch 'upstream/master'
GSH_Direct3D9: Fixed paletted textures using PSMCT16 CLUTs.
implement toupper and tolower for return to arms
extra logging for semaphore creation
protect against -ve indices ... -1 is passed when a semaphore alloc fails for example
SMODE2 register is written to frame dumps for proper interlaced mode settings when playing back the dump.
Removed useless virtual functions.
Alpha testing cleanup in both OpenGL and Direct3D.
implement toupper and tolower for return to arms
Cleanup.
Fixed VU debugging not working in the frame debugger.
Fixed ESIN.
Display VU pipe time in regview.
Don't reschedule threads on startThread where the started thread does not have a higher priority than the current thread.
Merge remote-tracking branch 'upstream/master'
Revert "protect against -ve indices ... -1 is passed when a semaphore alloc fails for example"

This reverts commit 54f2101b1fb2479a70f0c8d6fa9a8fee7d8198d1.
Merge branch 'master' into timesplitters
cdvd callbacks