D3D11: Implement some PE pixel performance metrics.

Super Mario Sunshine is using a cool trick: To determine how much goop has been cleaned in ep. 6 of Sirena Beach, it counts the number of pixels that are input to the blending stage. For that it's using the PE performance registers ;)

Fixes issue 1498.
OGL: Implement pixel metrics (untested)
Video_Software: Implement PE pixel metrics
Windows build fix.
Video_Software: Fix a small issue that prevented perf queries from working at all.
Video_Software: Add some debugging logs for PE perf queries
More debugging logs for RDilux
Video_Software: Fix stuff.
Video_Software: Fix moar stuff
Video_Software: Some more debugging logs.
[optimization] TextureCacheBase: Slightly loosen the requirements for reusing mipmapped textures
[cleanup] [bugfix] TextureCacheBase: Cleanup and simplify mipmapping logic. Possibly fixes a bug or two.
[cleanup] TextureCache: Kill the autogen_mipmap parameter
[cleanup] Vastly clean up backend-specific sampler state logic.
[bugfix] DX9::TextureCache: Use max_lod instead of min_lod where necessary.
[bugfix] Properly decode lod_bias.
[bugfix] Make sure to specify the correct max lod level.
Added preliminary support for ES_LAUNCH (Wii Multi-boot games) by using HLE to hijack the OSBootDol function.

Metroid Prime Trilogy is working.  Wii Sports+Wii Sports Resort is not working.  Any games which can be played using the dol replacement trick should work here.

Suspect that the DOL's are meant to receive an argument list which has not been catered for in this code.  This probably also means that the Metroid Prime Trilogy games are locked in Veteran difficulty for the time-being.
Added argument detection and passing to the loaded dol.  This fixes the Wii Sports+Wii Sports Resort bundle pack.
Added an IOS check as games which use IOS older than IOS30 do not need to be HLE'd.  Added some stubs for Reset to Menu and SSBB's load from disc partition.  Fixed loading Fate of Atlantis from the Indiana Jones and the Staff of Kings game.