summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/citra_qt/debugger/graphics_tracing.cpp4
-rw-r--r--src/common/bit_field.h2
-rw-r--r--src/common/bit_set.h3
-rw-r--r--src/common/code_block.h6
-rw-r--r--src/common/common_funcs.h4
-rw-r--r--src/common/file_util.h2
-rw-r--r--src/common/x64/emitter.h2
-rw-r--r--src/core/hle/result.h1
-rw-r--r--src/core/hle/service/gsp_gpu.h1
-rw-r--r--src/core/settings.h3
-rw-r--r--src/core/tracer/recorder.h1
-rw-r--r--src/video_core/clipper.cpp13
-rw-r--r--src/video_core/command_processor.cpp22
-rw-r--r--src/video_core/debug_utils/debug_utils.cpp14
-rw-r--r--src/video_core/debug_utils/debug_utils.h16
-rw-r--r--src/video_core/pica.cpp5
-rw-r--r--src/video_core/pica.h7
-rw-r--r--src/video_core/pica_state.h5
-rw-r--r--src/video_core/pica_types.h1
-rw-r--r--src/video_core/primitive_assembly.cpp3
-rw-r--r--src/video_core/rasterizer.cpp10
-rw-r--r--src/video_core/renderer_base.cpp3
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp13
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.h14
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer_cache.cpp13
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer_cache.h14
-rw-r--r--src/video_core/renderer_opengl/gl_shader_gen.cpp8
-rw-r--r--src/video_core/renderer_opengl/gl_shader_gen.h2
-rw-r--r--src/video_core/renderer_opengl/gl_shader_util.cpp3
-rw-r--r--src/video_core/renderer_opengl/gl_state.cpp7
-rw-r--r--src/video_core/renderer_opengl/gl_state.h1
-rw-r--r--src/video_core/renderer_opengl/pica_to_gl.h7
-rw-r--r--src/video_core/renderer_opengl/renderer_opengl.cpp15
-rw-r--r--src/video_core/renderer_opengl/renderer_opengl.h3
-rw-r--r--src/video_core/shader/shader.cpp18
-rw-r--r--src/video_core/shader/shader.h8
-rw-r--r--src/video_core/shader/shader_interpreter.cpp12
-rw-r--r--src/video_core/shader/shader_interpreter.h4
-rw-r--r--src/video_core/shader/shader_jit_x64.cpp10
-rw-r--r--src/video_core/shader/shader_jit_x64.h5
-rw-r--r--src/video_core/swrasterizer.h6
-rw-r--r--src/video_core/utils.h2
-rw-r--r--src/video_core/vertex_loader.cpp10
-rw-r--r--src/video_core/vertex_loader.h13
-rw-r--r--src/video_core/video_core.cpp4
45 files changed, 234 insertions, 86 deletions
diff --git a/src/citra_qt/debugger/graphics_tracing.cpp b/src/citra_qt/debugger/graphics_tracing.cpp
index e06498744..1402f8e79 100644
--- a/src/citra_qt/debugger/graphics_tracing.cpp
+++ b/src/citra_qt/debugger/graphics_tracing.cpp
@@ -2,6 +2,9 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include <algorithm>
6#include <array>
7#include <iterator>
5#include <memory> 8#include <memory>
6 9
7#include <boost/range/algorithm/copy.hpp> 10#include <boost/range/algorithm/copy.hpp>
@@ -18,6 +21,7 @@
18 21
19#include "core/hw/gpu.h" 22#include "core/hw/gpu.h"
20#include "core/hw/lcd.h" 23#include "core/hw/lcd.h"
24#include "core/tracer/recorder.h"
21 25
22#include "nihstro/float24.h" 26#include "nihstro/float24.h"
23 27
diff --git a/src/common/bit_field.h b/src/common/bit_field.h
index 371eb17a1..4748999ed 100644
--- a/src/common/bit_field.h
+++ b/src/common/bit_field.h
@@ -186,5 +186,5 @@ private:
186#pragma pack() 186#pragma pack()
187 187
188#if (__GNUC__ >= 5) || defined(__clang__) || defined(_MSC_VER) 188#if (__GNUC__ >= 5) || defined(__clang__) || defined(_MSC_VER)
189static_assert(std::is_trivially_copyable<BitField<0, 1, u32>>::value, "BitField must be trivially copyable"); 189static_assert(std::is_trivially_copyable<BitField<0, 1, unsigned>>::value, "BitField must be trivially copyable");
190#endif 190#endif
diff --git a/src/common/bit_set.h b/src/common/bit_set.h
index 85f91e786..7f5de8df2 100644
--- a/src/common/bit_set.h
+++ b/src/common/bit_set.h
@@ -7,6 +7,7 @@
7#include <intrin.h> 7#include <intrin.h>
8#endif 8#endif
9#include <initializer_list> 9#include <initializer_list>
10#include <new>
10#include <type_traits> 11#include <type_traits>
11#include "common/common_types.h" 12#include "common/common_types.h"
12 13
@@ -186,4 +187,4 @@ public:
186typedef Common::BitSet<u8> BitSet8; 187typedef Common::BitSet<u8> BitSet8;
187typedef Common::BitSet<u16> BitSet16; 188typedef Common::BitSet<u16> BitSet16;
188typedef Common::BitSet<u32> BitSet32; 189typedef Common::BitSet<u32> BitSet32;
189typedef Common::BitSet<u64> BitSet64; \ No newline at end of file 190typedef Common::BitSet<u64> BitSet64;
diff --git a/src/common/code_block.h b/src/common/code_block.h
index 9ef7296d3..2fa4a0090 100644
--- a/src/common/code_block.h
+++ b/src/common/code_block.h
@@ -4,8 +4,10 @@
4 4
5#pragma once 5#pragma once
6 6
7#include "common_types.h" 7#include <cstddef>
8#include "memory_util.h" 8
9#include "common/common_types.h"
10#include "common/memory_util.h"
9 11
10// Everything that needs to generate code should inherit from this. 12// Everything that needs to generate code should inherit from this.
11// You get memory management for free, plus, you can use all emitter functions without 13// You get memory management for free, plus, you can use all emitter functions without
diff --git a/src/common/common_funcs.h b/src/common/common_funcs.h
index aa6aff7b9..ab3515683 100644
--- a/src/common/common_funcs.h
+++ b/src/common/common_funcs.h
@@ -4,6 +4,10 @@
4 4
5#pragma once 5#pragma once
6 6
7#if !defined(ARCHITECTURE_x86_64) && !defined(_M_ARM)
8#include <cstdlib> // for exit
9#endif
10
7#include "common_types.h" 11#include "common_types.h"
8 12
9#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0])) 13#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
diff --git a/src/common/file_util.h b/src/common/file_util.h
index 3aac4fa46..c6a8694ce 100644
--- a/src/common/file_util.h
+++ b/src/common/file_util.h
@@ -7,9 +7,9 @@
7#include <array> 7#include <array>
8#include <fstream> 8#include <fstream>
9#include <functional> 9#include <functional>
10#include <cstddef>
11#include <cstdio> 10#include <cstdio>
12#include <string> 11#include <string>
12#include <type_traits>
13#include <vector> 13#include <vector>
14 14
15#include "common/common_types.h" 15#include "common/common_types.h"
diff --git a/src/common/x64/emitter.h b/src/common/x64/emitter.h
index a33724146..60a77dfe1 100644
--- a/src/common/x64/emitter.h
+++ b/src/common/x64/emitter.h
@@ -17,6 +17,8 @@
17 17
18#pragma once 18#pragma once
19 19
20#include <cstddef>
21
20#include "common/assert.h" 22#include "common/assert.h"
21#include "common/bit_set.h" 23#include "common/bit_set.h"
22#include "common/common_types.h" 24#include "common/common_types.h"
diff --git a/src/core/hle/result.h b/src/core/hle/result.h
index 53931a106..3fc1ab4ee 100644
--- a/src/core/hle/result.h
+++ b/src/core/hle/result.h
@@ -5,7 +5,6 @@
5#pragma once 5#pragma once
6 6
7#include <new> 7#include <new>
8#include <type_traits>
9#include <utility> 8#include <utility>
10 9
11#include "common/assert.h" 10#include "common/assert.h"
diff --git a/src/core/hle/service/gsp_gpu.h b/src/core/hle/service/gsp_gpu.h
index 55a993bb8..3b4b678a3 100644
--- a/src/core/hle/service/gsp_gpu.h
+++ b/src/core/hle/service/gsp_gpu.h
@@ -10,6 +10,7 @@
10#include "common/bit_field.h" 10#include "common/bit_field.h"
11#include "common/common_types.h" 11#include "common/common_types.h"
12 12
13#include "core/hle/result.h"
13#include "core/hle/service/service.h" 14#include "core/hle/service/service.h"
14 15
15//////////////////////////////////////////////////////////////////////////////////////////////////// 16////////////////////////////////////////////////////////////////////////////////////////////////////
diff --git a/src/core/settings.h b/src/core/settings.h
index 04c0a47f9..ce2a31164 100644
--- a/src/core/settings.h
+++ b/src/core/settings.h
@@ -6,7 +6,8 @@
6 6
7#include <string> 7#include <string>
8#include <array> 8#include <array>
9#include <common/file_util.h> 9
10#include "common/common_types.h"
10 11
11namespace Settings { 12namespace Settings {
12 13
diff --git a/src/core/tracer/recorder.h b/src/core/tracer/recorder.h
index a42ccc45f..febf883c8 100644
--- a/src/core/tracer/recorder.h
+++ b/src/core/tracer/recorder.h
@@ -4,6 +4,7 @@
4 4
5#pragma once 5#pragma once
6 6
7#include <string>
7#include <unordered_map> 8#include <unordered_map>
8#include <vector> 9#include <vector>
9 10
diff --git a/src/video_core/clipper.cpp b/src/video_core/clipper.cpp
index 3d503486e..2bc747102 100644
--- a/src/video_core/clipper.cpp
+++ b/src/video_core/clipper.cpp
@@ -2,13 +2,24 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include <algorithm>
6#include <array>
7#include <cstddef>
8
5#include <boost/container/static_vector.hpp> 9#include <boost/container/static_vector.hpp>
10#include <boost/container/vector.hpp>
11
12#include "common/bit_field.h"
13#include "common/common_types.h"
14#include "common/logging/log.h"
15#include "common/vector_math.h"
6 16
7#include "video_core/clipper.h" 17#include "video_core/clipper.h"
8#include "video_core/pica.h" 18#include "video_core/pica.h"
9#include "video_core/pica_state.h" 19#include "video_core/pica_state.h"
20#include "video_core/pica_types.h"
10#include "video_core/rasterizer.h" 21#include "video_core/rasterizer.h"
11#include "video_core/shader/shader_interpreter.h" 22#include "video_core/shader/shader.h"
12 23
13namespace Pica { 24namespace Pica {
14 25
diff --git a/src/video_core/command_processor.cpp b/src/video_core/command_processor.cpp
index 58883e374..be1a936b2 100644
--- a/src/video_core/command_processor.cpp
+++ b/src/video_core/command_processor.cpp
@@ -2,26 +2,32 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include <cmath> 5#include <array>
6#include <boost/range/algorithm/fill.hpp> 6#include <cstddef>
7#include <memory>
8#include <utility>
7 9
8#include "common/alignment.h" 10#include "common/assert.h"
11#include "common/logging/log.h"
9#include "common/microprofile.h" 12#include "common/microprofile.h"
13#include "common/vector_math.h"
10 14
11#include "core/settings.h"
12#include "core/hle/service/gsp_gpu.h" 15#include "core/hle/service/gsp_gpu.h"
13#include "core/hw/gpu.h" 16#include "core/hw/gpu.h"
17#include "core/memory.h"
18#include "core/tracer/recorder.h"
14 19
15#include "video_core/clipper.h"
16#include "video_core/command_processor.h" 20#include "video_core/command_processor.h"
21#include "video_core/debug_utils/debug_utils.h"
17#include "video_core/pica.h" 22#include "video_core/pica.h"
18#include "video_core/pica_state.h" 23#include "video_core/pica_state.h"
24#include "video_core/pica_types.h"
19#include "video_core/primitive_assembly.h" 25#include "video_core/primitive_assembly.h"
26#include "video_core/rasterizer_interface.h"
20#include "video_core/renderer_base.h" 27#include "video_core/renderer_base.h"
21#include "video_core/video_core.h" 28#include "video_core/shader/shader.h"
22#include "video_core/debug_utils/debug_utils.h"
23#include "video_core/shader/shader_interpreter.h"
24#include "video_core/vertex_loader.h" 29#include "video_core/vertex_loader.h"
30#include "video_core/video_core.h"
25 31
26namespace Pica { 32namespace Pica {
27 33
diff --git a/src/video_core/debug_utils/debug_utils.cpp b/src/video_core/debug_utils/debug_utils.cpp
index 178a566f7..fb20f81dd 100644
--- a/src/video_core/debug_utils/debug_utils.cpp
+++ b/src/video_core/debug_utils/debug_utils.cpp
@@ -4,35 +4,41 @@
4 4
5#include <algorithm> 5#include <algorithm>
6#include <condition_variable> 6#include <condition_variable>
7#include <cstdint>
7#include <cstring> 8#include <cstring>
8#include <fstream> 9#include <fstream>
9#include <list>
10#include <map> 10#include <map>
11#include <mutex> 11#include <mutex>
12#include <stdexcept>
12#include <string> 13#include <string>
13 14
14#ifdef HAVE_PNG 15#ifdef HAVE_PNG
15#include <png.h> 16#include <png.h>
17#include <setjmp.h>
16#endif 18#endif
17 19
20#include <nihstro/bit_field.h>
18#include <nihstro/float24.h> 21#include <nihstro/float24.h>
19#include <nihstro/shader_binary.h> 22#include <nihstro/shader_binary.h>
20 23
21#include "common/assert.h" 24#include "common/assert.h"
25#include "common/bit_field.h"
22#include "common/color.h" 26#include "common/color.h"
23#include "common/common_types.h" 27#include "common/common_types.h"
24#include "common/file_util.h" 28#include "common/file_util.h"
29#include "common/logging/log.h"
25#include "common/math_util.h" 30#include "common/math_util.h"
26#include "common/vector_math.h" 31#include "common/vector_math.h"
27 32
28#include "core/settings.h" 33#include "video_core/debug_utils/debug_utils.h"
29
30#include "video_core/pica.h" 34#include "video_core/pica.h"
31#include "video_core/pica_state.h" 35#include "video_core/pica_state.h"
36#include "video_core/pica_types.h"
37#include "video_core/rasterizer_interface.h"
32#include "video_core/renderer_base.h" 38#include "video_core/renderer_base.h"
39#include "video_core/shader/shader.h"
33#include "video_core/utils.h" 40#include "video_core/utils.h"
34#include "video_core/video_core.h" 41#include "video_core/video_core.h"
35#include "video_core/debug_utils/debug_utils.h"
36 42
37using nihstro::DVLBHeader; 43using nihstro::DVLBHeader;
38using nihstro::DVLEHeader; 44using nihstro::DVLEHeader;
diff --git a/src/video_core/debug_utils/debug_utils.h b/src/video_core/debug_utils/debug_utils.h
index dd0828cee..be2d0301a 100644
--- a/src/video_core/debug_utils/debug_utils.h
+++ b/src/video_core/debug_utils/debug_utils.h
@@ -4,23 +4,33 @@
4 4
5#pragma once 5#pragma once
6 6
7#include <algorithm>
7#include <array> 8#include <array>
8#include <condition_variable> 9#include <condition_variable>
10#include <iterator>
9#include <list> 11#include <list>
10#include <map> 12#include <map>
11#include <memory> 13#include <memory>
12#include <mutex> 14#include <mutex>
15#include <string>
16#include <utility>
13#include <vector> 17#include <vector>
14 18
19#include "common/common_types.h"
15#include "common/vector_math.h" 20#include "common/vector_math.h"
16 21
17#include "core/tracer/recorder.h"
18
19#include "video_core/pica.h" 22#include "video_core/pica.h"
20#include "video_core/shader/shader.h" 23
24namespace CiTrace {
25class Recorder;
26}
21 27
22namespace Pica { 28namespace Pica {
23 29
30namespace Shader {
31struct ShaderSetup;
32}
33
24class DebugContext { 34class DebugContext {
25public: 35public:
26 enum class Event { 36 enum class Event {
diff --git a/src/video_core/pica.cpp b/src/video_core/pica.cpp
index ccbaf071b..be82cf4b5 100644
--- a/src/video_core/pica.cpp
+++ b/src/video_core/pica.cpp
@@ -3,10 +3,13 @@
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include <cstring> 5#include <cstring>
6#include <iterator>
6#include <unordered_map> 7#include <unordered_map>
8#include <utility>
7 9
8#include "video_core/pica.h" 10#include "video_core/pica.h"
9#include "video_core/pica_state.h" 11#include "video_core/pica_state.h"
12#include "video_core/primitive_assembly.h"
10#include "video_core/shader/shader.h" 13#include "video_core/shader/shader.h"
11 14
12namespace Pica { 15namespace Pica {
@@ -480,7 +483,7 @@ std::string Regs::GetCommandName(int index) {
480 static std::unordered_map<u32, const char*> map; 483 static std::unordered_map<u32, const char*> map;
481 484
482 if (map.empty()) { 485 if (map.empty()) {
483 map.insert(begin(register_names), end(register_names)); 486 map.insert(std::begin(register_names), std::end(register_names));
484 } 487 }
485 488
486 // Return empty string if no match is found 489 // Return empty string if no match is found
diff --git a/src/video_core/pica.h b/src/video_core/pica.h
index cf130d7f8..5891fb72a 100644
--- a/src/video_core/pica.h
+++ b/src/video_core/pica.h
@@ -5,10 +5,13 @@
5#pragma once 5#pragma once
6 6
7#include <array> 7#include <array>
8#include <cmath>
9#include <cstddef> 8#include <cstddef>
10#include <string> 9#include <string>
11 10
11#ifndef _MSC_VER
12#include <type_traits> // for std::enable_if
13#endif
14
12#include "common/assert.h" 15#include "common/assert.h"
13#include "common/bit_field.h" 16#include "common/bit_field.h"
14#include "common/common_funcs.h" 17#include "common/common_funcs.h"
@@ -16,8 +19,6 @@
16#include "common/vector_math.h" 19#include "common/vector_math.h"
17#include "common/logging/log.h" 20#include "common/logging/log.h"
18 21
19#include "pica_types.h"
20
21namespace Pica { 22namespace Pica {
22 23
23// Returns index corresponding to the Regs member labeled by field_name 24// Returns index corresponding to the Regs member labeled by field_name
diff --git a/src/video_core/pica_state.h b/src/video_core/pica_state.h
index 323290054..bbecad850 100644
--- a/src/video_core/pica_state.h
+++ b/src/video_core/pica_state.h
@@ -4,6 +4,11 @@
4 4
5#pragma once 5#pragma once
6 6
7#include <array>
8
9#include "common/bit_field.h"
10#include "common/common_types.h"
11
7#include "video_core/pica.h" 12#include "video_core/pica.h"
8#include "video_core/primitive_assembly.h" 13#include "video_core/primitive_assembly.h"
9#include "video_core/shader/shader.h" 14#include "video_core/shader/shader.h"
diff --git a/src/video_core/pica_types.h b/src/video_core/pica_types.h
index ecf45654b..3b7bfbdca 100644
--- a/src/video_core/pica_types.h
+++ b/src/video_core/pica_types.h
@@ -4,6 +4,7 @@
4 4
5#pragma once 5#pragma once
6 6
7#include <cmath>
7#include <cstring> 8#include <cstring>
8 9
9#include "common/common_types.h" 10#include "common/common_types.h"
diff --git a/src/video_core/primitive_assembly.cpp b/src/video_core/primitive_assembly.cpp
index ff3e2b862..68ea3c08a 100644
--- a/src/video_core/primitive_assembly.cpp
+++ b/src/video_core/primitive_assembly.cpp
@@ -6,8 +6,7 @@
6 6
7#include "video_core/pica.h" 7#include "video_core/pica.h"
8#include "video_core/primitive_assembly.h" 8#include "video_core/primitive_assembly.h"
9#include "video_core/debug_utils/debug_utils.h" 9#include "video_core/shader/shader.h"
10#include "video_core/shader/shader_interpreter.h"
11 10
12namespace Pica { 11namespace Pica {
13 12
diff --git a/src/video_core/rasterizer.cpp b/src/video_core/rasterizer.cpp
index 9cf77b1f2..df67b9081 100644
--- a/src/video_core/rasterizer.cpp
+++ b/src/video_core/rasterizer.cpp
@@ -3,22 +3,28 @@
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include <algorithm> 5#include <algorithm>
6#include <array>
6#include <cmath> 7#include <cmath>
7 8
9#include "common/assert.h"
10#include "common/bit_field.h"
8#include "common/color.h" 11#include "common/color.h"
9#include "common/common_types.h" 12#include "common/common_types.h"
13#include "common/logging/log.h"
10#include "common/math_util.h" 14#include "common/math_util.h"
11#include "common/microprofile.h" 15#include "common/microprofile.h"
16#include "common/vector_math.h"
12 17
13#include "core/memory.h" 18#include "core/memory.h"
14#include "core/hw/gpu.h" 19#include "core/hw/gpu.h"
15 20
21#include "video_core/debug_utils/debug_utils.h"
16#include "video_core/pica.h" 22#include "video_core/pica.h"
17#include "video_core/pica_state.h" 23#include "video_core/pica_state.h"
24#include "video_core/pica_types.h"
18#include "video_core/rasterizer.h" 25#include "video_core/rasterizer.h"
19#include "video_core/utils.h" 26#include "video_core/utils.h"
20#include "video_core/debug_utils/debug_utils.h" 27#include "video_core/shader/shader.h"
21#include "video_core/shader/shader_interpreter.h"
22 28
23namespace Pica { 29namespace Pica {
24 30
diff --git a/src/video_core/renderer_base.cpp b/src/video_core/renderer_base.cpp
index ccd497de0..3f451e062 100644
--- a/src/video_core/renderer_base.cpp
+++ b/src/video_core/renderer_base.cpp
@@ -2,10 +2,9 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include <atomic>
5#include <memory> 6#include <memory>
6 7
7#include "core/settings.h"
8
9#include "video_core/renderer_base.h" 8#include "video_core/renderer_base.h"
10#include "video_core/video_core.h" 9#include "video_core/video_core.h"
11#include "video_core/swrasterizer.h" 10#include "video_core/swrasterizer.h"
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp
index a8c775c80..20460c9b9 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp
@@ -2,27 +2,28 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include <cstring>
6#include <memory> 5#include <memory>
6#include <string>
7#include <tuple>
8#include <utility>
7 9
8#include <glad/glad.h> 10#include <glad/glad.h>
9 11
12#include "common/assert.h"
10#include "common/color.h" 13#include "common/color.h"
11#include "common/file_util.h" 14#include "common/logging/log.h"
12#include "common/math_util.h" 15#include "common/math_util.h"
13#include "common/microprofile.h" 16#include "common/vector_math.h"
14 17
15#include "core/memory.h"
16#include "core/settings.h"
17#include "core/hw/gpu.h" 18#include "core/hw/gpu.h"
18 19
19#include "video_core/pica.h" 20#include "video_core/pica.h"
20#include "video_core/pica_state.h" 21#include "video_core/pica_state.h"
21#include "video_core/utils.h"
22#include "video_core/renderer_opengl/gl_rasterizer.h" 22#include "video_core/renderer_opengl/gl_rasterizer.h"
23#include "video_core/renderer_opengl/gl_shader_gen.h" 23#include "video_core/renderer_opengl/gl_shader_gen.h"
24#include "video_core/renderer_opengl/gl_shader_util.h" 24#include "video_core/renderer_opengl/gl_shader_util.h"
25#include "video_core/renderer_opengl/pica_to_gl.h" 25#include "video_core/renderer_opengl/pica_to_gl.h"
26#include "video_core/renderer_opengl/renderer_opengl.h"
26 27
27static bool IsPassThroughTevStage(const Pica::Regs::TevStageConfig& stage) { 28static bool IsPassThroughTevStage(const Pica::Regs::TevStageConfig& stage) {
28 return (stage.color_op == Pica::Regs::TevStageConfig::Operation::Replace && 29 return (stage.color_op == Pica::Regs::TevStageConfig::Operation::Replace &&
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.h b/src/video_core/renderer_opengl/gl_rasterizer.h
index 8d6177e88..8d44af0b3 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.h
+++ b/src/video_core/renderer_opengl/gl_rasterizer.h
@@ -4,23 +4,33 @@
4 4
5#pragma once 5#pragma once
6 6
7#include <array>
7#include <cstddef> 8#include <cstddef>
8#include <cstring> 9#include <cstring>
9#include <memory> 10#include <memory>
10#include <vector> 11#include <vector>
11#include <unordered_map> 12#include <unordered_map>
12 13
14#include <glad/glad.h>
15
16#include "common/bit_field.h"
13#include "common/common_types.h" 17#include "common/common_types.h"
14#include "common/hash.h" 18#include "common/hash.h"
19#include "common/vector_math.h"
20
21#include "core/hw/gpu.h"
15 22
16#include "video_core/pica.h" 23#include "video_core/pica.h"
17#include "video_core/pica_state.h" 24#include "video_core/pica_state.h"
25#include "video_core/pica_types.h"
18#include "video_core/rasterizer_interface.h" 26#include "video_core/rasterizer_interface.h"
19#include "video_core/renderer_opengl/gl_rasterizer_cache.h" 27#include "video_core/renderer_opengl/gl_rasterizer_cache.h"
28#include "video_core/renderer_opengl/gl_resource_manager.h"
20#include "video_core/renderer_opengl/gl_state.h" 29#include "video_core/renderer_opengl/gl_state.h"
21#include "video_core/renderer_opengl/pica_to_gl.h" 30#include "video_core/renderer_opengl/pica_to_gl.h"
22#include "video_core/renderer_opengl/renderer_opengl.h" 31#include "video_core/shader/shader.h"
23#include "video_core/shader/shader_interpreter.h" 32
33struct ScreenInfo;
24 34
25/** 35/**
26 * This struct contains all state used to generate the GLSL shader program that emulates the current 36 * This struct contains all state used to generate the GLSL shader program that emulates the current
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
index 55c2fb283..7efd0038a 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
@@ -2,10 +2,19 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include <algorithm>
6#include <atomic>
7#include <cstring>
8#include <iterator>
5#include <unordered_set> 9#include <unordered_set>
10#include <utility>
11#include <vector>
6 12
13#include <glad/glad.h>
14
15#include "common/bit_field.h"
7#include "common/emu_window.h" 16#include "common/emu_window.h"
8#include "common/hash.h" 17#include "common/logging/log.h"
9#include "common/math_util.h" 18#include "common/math_util.h"
10#include "common/microprofile.h" 19#include "common/microprofile.h"
11#include "common/vector_math.h" 20#include "common/vector_math.h"
@@ -15,7 +24,7 @@
15#include "video_core/debug_utils/debug_utils.h" 24#include "video_core/debug_utils/debug_utils.h"
16#include "video_core/pica_state.h" 25#include "video_core/pica_state.h"
17#include "video_core/renderer_opengl/gl_rasterizer_cache.h" 26#include "video_core/renderer_opengl/gl_rasterizer_cache.h"
18#include "video_core/renderer_opengl/pica_to_gl.h" 27#include "video_core/renderer_opengl/gl_state.h"
19#include "video_core/utils.h" 28#include "video_core/utils.h"
20#include "video_core/video_core.h" 29#include "video_core/video_core.h"
21 30
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.h b/src/video_core/renderer_opengl/gl_rasterizer_cache.h
index 893d51138..225596415 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h
+++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h
@@ -4,20 +4,26 @@
4 4
5#pragma once 5#pragma once
6 6
7#include <map> 7#include <array>
8#include <memory> 8#include <memory>
9#include <set> 9#include <set>
10#include <tuple>
10 11
11#include <boost/icl/interval_map.hpp> 12#include <boost/icl/interval_map.hpp>
13#include <glad/glad.h>
12 14
13#include "common/math_util.h" 15#include "common/assert.h"
16#include "common/common_funcs.h"
17#include "common/common_types.h"
14 18
15#include "core/hw/gpu.h" 19#include "core/hw/gpu.h"
16 20
17#include "video_core/pica.h" 21#include "video_core/pica.h"
18#include "video_core/debug_utils/debug_utils.h"
19#include "video_core/renderer_opengl/gl_resource_manager.h" 22#include "video_core/renderer_opengl/gl_resource_manager.h"
20#include "video_core/renderer_opengl/gl_state.h" 23
24namespace MathUtil {
25template <class T> struct Rectangle;
26}
21 27
22struct CachedSurface; 28struct CachedSurface;
23 29
diff --git a/src/video_core/renderer_opengl/gl_shader_gen.cpp b/src/video_core/renderer_opengl/gl_shader_gen.cpp
index 646b4eaaf..9011caa39 100644
--- a/src/video_core/renderer_opengl/gl_shader_gen.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_gen.cpp
@@ -2,9 +2,17 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include <array>
6#include <cstddef>
7
8#include "common/assert.h"
9#include "common/bit_field.h"
10#include "common/logging/log.h"
11
5#include "video_core/pica.h" 12#include "video_core/pica.h"
6#include "video_core/renderer_opengl/gl_rasterizer.h" 13#include "video_core/renderer_opengl/gl_rasterizer.h"
7#include "video_core/renderer_opengl/gl_shader_gen.h" 14#include "video_core/renderer_opengl/gl_shader_gen.h"
15#include "video_core/renderer_opengl/gl_shader_util.h"
8 16
9using Pica::Regs; 17using Pica::Regs;
10using TevStageConfig = Regs::TevStageConfig; 18using TevStageConfig = Regs::TevStageConfig;
diff --git a/src/video_core/renderer_opengl/gl_shader_gen.h b/src/video_core/renderer_opengl/gl_shader_gen.h
index 0ca9d2879..3eb07d57a 100644
--- a/src/video_core/renderer_opengl/gl_shader_gen.h
+++ b/src/video_core/renderer_opengl/gl_shader_gen.h
@@ -6,7 +6,7 @@
6 6
7#include <string> 7#include <string>
8 8
9#include "video_core/renderer_opengl/gl_rasterizer.h" 9struct PicaShaderConfig;
10 10
11namespace GLShader { 11namespace GLShader {
12 12
diff --git a/src/video_core/renderer_opengl/gl_shader_util.cpp b/src/video_core/renderer_opengl/gl_shader_util.cpp
index e3f7a5868..dded3db46 100644
--- a/src/video_core/renderer_opengl/gl_shader_util.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_util.cpp
@@ -2,9 +2,10 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include <algorithm>
6#include <vector> 5#include <vector>
7 6
7#include <glad/glad.h>
8
8#include "common/logging/log.h" 9#include "common/logging/log.h"
9#include "video_core/renderer_opengl/gl_shader_util.h" 10#include "video_core/renderer_opengl/gl_shader_util.h"
10 11
diff --git a/src/video_core/renderer_opengl/gl_state.cpp b/src/video_core/renderer_opengl/gl_state.cpp
index f04bdd8c5..02cd9f417 100644
--- a/src/video_core/renderer_opengl/gl_state.cpp
+++ b/src/video_core/renderer_opengl/gl_state.cpp
@@ -2,8 +2,11 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "video_core/pica.h" 5#include <glad/glad.h>
6#include "video_core/renderer_opengl/gl_resource_manager.h" 6
7#include "common/common_funcs.h"
8#include "common/logging/log.h"
9
7#include "video_core/renderer_opengl/gl_state.h" 10#include "video_core/renderer_opengl/gl_state.h"
8 11
9OpenGLState OpenGLState::cur_state; 12OpenGLState OpenGLState::cur_state;
diff --git a/src/video_core/renderer_opengl/gl_state.h b/src/video_core/renderer_opengl/gl_state.h
index 0f72e9004..24f20e47c 100644
--- a/src/video_core/renderer_opengl/gl_state.h
+++ b/src/video_core/renderer_opengl/gl_state.h
@@ -5,7 +5,6 @@
5#pragma once 5#pragma once
6 6
7#include <glad/glad.h> 7#include <glad/glad.h>
8#include <memory>
9 8
10class OpenGLState { 9class OpenGLState {
11public: 10public:
diff --git a/src/video_core/renderer_opengl/pica_to_gl.h b/src/video_core/renderer_opengl/pica_to_gl.h
index fd3617d77..976d1f364 100644
--- a/src/video_core/renderer_opengl/pica_to_gl.h
+++ b/src/video_core/renderer_opengl/pica_to_gl.h
@@ -4,9 +4,16 @@
4 4
5#pragma once 5#pragma once
6 6
7#include <array>
8#include <cstddef>
9
7#include <glad/glad.h> 10#include <glad/glad.h>
8 11
12#include "common/assert.h"
13#include "common/bit_field.h"
14#include "common/common_funcs.h"
9#include "common/common_types.h" 15#include "common/common_types.h"
16#include "common/logging/log.h"
10 17
11#include "video_core/pica.h" 18#include "video_core/pica.h"
12 19
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp
index 8f907593f..0e9a0be8b 100644
--- a/src/video_core/renderer_opengl/renderer_opengl.cpp
+++ b/src/video_core/renderer_opengl/renderer_opengl.cpp
@@ -5,23 +5,28 @@
5#include <algorithm> 5#include <algorithm>
6#include <cstddef> 6#include <cstddef>
7#include <cstdlib> 7#include <cstdlib>
8#include <memory>
9
10#include <glad/glad.h>
8 11
9#include "common/assert.h" 12#include "common/assert.h"
13#include "common/bit_field.h"
10#include "common/emu_window.h" 14#include "common/emu_window.h"
11#include "common/logging/log.h" 15#include "common/logging/log.h"
12#include "common/profiler_reporting.h" 16#include "common/profiler_reporting.h"
17#include "common/synchronized_wrapper.h"
13 18
14#include "core/memory.h"
15#include "core/settings.h"
16#include "core/hw/gpu.h" 19#include "core/hw/gpu.h"
17#include "core/hw/hw.h" 20#include "core/hw/hw.h"
18#include "core/hw/lcd.h" 21#include "core/hw/lcd.h"
22#include "core/memory.h"
23#include "core/settings.h"
24#include "core/tracer/recorder.h"
19 25
20#include "video_core/video_core.h"
21#include "video_core/debug_utils/debug_utils.h" 26#include "video_core/debug_utils/debug_utils.h"
22#include "video_core/renderer_opengl/gl_rasterizer.h" 27#include "video_core/rasterizer_interface.h"
23#include "video_core/renderer_opengl/gl_shader_util.h"
24#include "video_core/renderer_opengl/renderer_opengl.h" 28#include "video_core/renderer_opengl/renderer_opengl.h"
29#include "video_core/video_core.h"
25 30
26static const char vertex_shader[] = R"( 31static const char vertex_shader[] = R"(
27#version 150 core 32#version 150 core
diff --git a/src/video_core/renderer_opengl/renderer_opengl.h b/src/video_core/renderer_opengl/renderer_opengl.h
index 5ca5255ac..00e1044ab 100644
--- a/src/video_core/renderer_opengl/renderer_opengl.h
+++ b/src/video_core/renderer_opengl/renderer_opengl.h
@@ -8,6 +8,9 @@
8 8
9#include <glad/glad.h> 9#include <glad/glad.h>
10 10
11#include "common/common_types.h"
12#include "common/math_util.h"
13
11#include "core/hw/gpu.h" 14#include "core/hw/gpu.h"
12 15
13#include "video_core/renderer_base.h" 16#include "video_core/renderer_base.h"
diff --git a/src/video_core/shader/shader.cpp b/src/video_core/shader/shader.cpp
index 043e99190..356d87f13 100644
--- a/src/video_core/shader/shader.cpp
+++ b/src/video_core/shader/shader.cpp
@@ -2,26 +2,30 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include <memory> 5#include <atomic>
6#include <cmath>
7#include <cstring>
6#include <unordered_map> 8#include <unordered_map>
9#include <utility>
7 10
8#include <boost/range/algorithm/fill.hpp> 11#include <boost/range/algorithm/fill.hpp>
9 12
13#include "common/bit_field.h"
10#include "common/hash.h" 14#include "common/hash.h"
15#include "common/logging/log.h"
11#include "common/microprofile.h" 16#include "common/microprofile.h"
12 17
13#include "video_core/debug_utils/debug_utils.h"
14#include "video_core/pica.h" 18#include "video_core/pica.h"
15#include "video_core/pica_state.h" 19#include "video_core/pica_state.h"
16#include "video_core/video_core.h" 20#include "video_core/shader/shader.h"
17 21#include "video_core/shader/shader_interpreter.h"
18#include "shader.h"
19#include "shader_interpreter.h"
20 22
21#ifdef ARCHITECTURE_x86_64 23#ifdef ARCHITECTURE_x86_64
22#include "shader_jit_x64.h" 24#include "video_core/shader/shader_jit_x64.h"
23#endif // ARCHITECTURE_x86_64 25#endif // ARCHITECTURE_x86_64
24 26
27#include "video_core/video_core.h"
28
25namespace Pica { 29namespace Pica {
26 30
27namespace Shader { 31namespace Shader {
diff --git a/src/video_core/shader/shader.h b/src/video_core/shader/shader.h
index 9ce9344d2..56b83bfeb 100644
--- a/src/video_core/shader/shader.h
+++ b/src/video_core/shader/shader.h
@@ -4,17 +4,23 @@
4 4
5#pragma once 5#pragma once
6 6
7#include <array>
8#include <cstddef>
9#include <memory>
10#include <type_traits>
7#include <vector> 11#include <vector>
8 12
9#include <boost/container/static_vector.hpp> 13#include <boost/container/static_vector.hpp>
10 14
11#include <nihstro/shader_binary.h> 15#include <nihstro/shader_bytecode.h>
12 16
17#include "common/assert.h"
13#include "common/common_funcs.h" 18#include "common/common_funcs.h"
14#include "common/common_types.h" 19#include "common/common_types.h"
15#include "common/vector_math.h" 20#include "common/vector_math.h"
16 21
17#include "video_core/pica.h" 22#include "video_core/pica.h"
23#include "video_core/pica_types.h"
18 24
19using nihstro::RegisterType; 25using nihstro::RegisterType;
20using nihstro::SourceRegister; 26using nihstro::SourceRegister;
diff --git a/src/video_core/shader/shader_interpreter.cpp b/src/video_core/shader/shader_interpreter.cpp
index 9b978583e..7710f7fbc 100644
--- a/src/video_core/shader/shader_interpreter.cpp
+++ b/src/video_core/shader/shader_interpreter.cpp
@@ -2,12 +2,20 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include <algorithm>
6#include <array>
7#include <cmath>
5#include <numeric> 8#include <numeric>
9
6#include <nihstro/shader_bytecode.h> 10#include <nihstro/shader_bytecode.h>
7 11
8#include "common/file_util.h" 12#include "common/assert.h"
9#include "video_core/pica.h" 13#include "common/common_types.h"
14#include "common/logging/log.h"
15#include "common/vector_math.h"
16
10#include "video_core/pica_state.h" 17#include "video_core/pica_state.h"
18#include "video_core/pica_types.h"
11#include "video_core/shader/shader.h" 19#include "video_core/shader/shader.h"
12#include "video_core/shader/shader_interpreter.h" 20#include "video_core/shader/shader_interpreter.h"
13 21
diff --git a/src/video_core/shader/shader_interpreter.h b/src/video_core/shader/shader_interpreter.h
index 294bca50e..6048cdf3a 100644
--- a/src/video_core/shader/shader_interpreter.h
+++ b/src/video_core/shader/shader_interpreter.h
@@ -4,12 +4,12 @@
4 4
5#pragma once 5#pragma once
6 6
7#include "video_core/shader/shader.h"
8
9namespace Pica { 7namespace Pica {
10 8
11namespace Shader { 9namespace Shader {
12 10
11template <bool Debug> struct UnitState;
12
13template<bool Debug> 13template<bool Debug>
14void RunInterpreter(UnitState<Debug>& state); 14void RunInterpreter(UnitState<Debug>& state);
15 15
diff --git a/src/video_core/shader/shader_jit_x64.cpp b/src/video_core/shader/shader_jit_x64.cpp
index b7747fa42..99f6c51eb 100644
--- a/src/video_core/shader/shader_jit_x64.cpp
+++ b/src/video_core/shader/shader_jit_x64.cpp
@@ -3,8 +3,15 @@
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include <algorithm> 5#include <algorithm>
6#include <smmintrin.h> 6#include <cmath>
7#include <cstdint>
8#include <xmmintrin.h>
7 9
10#include <nihstro/shader_bytecode.h>
11
12#include "common/assert.h"
13#include "common/logging/log.h"
14#include "common/vector_math.h"
8#include "common/x64/abi.h" 15#include "common/x64/abi.h"
9#include "common/x64/cpu_detect.h" 16#include "common/x64/cpu_detect.h"
10#include "common/x64/emitter.h" 17#include "common/x64/emitter.h"
@@ -13,6 +20,7 @@
13#include "shader_jit_x64.h" 20#include "shader_jit_x64.h"
14 21
15#include "video_core/pica_state.h" 22#include "video_core/pica_state.h"
23#include "video_core/pica_types.h"
16 24
17namespace Pica { 25namespace Pica {
18 26
diff --git a/src/video_core/shader/shader_jit_x64.h b/src/video_core/shader/shader_jit_x64.h
index cd6280ade..30aa7ff30 100644
--- a/src/video_core/shader/shader_jit_x64.h
+++ b/src/video_core/shader/shader_jit_x64.h
@@ -4,14 +4,17 @@
4 4
5#pragma once 5#pragma once
6 6
7#include <array>
8#include <cstddef>
7#include <utility> 9#include <utility>
8#include <vector> 10#include <vector>
9 11
10#include <nihstro/shader_bytecode.h> 12#include <nihstro/shader_bytecode.h>
11 13
14#include "common/bit_set.h"
15#include "common/common_types.h"
12#include "common/x64/emitter.h" 16#include "common/x64/emitter.h"
13 17
14#include "video_core/pica.h"
15#include "video_core/shader/shader.h" 18#include "video_core/shader/shader.h"
16 19
17using nihstro::Instruction; 20using nihstro::Instruction;
diff --git a/src/video_core/swrasterizer.h b/src/video_core/swrasterizer.h
index 090f899bc..0a028b774 100644
--- a/src/video_core/swrasterizer.h
+++ b/src/video_core/swrasterizer.h
@@ -8,6 +8,12 @@
8 8
9#include "video_core/rasterizer_interface.h" 9#include "video_core/rasterizer_interface.h"
10 10
11namespace Pica {
12namespace Shader {
13struct OutputVertex;
14}
15}
16
11namespace VideoCore { 17namespace VideoCore {
12 18
13class SWRasterizer : public RasterizerInterface { 19class SWRasterizer : public RasterizerInterface {
diff --git a/src/video_core/utils.h b/src/video_core/utils.h
index 8b007520b..7ce83a055 100644
--- a/src/video_core/utils.h
+++ b/src/video_core/utils.h
@@ -4,8 +4,6 @@
4 4
5#pragma once 5#pragma once
6 6
7#include <string>
8
9#include "common/common_types.h" 7#include "common/common_types.h"
10 8
11namespace VideoCore { 9namespace VideoCore {
diff --git a/src/video_core/vertex_loader.cpp b/src/video_core/vertex_loader.cpp
index 8a3d91896..21ae52949 100644
--- a/src/video_core/vertex_loader.cpp
+++ b/src/video_core/vertex_loader.cpp
@@ -1,14 +1,13 @@
1#include <cmath> 1#include <memory>
2#include <string>
3 2
4#include "boost/range/algorithm/fill.hpp" 3#include <boost/range/algorithm/fill.hpp>
5 4
6#include "common/assert.h" 5#include "common/assert.h"
7#include "common/alignment.h" 6#include "common/alignment.h"
8#include "common/bit_field.h" 7#include "common/bit_field.h"
9#include "common/common_funcs.h"
10#include "common/common_types.h" 8#include "common/common_types.h"
11#include "common/logging/log.h" 9#include "common/logging/log.h"
10#include "common/vector_math.h"
12 11
13#include "core/memory.h" 12#include "core/memory.h"
14 13
@@ -16,6 +15,7 @@
16#include "video_core/pica.h" 15#include "video_core/pica.h"
17#include "video_core/pica_state.h" 16#include "video_core/pica_state.h"
18#include "video_core/pica_types.h" 17#include "video_core/pica_types.h"
18#include "video_core/shader/shader.h"
19#include "video_core/vertex_loader.h" 19#include "video_core/vertex_loader.h"
20 20
21namespace Pica { 21namespace Pica {
@@ -137,4 +137,4 @@ void VertexLoader::LoadVertex(u32 base_address, int index, int vertex, Shader::I
137 } 137 }
138} 138}
139 139
140} // namespace Pica \ No newline at end of file 140} // namespace Pica
diff --git a/src/video_core/vertex_loader.h b/src/video_core/vertex_loader.h
index ff42d1596..becf5a403 100644
--- a/src/video_core/vertex_loader.h
+++ b/src/video_core/vertex_loader.h
@@ -1,14 +1,19 @@
1#pragma once 1#pragma once
2 2
3#include <iterator> 3#include "common/common_types.h"
4#include <algorithm>
5 4
6#include "video_core/pica.h" 5#include "video_core/pica.h"
7#include "video_core/shader/shader.h"
8#include "video_core/debug_utils/debug_utils.h"
9 6
10namespace Pica { 7namespace Pica {
11 8
9namespace DebugUtils {
10class MemoryAccessTracker;
11}
12
13namespace Shader {
14class InputVertex;
15}
16
12class VertexLoader { 17class VertexLoader {
13public: 18public:
14 void Setup(const Pica::Regs& regs); 19 void Setup(const Pica::Regs& regs);
diff --git a/src/video_core/video_core.cpp b/src/video_core/video_core.cpp
index 855286173..c9975876d 100644
--- a/src/video_core/video_core.cpp
+++ b/src/video_core/video_core.cpp
@@ -4,12 +4,8 @@
4 4
5#include <memory> 5#include <memory>
6 6
7#include "common/emu_window.h"
8#include "common/logging/log.h" 7#include "common/logging/log.h"
9 8
10#include "core/core.h"
11#include "core/settings.h"
12
13#include "video_core/pica.h" 9#include "video_core/pica.h"
14#include "video_core/renderer_base.h" 10#include "video_core/renderer_base.h"
15#include "video_core/video_core.h" 11#include "video_core/video_core.h"