From 05ad8d01d3677fd5f9d4417fa3a56ae249f0608b Mon Sep 17 00:00:00 2001 From: Glenn Rice Date: Sun, 19 Dec 2010 14:59:57 +0000 Subject: 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 --- Source/Core/Common/Src/FileUtil.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Source/Core/Common/Src/FileUtil.cpp') 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: -- cgit v1.2.3