diff options
Diffstat (limited to 'src/video_core/shader')
| -rw-r--r-- | src/video_core/shader/shader.cpp | 7 | ||||
| -rw-r--r-- | src/video_core/shader/shader.h | 4 | ||||
| -rw-r--r-- | src/video_core/shader/shader_interpreter.cpp | 5 | ||||
| -rw-r--r-- | src/video_core/shader/shader_jit_x64.cpp | 6 | ||||
| -rw-r--r-- | src/video_core/shader/shader_jit_x64.h | 3 |
5 files changed, 3 insertions, 22 deletions
diff --git a/src/video_core/shader/shader.cpp b/src/video_core/shader/shader.cpp index c38bdcc3c..53e91df03 100644 --- a/src/video_core/shader/shader.cpp +++ b/src/video_core/shader/shader.cpp | |||
| @@ -2,28 +2,23 @@ | |||
| 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/shader/shader.h" | ||
| 5 | #include <atomic> | 6 | #include <atomic> |
| 6 | #include <cmath> | 7 | #include <cmath> |
| 7 | #include <cstring> | 8 | #include <cstring> |
| 8 | #include <unordered_map> | 9 | #include <unordered_map> |
| 9 | #include <utility> | 10 | #include <utility> |
| 10 | |||
| 11 | #include <boost/range/algorithm/fill.hpp> | 11 | #include <boost/range/algorithm/fill.hpp> |
| 12 | |||
| 13 | #include "common/bit_field.h" | 12 | #include "common/bit_field.h" |
| 14 | #include "common/hash.h" | 13 | #include "common/hash.h" |
| 15 | #include "common/logging/log.h" | 14 | #include "common/logging/log.h" |
| 16 | #include "common/microprofile.h" | 15 | #include "common/microprofile.h" |
| 17 | |||
| 18 | #include "video_core/pica.h" | 16 | #include "video_core/pica.h" |
| 19 | #include "video_core/pica_state.h" | 17 | #include "video_core/pica_state.h" |
| 20 | #include "video_core/shader/shader.h" | ||
| 21 | #include "video_core/shader/shader_interpreter.h" | 18 | #include "video_core/shader/shader_interpreter.h" |
| 22 | |||
| 23 | #ifdef ARCHITECTURE_x86_64 | 19 | #ifdef ARCHITECTURE_x86_64 |
| 24 | #include "video_core/shader/shader_jit_x64.h" | 20 | #include "video_core/shader/shader_jit_x64.h" |
| 25 | #endif // ARCHITECTURE_x86_64 | 21 | #endif // ARCHITECTURE_x86_64 |
| 26 | |||
| 27 | #include "video_core/video_core.h" | 22 | #include "video_core/video_core.h" |
| 28 | 23 | ||
| 29 | namespace Pica { | 24 | namespace Pica { |
diff --git a/src/video_core/shader/shader.h b/src/video_core/shader/shader.h index 79c716b6e..8858d67f8 100644 --- a/src/video_core/shader/shader.h +++ b/src/video_core/shader/shader.h | |||
| @@ -9,16 +9,12 @@ | |||
| 9 | #include <memory> | 9 | #include <memory> |
| 10 | #include <type_traits> | 10 | #include <type_traits> |
| 11 | #include <vector> | 11 | #include <vector> |
| 12 | |||
| 13 | #include <boost/container/static_vector.hpp> | 12 | #include <boost/container/static_vector.hpp> |
| 14 | |||
| 15 | #include <nihstro/shader_bytecode.h> | 13 | #include <nihstro/shader_bytecode.h> |
| 16 | |||
| 17 | #include "common/assert.h" | 14 | #include "common/assert.h" |
| 18 | #include "common/common_funcs.h" | 15 | #include "common/common_funcs.h" |
| 19 | #include "common/common_types.h" | 16 | #include "common/common_types.h" |
| 20 | #include "common/vector_math.h" | 17 | #include "common/vector_math.h" |
| 21 | |||
| 22 | #include "video_core/pica.h" | 18 | #include "video_core/pica.h" |
| 23 | #include "video_core/pica_types.h" | 19 | #include "video_core/pica_types.h" |
| 24 | 20 | ||
diff --git a/src/video_core/shader/shader_interpreter.cpp b/src/video_core/shader/shader_interpreter.cpp index 41df8a2fd..5df3c4e86 100644 --- a/src/video_core/shader/shader_interpreter.cpp +++ b/src/video_core/shader/shader_interpreter.cpp | |||
| @@ -2,21 +2,18 @@ | |||
| 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/shader/shader.h" | ||
| 5 | #include <algorithm> | 6 | #include <algorithm> |
| 6 | #include <array> | 7 | #include <array> |
| 7 | #include <cmath> | 8 | #include <cmath> |
| 8 | #include <numeric> | 9 | #include <numeric> |
| 9 | |||
| 10 | #include <nihstro/shader_bytecode.h> | 10 | #include <nihstro/shader_bytecode.h> |
| 11 | |||
| 12 | #include "common/assert.h" | 11 | #include "common/assert.h" |
| 13 | #include "common/common_types.h" | 12 | #include "common/common_types.h" |
| 14 | #include "common/logging/log.h" | 13 | #include "common/logging/log.h" |
| 15 | #include "common/vector_math.h" | 14 | #include "common/vector_math.h" |
| 16 | |||
| 17 | #include "video_core/pica_state.h" | 15 | #include "video_core/pica_state.h" |
| 18 | #include "video_core/pica_types.h" | 16 | #include "video_core/pica_types.h" |
| 19 | #include "video_core/shader/shader.h" | ||
| 20 | #include "video_core/shader/shader_interpreter.h" | 17 | #include "video_core/shader/shader_interpreter.h" |
| 21 | 18 | ||
| 22 | using nihstro::OpCode; | 19 | using nihstro::OpCode; |
diff --git a/src/video_core/shader/shader_jit_x64.cpp b/src/video_core/shader/shader_jit_x64.cpp index d1b2ce8d5..5f1323799 100644 --- a/src/video_core/shader/shader_jit_x64.cpp +++ b/src/video_core/shader/shader_jit_x64.cpp | |||
| @@ -2,23 +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 "shader.h" | ||
| 5 | #include <algorithm> | 6 | #include <algorithm> |
| 6 | #include <cmath> | 7 | #include <cmath> |
| 7 | #include <cstdint> | 8 | #include <cstdint> |
| 8 | #include <xmmintrin.h> | 9 | #include <xmmintrin.h> |
| 9 | |||
| 10 | #include <nihstro/shader_bytecode.h> | 10 | #include <nihstro/shader_bytecode.h> |
| 11 | |||
| 12 | #include "common/assert.h" | 11 | #include "common/assert.h" |
| 13 | #include "common/logging/log.h" | 12 | #include "common/logging/log.h" |
| 14 | #include "common/vector_math.h" | 13 | #include "common/vector_math.h" |
| 15 | #include "common/x64/abi.h" | 14 | #include "common/x64/abi.h" |
| 16 | #include "common/x64/cpu_detect.h" | 15 | #include "common/x64/cpu_detect.h" |
| 17 | #include "common/x64/emitter.h" | 16 | #include "common/x64/emitter.h" |
| 18 | |||
| 19 | #include "shader.h" | ||
| 20 | #include "shader_jit_x64.h" | 17 | #include "shader_jit_x64.h" |
| 21 | |||
| 22 | #include "video_core/pica_state.h" | 18 | #include "video_core/pica_state.h" |
| 23 | #include "video_core/pica_types.h" | 19 | #include "video_core/pica_types.h" |
| 24 | 20 | ||
diff --git a/src/video_core/shader/shader_jit_x64.h b/src/video_core/shader/shader_jit_x64.h index 2f37ef8bf..98de5ecef 100644 --- a/src/video_core/shader/shader_jit_x64.h +++ b/src/video_core/shader/shader_jit_x64.h | |||
| @@ -8,13 +8,10 @@ | |||
| 8 | #include <cstddef> | 8 | #include <cstddef> |
| 9 | #include <utility> | 9 | #include <utility> |
| 10 | #include <vector> | 10 | #include <vector> |
| 11 | |||
| 12 | #include <nihstro/shader_bytecode.h> | 11 | #include <nihstro/shader_bytecode.h> |
| 13 | |||
| 14 | #include "common/bit_set.h" | 12 | #include "common/bit_set.h" |
| 15 | #include "common/common_types.h" | 13 | #include "common/common_types.h" |
| 16 | #include "common/x64/emitter.h" | 14 | #include "common/x64/emitter.h" |
| 17 | |||
| 18 | #include "video_core/shader/shader.h" | 15 | #include "video_core/shader/shader.h" |
| 19 | 16 | ||
| 20 | using nihstro::Instruction; | 17 | using nihstro::Instruction; |