diff options
| author | Glenn Rice <glennricster@gmail.com> | 2010-12-19 14:59:57 +0000 |
|---|---|---|
| committer | Glenn Rice <glennricster@gmail.com> | 2010-12-19 14:59:57 +0000 |
| commit | 05ad8d01d3677fd5f9d4417fa3a56ae249f0608b (patch) | |
| tree | 67e269baf2f65b54ef256c66eaa30c5bda297d68 /Source/Core/Common/Src/FileUtil.cpp | |
| parent | d1631bec3f761f2af1a71702344c1cfed6e6cceb (diff) | |
Fix TextureDecoder.cl to work on both NVidia and ATI video cards.
To do so I had to re-add the casting bloat removed in revision 6102. Also, for some odd reason the NVidia OpenCL drivers don't like 8 bit rotations, but are okay with 2, 4 bit rotations. These are apparently bugs in the NVidia drivers that are hopefully fixed in future versions.
Also, on linux make sure the TextureDecoder.cl file is copied from the shared data directory to the users directory.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6611 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common/Src/FileUtil.cpp')
| -rw-r--r-- | Source/Core/Common/Src/FileUtil.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/Common/Src/FileUtil.cpp b/Source/Core/Common/Src/FileUtil.cpp index 0a239b6551..3c820ef135 100644 --- a/Source/Core/Common/Src/FileUtil.cpp +++ b/Source/Core/Common/Src/FileUtil.cpp @@ -647,6 +647,7 @@ const char *GetUserPath(int DirIDX) static char ShadersDir[MAX_PATH] = {0}; static char StateSavesDir[MAX_PATH] = {0}; static char ScreenShotsDir[MAX_PATH] = {0}; + static char OpenCLDir[MAX_PATH] = {0}; static char HiresTexturesDir[MAX_PATH] = {0}; static char DumpDir[MAX_PATH] = {0}; static char DumpFramesDir[MAX_PATH] = {0}; @@ -689,6 +690,7 @@ const char *GetUserPath(int DirIDX) snprintf(ShadersDir, sizeof(ShadersDir), "%s" SHADERS_DIR DIR_SEP, UserDir); snprintf(StateSavesDir, sizeof(StateSavesDir), "%s" STATESAVES_DIR DIR_SEP, UserDir); snprintf(ScreenShotsDir, sizeof(ScreenShotsDir), "%s" SCREENSHOTS_DIR DIR_SEP, UserDir); + snprintf(OpenCLDir, sizeof(OpenCLDir), "%s" OPENCL_DIR DIR_SEP, UserDir); snprintf(HiresTexturesDir, sizeof(HiresTexturesDir), "%s" HIRES_TEXTURES_DIR DIR_SEP, UserDir); snprintf(DumpDir, sizeof(DumpDir), "%s" DUMP_DIR DIR_SEP, UserDir); snprintf(DumpFramesDir, sizeof(DumpFramesDir), "%s" DUMP_FRAMES_DIR DIR_SEP, UserDir); @@ -732,6 +734,8 @@ const char *GetUserPath(int DirIDX) return StateSavesDir; case D_SCREENSHOTS_IDX: return ScreenShotsDir; + case D_OPENCL_IDX: + return OpenCLDir; case D_HIRESTEXTURES_IDX: return HiresTexturesDir; case D_DUMP_IDX: |
