summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/OpenCL/OCLTextureDecoder.cpp
diff options
context:
space:
mode:
authorGlenn Rice <glennricster@gmail.com>2010-12-19 14:59:57 +0000
committerGlenn Rice <glennricster@gmail.com>2010-12-19 14:59:57 +0000
commit05ad8d01d3677fd5f9d4417fa3a56ae249f0608b (patch)
tree67e269baf2f65b54ef256c66eaa30c5bda297d68 /Source/Core/VideoCommon/Src/OpenCL/OCLTextureDecoder.cpp
parentd1631bec3f761f2af1a71702344c1cfed6e6cceb (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/VideoCommon/Src/OpenCL/OCLTextureDecoder.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/OpenCL/OCLTextureDecoder.cpp6
1 files changed, 3 insertions, 3 deletions
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;