diff options
| author | 2015-05-31 09:55:29 -0700 | |
|---|---|---|
| committer | 2015-05-31 09:55:29 -0700 | |
| commit | 0414ad20cb82ef0565d08c4102b64ccbc89d5012 (patch) | |
| tree | 3ec018dd373582c3f460ae0441f600ba5c445e48 /src | |
| parent | Merge pull request #832 from yuriks/refresh-rate-option (diff) | |
| parent | Move video_core/color.h to common/color.h (diff) | |
| download | yuzu-0414ad20cb82ef0565d08c4102b64ccbc89d5012.tar.gz yuzu-0414ad20cb82ef0565d08c4102b64ccbc89d5012.tar.xz yuzu-0414ad20cb82ef0565d08c4102b64ccbc89d5012.zip | |
Merge pull request #811 from archshift/commonify
Commonify video_core utility headers
Diffstat (limited to '')
| -rw-r--r-- | src/citra_qt/debugger/graphics_cmdlists.cpp | 4 | ||||
| -rw-r--r-- | src/citra_qt/debugger/graphics_framebuffer.cpp | 3 | ||||
| -rw-r--r-- | src/common/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | src/common/color.h (renamed from src/video_core/color.h) | 3 | ||||
| -rw-r--r-- | src/common/vector_math.h (renamed from src/video_core/math.h) | 0 | ||||
| -rw-r--r-- | src/core/hw/gpu.cpp | 2 | ||||
| -rw-r--r-- | src/video_core/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | src/video_core/debug_utils/debug_utils.cpp | 4 | ||||
| -rw-r--r-- | src/video_core/debug_utils/debug_utils.h | 3 | ||||
| -rw-r--r-- | src/video_core/pica.h | 3 | ||||
| -rw-r--r-- | src/video_core/rasterizer.cpp | 2 | ||||
| -rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 3 | ||||
| -rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer_cache.cpp | 2 |
13 files changed, 17 insertions, 16 deletions
diff --git a/src/citra_qt/debugger/graphics_cmdlists.cpp b/src/citra_qt/debugger/graphics_cmdlists.cpp index 804c735a3..cabf5fe07 100644 --- a/src/citra_qt/debugger/graphics_cmdlists.cpp +++ b/src/citra_qt/debugger/graphics_cmdlists.cpp | |||
| @@ -11,10 +11,10 @@ | |||
| 11 | #include <QSpinBox> | 11 | #include <QSpinBox> |
| 12 | #include <QComboBox> | 12 | #include <QComboBox> |
| 13 | 13 | ||
| 14 | #include "video_core/pica.h" | 14 | #include "common/vector_math.h" |
| 15 | #include "video_core/math.h" | ||
| 16 | 15 | ||
| 17 | #include "video_core/debug_utils/debug_utils.h" | 16 | #include "video_core/debug_utils/debug_utils.h" |
| 17 | #include "video_core/pica.h" | ||
| 18 | 18 | ||
| 19 | #include "graphics_cmdlists.h" | 19 | #include "graphics_cmdlists.h" |
| 20 | 20 | ||
diff --git a/src/citra_qt/debugger/graphics_framebuffer.cpp b/src/citra_qt/debugger/graphics_framebuffer.cpp index e07344591..6bbe7572c 100644 --- a/src/citra_qt/debugger/graphics_framebuffer.cpp +++ b/src/citra_qt/debugger/graphics_framebuffer.cpp | |||
| @@ -9,10 +9,11 @@ | |||
| 9 | #include <QPushButton> | 9 | #include <QPushButton> |
| 10 | #include <QSpinBox> | 10 | #include <QSpinBox> |
| 11 | 11 | ||
| 12 | #include "common/color.h" | ||
| 13 | |||
| 12 | #include "core/hw/gpu.h" | 14 | #include "core/hw/gpu.h" |
| 13 | #include "core/memory.h" | 15 | #include "core/memory.h" |
| 14 | 16 | ||
| 15 | #include "video_core/color.h" | ||
| 16 | #include "video_core/pica.h" | 17 | #include "video_core/pica.h" |
| 17 | #include "video_core/utils.h" | 18 | #include "video_core/utils.h" |
| 18 | 19 | ||
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index dbaaac77b..e78f4f144 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt | |||
| @@ -24,6 +24,7 @@ set(HEADERS | |||
| 24 | bit_field.h | 24 | bit_field.h |
| 25 | break_points.h | 25 | break_points.h |
| 26 | chunk_file.h | 26 | chunk_file.h |
| 27 | color.h | ||
| 27 | common_funcs.h | 28 | common_funcs.h |
| 28 | common_paths.h | 29 | common_paths.h |
| 29 | common_types.h | 30 | common_types.h |
| @@ -54,6 +55,7 @@ set(HEADERS | |||
| 54 | thread_queue_list.h | 55 | thread_queue_list.h |
| 55 | thunk.h | 56 | thunk.h |
| 56 | timer.h | 57 | timer.h |
| 58 | vector_math.h | ||
| 57 | ) | 59 | ) |
| 58 | 60 | ||
| 59 | create_directory_groups(${SRCS} ${HEADERS}) | 61 | create_directory_groups(${SRCS} ${HEADERS}) |
diff --git a/src/video_core/color.h b/src/common/color.h index 4d2026eb0..422fdc8af 100644 --- a/src/video_core/color.h +++ b/src/common/color.h | |||
| @@ -6,8 +6,7 @@ | |||
| 6 | 6 | ||
| 7 | #include "common/common_types.h" | 7 | #include "common/common_types.h" |
| 8 | #include "common/swap.h" | 8 | #include "common/swap.h" |
| 9 | 9 | #include "common/vector_math.h" | |
| 10 | #include "video_core/math.h" | ||
| 11 | 10 | ||
| 12 | namespace Color { | 11 | namespace Color { |
| 13 | 12 | ||
diff --git a/src/video_core/math.h b/src/common/vector_math.h index 4928c9bf2..4928c9bf2 100644 --- a/src/video_core/math.h +++ b/src/common/vector_math.h | |||
diff --git a/src/core/hw/gpu.cpp b/src/core/hw/gpu.cpp index 789d3dda4..7471def57 100644 --- a/src/core/hw/gpu.cpp +++ b/src/core/hw/gpu.cpp | |||
| @@ -2,6 +2,7 @@ | |||
| 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 "common/color.h" | ||
| 5 | #include "common/common_types.h" | 6 | #include "common/common_types.h" |
| 6 | 7 | ||
| 7 | #include "core/arm/arm_interface.h" | 8 | #include "core/arm/arm_interface.h" |
| @@ -22,7 +23,6 @@ | |||
| 22 | #include "video_core/command_processor.h" | 23 | #include "video_core/command_processor.h" |
| 23 | #include "video_core/utils.h" | 24 | #include "video_core/utils.h" |
| 24 | #include "video_core/video_core.h" | 25 | #include "video_core/video_core.h" |
| 25 | #include "video_core/color.h" | ||
| 26 | 26 | ||
| 27 | namespace GPU { | 27 | namespace GPU { |
| 28 | 28 | ||
diff --git a/src/video_core/CMakeLists.txt b/src/video_core/CMakeLists.txt index 0258a3255..5c7f4ae18 100644 --- a/src/video_core/CMakeLists.txt +++ b/src/video_core/CMakeLists.txt | |||
| @@ -29,11 +29,9 @@ set(HEADERS | |||
| 29 | renderer_opengl/pica_to_gl.h | 29 | renderer_opengl/pica_to_gl.h |
| 30 | renderer_opengl/renderer_opengl.h | 30 | renderer_opengl/renderer_opengl.h |
| 31 | clipper.h | 31 | clipper.h |
| 32 | color.h | ||
| 33 | command_processor.h | 32 | command_processor.h |
| 34 | gpu_debugger.h | 33 | gpu_debugger.h |
| 35 | hwrasterizer_base.h | 34 | hwrasterizer_base.h |
| 36 | math.h | ||
| 37 | pica.h | 35 | pica.h |
| 38 | primitive_assembly.h | 36 | primitive_assembly.h |
| 39 | rasterizer.h | 37 | rasterizer.h |
diff --git a/src/video_core/debug_utils/debug_utils.cpp b/src/video_core/debug_utils/debug_utils.cpp index b92cd1a7e..7b8ab72b6 100644 --- a/src/video_core/debug_utils/debug_utils.cpp +++ b/src/video_core/debug_utils/debug_utils.cpp | |||
| @@ -17,11 +17,11 @@ | |||
| 17 | #include <nihstro/shader_binary.h> | 17 | #include <nihstro/shader_binary.h> |
| 18 | 18 | ||
| 19 | #include "common/assert.h" | 19 | #include "common/assert.h" |
| 20 | #include "common/color.h" | ||
| 20 | #include "common/file_util.h" | 21 | #include "common/file_util.h" |
| 21 | #include "common/math_util.h" | 22 | #include "common/math_util.h" |
| 23 | #include "common/vector_math.h" | ||
| 22 | 24 | ||
| 23 | #include "video_core/color.h" | ||
| 24 | #include "video_core/math.h" | ||
| 25 | #include "video_core/pica.h" | 25 | #include "video_core/pica.h" |
| 26 | #include "video_core/utils.h" | 26 | #include "video_core/utils.h" |
| 27 | #include "video_core/video_core.h" | 27 | #include "video_core/video_core.h" |
diff --git a/src/video_core/debug_utils/debug_utils.h b/src/video_core/debug_utils/debug_utils.h index f361a5385..7926d64ec 100644 --- a/src/video_core/debug_utils/debug_utils.h +++ b/src/video_core/debug_utils/debug_utils.h | |||
| @@ -12,7 +12,8 @@ | |||
| 12 | #include <mutex> | 12 | #include <mutex> |
| 13 | #include <vector> | 13 | #include <vector> |
| 14 | 14 | ||
| 15 | #include "video_core/math.h" | 15 | #include "common/vector_math.h" |
| 16 | |||
| 16 | #include "video_core/pica.h" | 17 | #include "video_core/pica.h" |
| 17 | 18 | ||
| 18 | namespace Pica { | 19 | namespace Pica { |
diff --git a/src/video_core/pica.h b/src/video_core/pica.h index 8ad47a928..684ec9818 100644 --- a/src/video_core/pica.h +++ b/src/video_core/pica.h | |||
| @@ -15,8 +15,7 @@ | |||
| 15 | #include "common/common_funcs.h" | 15 | #include "common/common_funcs.h" |
| 16 | #include "common/common_types.h" | 16 | #include "common/common_types.h" |
| 17 | #include "common/logging/log.h" | 17 | #include "common/logging/log.h" |
| 18 | 18 | #include "common/vector_math.h" | |
| 19 | #include "math.h" | ||
| 20 | 19 | ||
| 21 | namespace Pica { | 20 | namespace Pica { |
| 22 | 21 | ||
diff --git a/src/video_core/rasterizer.cpp b/src/video_core/rasterizer.cpp index 113b573f8..59d156ee7 100644 --- a/src/video_core/rasterizer.cpp +++ b/src/video_core/rasterizer.cpp | |||
| @@ -4,6 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | #include <algorithm> | 5 | #include <algorithm> |
| 6 | 6 | ||
| 7 | #include "common/color.h" | ||
| 7 | #include "common/common_types.h" | 8 | #include "common/common_types.h" |
| 8 | #include "common/math_util.h" | 9 | #include "common/math_util.h" |
| 9 | #include "common/profiler.h" | 10 | #include "common/profiler.h" |
| @@ -13,7 +14,6 @@ | |||
| 13 | 14 | ||
| 14 | #include "debug_utils/debug_utils.h" | 15 | #include "debug_utils/debug_utils.h" |
| 15 | #include "math.h" | 16 | #include "math.h" |
| 16 | #include "color.h" | ||
| 17 | #include "pica.h" | 17 | #include "pica.h" |
| 18 | #include "rasterizer.h" | 18 | #include "rasterizer.h" |
| 19 | #include "vertex_shader.h" | 19 | #include "vertex_shader.h" |
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index b51f8efdf..d31c46cca 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp | |||
| @@ -2,10 +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 "common/color.h" | ||
| 6 | |||
| 5 | #include "core/settings.h" | 7 | #include "core/settings.h" |
| 6 | #include "core/hw/gpu.h" | 8 | #include "core/hw/gpu.h" |
| 7 | 9 | ||
| 8 | #include "video_core/color.h" | ||
| 9 | #include "video_core/pica.h" | 10 | #include "video_core/pica.h" |
| 10 | #include "video_core/utils.h" | 11 | #include "video_core/utils.h" |
| 11 | #include "video_core/renderer_opengl/gl_rasterizer.h" | 12 | #include "video_core/renderer_opengl/gl_rasterizer.h" |
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp index 6f88a8b21..2e4110a88 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp | |||
| @@ -4,13 +4,13 @@ | |||
| 4 | 4 | ||
| 5 | #include "common/make_unique.h" | 5 | #include "common/make_unique.h" |
| 6 | #include "common/math_util.h" | 6 | #include "common/math_util.h" |
| 7 | #include "common/vector_math.h" | ||
| 7 | 8 | ||
| 8 | #include "core/memory.h" | 9 | #include "core/memory.h" |
| 9 | 10 | ||
| 10 | #include "video_core/renderer_opengl/gl_rasterizer_cache.h" | 11 | #include "video_core/renderer_opengl/gl_rasterizer_cache.h" |
| 11 | #include "video_core/renderer_opengl/pica_to_gl.h" | 12 | #include "video_core/renderer_opengl/pica_to_gl.h" |
| 12 | #include "video_core/debug_utils/debug_utils.h" | 13 | #include "video_core/debug_utils/debug_utils.h" |
| 13 | #include "video_core/math.h" | ||
| 14 | 14 | ||
| 15 | RasterizerCacheOpenGL::~RasterizerCacheOpenGL() { | 15 | RasterizerCacheOpenGL::~RasterizerCacheOpenGL() { |
| 16 | FullFlush(); | 16 | FullFlush(); |