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/VideoCommon/Src/OpenCL/OCLTextureDecoder.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/Core/VideoCommon/Src/OpenCL/OCLTextureDecoder.cpp') diff --git a/Source/Core/VideoCommon/Src/OpenCL/OCLTextureDecoder.cpp b/Source/Core/VideoCommon/Src/OpenCL/OCLTextureDecoder.cpp index 13034b2b50..cb0bb04866 100644 --- a/Source/Core/VideoCommon/Src/OpenCL/OCLTextureDecoder.cpp +++ b/Source/Core/VideoCommon/Src/OpenCL/OCLTextureDecoder.cpp @@ -103,7 +103,7 @@ void TexDecoder_OpenCL_Initialize() char **binaries = NULL; char filename[1024]; - sprintf(filename, "%sOpenCL/kernel.bin", File::GetUserPath(D_USER_IDX)); + sprintf(filename, "%skernel.bin", File::GetUserPath(D_OPENCL_IDX)); FILE *input = NULL; @@ -155,7 +155,7 @@ void TexDecoder_OpenCL_Initialize() if (err) { std::string code; - sprintf(filename, "%sOpenCL/TextureDecoder.cl", File::GetUserPath(D_USER_IDX)); + sprintf(filename, "%sTextureDecoder.cl", File::GetUserPath(D_OPENCL_IDX)); if (!File::ReadFileToString(true, filename, code)) { ERROR_LOG(VIDEO, "Failed to load OpenCL code %s - file is missing?", filename); @@ -204,7 +204,7 @@ void TexDecoder_OpenCL_Initialize() if (!err) { - sprintf(filename, "%sOpenCL/kernel.bin", File::GetUserPath(D_USER_IDX)); + sprintf(filename, "%skernel.bin", File::GetUserPath(D_OPENCL_IDX)); const char *current_rev = SVN_REV_STR + '\0'; FILE *output = NULL; -- cgit v1.2.3