D3D11: Use appropriate shader for PEEK_Z.

Trying to use GetDepthMatrixProgram outside of
TCacheEntry::FromRenderTarget is a bad idea, so don't.  Instead, use a
shader which only copies the input.

Fixes lens flare depth test in Twilight Princess. See
http://code.google.com/p/dolphin-emu/issues/detail?id=5999 .
[ARM] Minor cleanup to lXX and stX. Fixes a bug.
Fixes an issue in lXX where if the instruction was an update instruction and was a register address offset that we would add garbage values to the
writeback register.
Does some minor cleanups as well which save a few instructions here and there.
Add the ability to determine the Mali driver version.
This is the only way we can determine the video driver version with mali.
Really it's a good thing that they only push driver updates once every two years, makes it easy to determine what driver anybody is running.
Support checking for the Mali-T7xx line of GPUs.
They are similar enough that they will share bugs with their drivers, so make them fall under the same Mali-Txxx umbrella of bug issues.
If there is ever a need in the future for having separate bugs depending on family, we can support that then.
BitField: Optimize generated assembly by forcing inlining.
JitIL: fix carry computation for srawi.

The carry computation needs to be based on the input value, not the output
of the shift.
Merge pull request #272 from magumagu/jitil-fix-srawi

JitIL: fix carry computation for srawi.
Merge pull request #257 from Sonicadvance1/LoadStore-Fix

[ARM] Minor cleanup to lXX and stX. Fixes a bug.
[ARM] Implements more fastmem instructions in lXX.
There are a few instructions in lXX that aren't currently fastmem capable due to using a register offset.
This implements fastmem for those few instructions.
Really I'll be changing how ARMv7 fastmem works in the future so this is really temporary code.
Just don't know how long it'll stay.
This relies on PR #257
Merge pull request #258 from Sonicadvance1/More-Fastmem

[ARM] Implements more fastmem instructions in lXX.
Merge pull request #263 from Sonicadvance1/DetermineMaliVersion

Add Mali driver version check and support of checking for Mali-T7xx
PixelShaderGen: delete extra parenthesis.

Without this patch, we can generate a pixel shader which doesn't compile
in some cases.
Merge pull request #261 from magumagu/pixelshadergen-extra-paren

PixelShaderGen: delete extra parenthesis
Fix crash when pressing Tab

When pressing Tab for a long time, Dolphin will sooner or later crash
because the result of FindFocus() has become NULL (toctou).
Truncate the path on logging

Cmake compiles we an absolute path, so the macro __FILE__ also has the absolute file in it.
It seems that gcc doesn't provide macros for the basename, so we have to truncate them in c directly:
https://stackoverflow.com/questions/8487986/file-macro-shows-full-path
Merge pull request #92 from Tilka/tab_crash

Fix crash when pressing Tab
Common: Add a 'Flag' class that is used to encapsulate a boolean flag manipulated from several threads
Common: Move the Event class to a separate file, and add tests for it. Fix includes everywhere to match this.
BitField: Fix alignment issues.

At least one platform (ARM with NEON instructions enabled) generates SIGBUSes if BitField objects aren't aligned properly.
UnitTests: Add a test for BitField behavior on odd structure alignment.