diff --git a/Source/Plugins/Plugin_VideoOGL/Src/VertexLoader.cpp b/Source/Core/VideoCommon/Src/VertexLoader.cpp similarity index 99% rename from Source/Plugins/Plugin_VideoOGL/Src/VertexLoader.cpp rename to Source/Core/VideoCommon/Src/VertexLoader.cpp index 8efe459a6d..220be31816 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/VertexLoader.cpp +++ b/Source/Core/VideoCommon/Src/VertexLoader.cpp @@ -15,12 +15,10 @@ // Official SVN repository and contact information can be found at // http://code.google.com/p/dolphin-emu/ -#include "Globals.h" - #include #include "Common.h" -#include "Config.h" +#include "VideoCommon.h" #include "Profiler.h" #include "MemoryUtil.h" #include "StringUtil.h" diff --git a/Source/Plugins/Plugin_VideoOGL/Src/VertexLoader.h b/Source/Core/VideoCommon/Src/VertexLoader.h similarity index 100% rename from Source/Plugins/Plugin_VideoOGL/Src/VertexLoader.h rename to Source/Core/VideoCommon/Src/VertexLoader.h diff --git a/Source/Plugins/Plugin_VideoOGL/Src/VertexLoader_Color.cpp b/Source/Core/VideoCommon/Src/VertexLoader_Color.cpp similarity index 100% rename from Source/Plugins/Plugin_VideoOGL/Src/VertexLoader_Color.cpp rename to Source/Core/VideoCommon/Src/VertexLoader_Color.cpp diff --git a/Source/Plugins/Plugin_VideoOGL/Src/VertexLoader_Color.h b/Source/Core/VideoCommon/Src/VertexLoader_Color.h similarity index 100% rename from Source/Plugins/Plugin_VideoOGL/Src/VertexLoader_Color.h rename to Source/Core/VideoCommon/Src/VertexLoader_Color.h diff --git a/Source/Plugins/Plugin_VideoOGL/Src/VertexLoader_Normal.cpp b/Source/Core/VideoCommon/Src/VertexLoader_Normal.cpp similarity index 100% rename from Source/Plugins/Plugin_VideoOGL/Src/VertexLoader_Normal.cpp rename to Source/Core/VideoCommon/Src/VertexLoader_Normal.cpp diff --git a/Source/Plugins/Plugin_VideoOGL/Src/VertexLoader_Normal.h b/Source/Core/VideoCommon/Src/VertexLoader_Normal.h similarity index 100% rename from Source/Plugins/Plugin_VideoOGL/Src/VertexLoader_Normal.h rename to Source/Core/VideoCommon/Src/VertexLoader_Normal.h diff --git a/Source/Plugins/Plugin_VideoOGL/Src/VertexLoader_Position.cpp b/Source/Core/VideoCommon/Src/VertexLoader_Position.cpp similarity index 100% rename from Source/Plugins/Plugin_VideoOGL/Src/VertexLoader_Position.cpp rename to Source/Core/VideoCommon/Src/VertexLoader_Position.cpp diff --git a/Source/Plugins/Plugin_VideoOGL/Src/VertexLoader_Position.h b/Source/Core/VideoCommon/Src/VertexLoader_Position.h similarity index 100% rename from Source/Plugins/Plugin_VideoOGL/Src/VertexLoader_Position.h rename to Source/Core/VideoCommon/Src/VertexLoader_Position.h diff --git a/Source/Plugins/Plugin_VideoOGL/Src/VertexLoader_TextCoord.cpp b/Source/Core/VideoCommon/Src/VertexLoader_TextCoord.cpp similarity index 100% rename from Source/Plugins/Plugin_VideoOGL/Src/VertexLoader_TextCoord.cpp rename to Source/Core/VideoCommon/Src/VertexLoader_TextCoord.cpp diff --git a/Source/Plugins/Plugin_VideoOGL/Src/VertexLoader_TextCoord.h b/Source/Core/VideoCommon/Src/VertexLoader_TextCoord.h similarity index 100% rename from Source/Plugins/Plugin_VideoOGL/Src/VertexLoader_TextCoord.h rename to Source/Core/VideoCommon/Src/VertexLoader_TextCoord.h diff --git a/Source/Core/VideoCommon/Src/VideoCommon.h b/Source/Core/VideoCommon/Src/VideoCommon.h index cea4bcaf00..d32d66d51c 100644 --- a/Source/Core/VideoCommon/Src/VideoCommon.h +++ b/Source/Core/VideoCommon/Src/VideoCommon.h @@ -21,6 +21,16 @@ #include "Common.h" #include "pluginspecs_video.h" +#if defined(_MSC_VER) && !defined(__x86_64__) && !defined(_M_X64) +void * memcpy_amd(void *dest, const void *src, size_t n); +unsigned char memcmp_mmx(const void* src1, const void* src2, int cmpsize); +#define memcpy_gc memcpy_amd +#define memcmp_gc memcmp_mmx +#else +#define memcpy_gc memcpy +#define memcmp_gc memcmp +#endif + enum { EFB_WIDTH = 640, EFB_HEIGHT = 528, diff --git a/Source/Plugins/Plugin_VideoOGL/Src/memcpy_amd.cpp b/Source/Core/VideoCommon/Src/memcpy_amd.cpp similarity index 100% rename from Source/Plugins/Plugin_VideoOGL/Src/memcpy_amd.cpp rename to Source/Core/VideoCommon/Src/memcpy_amd.cpp diff --git a/Source/Core/VideoCommon/VideoCommon.vcproj b/Source/Core/VideoCommon/VideoCommon.vcproj index 502d104e48..95dc4965d0 100644 --- a/Source/Core/VideoCommon/VideoCommon.vcproj +++ b/Source/Core/VideoCommon/VideoCommon.vcproj @@ -550,6 +550,46 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/Source/Plugins/Plugin_VideoOGL/Plugin_VideoOGL.vcproj b/Source/Plugins/Plugin_VideoOGL/Plugin_VideoOGL.vcproj index b6ad681dc7..7c635a2580 100644 --- a/Source/Plugins/Plugin_VideoOGL/Plugin_VideoOGL.vcproj +++ b/Source/Plugins/Plugin_VideoOGL/Plugin_VideoOGL.vcproj @@ -732,54 +732,6 @@ RelativePath=".\Src\NativeVertexFormat.cpp" > - - - - - - - - - - - - - - - - - - - - - - - @@ -993,60 +945,6 @@ RelativePath=".\Src\main.h" > - - - - - - - - - - - - - - - - - - - - diff --git a/Source/Plugins/Plugin_VideoOGL/Src/Globals.h b/Source/Plugins/Plugin_VideoOGL/Src/Globals.h index 6a10796bad..e81905c407 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/Globals.h +++ b/Source/Plugins/Plugin_VideoOGL/Src/Globals.h @@ -25,16 +25,6 @@ #include "Common.h" #include "Config.h" -#if defined(_MSC_VER) && !defined(__x86_64__) && !defined(_M_X64) -void * memcpy_amd(void *dest, const void *src, size_t n); -unsigned char memcmp_mmx(const void* src1, const void* src2, int cmpsize); -#define memcpy_gc memcpy_amd -#define memcmp_gc memcmp_mmx -#else -#define memcpy_gc memcpy -#define memcmp_gc memcmp -#endif - #include "VideoCommon.h" #endif