mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
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
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user