VideoCore: Run include-what-you-use and fix most includes.

This commit is contained in:
Emmanuel Gil Peyrot 2016-04-30 16:34:51 +01:00
parent 387d935a54
commit 691a42fe98
45 changed files with 234 additions and 86 deletions

View file

@ -3,10 +3,13 @@
// Refer to the license.txt file included.
#include <cstring>
#include <iterator>
#include <unordered_map>
#include <utility>
#include "video_core/pica.h"
#include "video_core/pica_state.h"
#include "video_core/primitive_assembly.h"
#include "video_core/shader/shader.h"
namespace Pica {
@ -480,7 +483,7 @@ std::string Regs::GetCommandName(int index) {
static std::unordered_map<u32, const char*> map;
if (map.empty()) {
map.insert(begin(register_names), end(register_names));
map.insert(std::begin(register_names), std::end(register_names));
}
// Return empty string if no match is found