mirror of
https://github.com/libretro/RetroArch
synced 2025-04-11 00:44:20 +00:00
(PS3) Enable image SPU decompression again
This commit is contained in:
parent
10cfe3daa8
commit
4acf66edfd
@ -82,7 +82,7 @@ static bool ps3graphics_load_jpeg(const char * path, struct texture_image *out_i
|
|||||||
|
|
||||||
MallocArg.mallocCallCounts = 0;
|
MallocArg.mallocCallCounts = 0;
|
||||||
FreeArg.freeCallCounts = 0;
|
FreeArg.freeCallCounts = 0;
|
||||||
InParam.spuThreadEnable = CELL_JPGDEC_SPU_THREAD_DISABLE;
|
InParam.spuThreadEnable = CELL_JPGDEC_SPU_THREAD_ENABLE;
|
||||||
InParam.ppuThreadPriority = 1001;
|
InParam.ppuThreadPriority = 1001;
|
||||||
InParam.spuThreadPriority = 250;
|
InParam.spuThreadPriority = 250;
|
||||||
InParam.cbCtrlMallocFunc = img_malloc;
|
InParam.cbCtrlMallocFunc = img_malloc;
|
||||||
@ -104,7 +104,7 @@ static bool ps3graphics_load_jpeg(const char * path, struct texture_image *out_i
|
|||||||
src.streamPtr = NULL;
|
src.streamPtr = NULL;
|
||||||
src.streamSize = 0;
|
src.streamSize = 0;
|
||||||
|
|
||||||
src.spuThreadEnable = CELL_JPGDEC_SPU_THREAD_DISABLE;
|
src.spuThreadEnable = CELL_JPGDEC_SPU_THREAD_ENABLE;
|
||||||
|
|
||||||
ret = cellJpgDecOpen(mHandle, &sHandle, &src, &opnInfo);
|
ret = cellJpgDecOpen(mHandle, &sHandle, &src, &opnInfo);
|
||||||
|
|
||||||
@ -172,7 +172,7 @@ static bool ps3graphics_load_png(const char * path, struct texture_image *out_im
|
|||||||
|
|
||||||
MallocArg.mallocCallCounts = 0;
|
MallocArg.mallocCallCounts = 0;
|
||||||
FreeArg.freeCallCounts = 0;
|
FreeArg.freeCallCounts = 0;
|
||||||
InParam.spuThreadEnable = CELL_PNGDEC_SPU_THREAD_DISABLE;
|
InParam.spuThreadEnable = CELL_PNGDEC_SPU_THREAD_ENABLE;
|
||||||
InParam.ppuThreadPriority = 512;
|
InParam.ppuThreadPriority = 512;
|
||||||
InParam.spuThreadPriority = 200;
|
InParam.spuThreadPriority = 200;
|
||||||
InParam.cbCtrlMallocFunc = img_malloc;
|
InParam.cbCtrlMallocFunc = img_malloc;
|
||||||
@ -194,7 +194,7 @@ static bool ps3graphics_load_png(const char * path, struct texture_image *out_im
|
|||||||
src.streamPtr = 0;
|
src.streamPtr = 0;
|
||||||
src.streamSize = 0;
|
src.streamSize = 0;
|
||||||
|
|
||||||
src.spuThreadEnable = CELL_PNGDEC_SPU_THREAD_DISABLE;
|
src.spuThreadEnable = CELL_PNGDEC_SPU_THREAD_ENABLE;
|
||||||
|
|
||||||
ret = cellPngDecOpen(mHandle, &sHandle, &src, &opnInfo);
|
ret = cellPngDecOpen(mHandle, &sHandle, &src, &opnInfo);
|
||||||
|
|
||||||
|
11
ps3/menu.c
11
ps3/menu.c
@ -988,10 +988,13 @@ static void producesettingentry(menu * menu_obj, uint64_t switchvalue)
|
|||||||
case SETTING_SHADER_PRESETS:
|
case SETTING_SHADER_PRESETS:
|
||||||
if((CTRL_RIGHT(state) || CTRL_LSTICK_RIGHT(state) || CTRL_LEFT(state) || CTRL_LSTICK_LEFT(state) || CTRL_CROSS(state)))
|
if((CTRL_RIGHT(state) || CTRL_LSTICK_RIGHT(state) || CTRL_LEFT(state) || CTRL_LSTICK_LEFT(state) || CTRL_CROSS(state)))
|
||||||
{
|
{
|
||||||
menuStackindex++;
|
if(g_console.emulator_initialized)
|
||||||
menuStack[menuStackindex] = menu_filebrowser;
|
{
|
||||||
menuStack[menuStackindex].enum_id = PRESET_CHOICE;
|
menuStackindex++;
|
||||||
set_initial_dir_tmpbrowser = true;
|
menuStack[menuStackindex] = menu_filebrowser;
|
||||||
|
menuStack[menuStackindex].enum_id = PRESET_CHOICE;
|
||||||
|
set_initial_dir_tmpbrowser = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(CTRL_START(state))
|
if(CTRL_START(state))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user