mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
OpenCL: More formats (thanks, orphis) RGBA8, RGB565, RGB5A3. Optimized the buffer creation. There is a visible performance boost.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4422 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
9f8a2986a2
commit
540f59ef07
3 changed files with 137 additions and 21 deletions
|
@ -43,6 +43,9 @@
|
|||
#include "DataReader.h"
|
||||
|
||||
#include "OpenCL.h"
|
||||
#if defined(HAVE_OPENCL) && HAVE_OPENCL
|
||||
#include "OpenCL/OCLTextureDecoder.h"
|
||||
#endif
|
||||
|
||||
u8* g_pVideoData = 0;
|
||||
|
||||
|
@ -383,6 +386,7 @@ void OpcodeDecoder_Init()
|
|||
|
||||
#if defined(HAVE_OPENCL) && HAVE_OPENCL
|
||||
OpenCL::Initialize();
|
||||
TexDecoder_OpenCL_Initialize();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -391,6 +395,7 @@ void OpcodeDecoder_Shutdown()
|
|||
{
|
||||
#if defined(HAVE_OPENCL) && HAVE_OPENCL
|
||||
OpenCL::Destroy();
|
||||
TexDecoder_OpenCL_Shutdown();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue