mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-07 11:13:15 +00:00
kernel: Check PSF for neo mode support. (#2028)
This commit is contained in:
parent
8e8671323a
commit
7153bc8d8f
7 changed files with 105 additions and 59 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
#include "common/assert.h"
|
||||
#include "common/config.h"
|
||||
#include "core/libraries/kernel/process.h"
|
||||
#include "video_core/renderer_vulkan/liverpool_to_vk.h"
|
||||
#include "video_core/texture_cache/image_info.h"
|
||||
|
||||
|
@ -252,7 +253,7 @@ ImageInfo::ImageInfo(const Libraries::VideoOut::BufferAttributeGroup& group,
|
|||
if (!props.is_tiled) {
|
||||
guest_size = pitch * size.height * 4;
|
||||
} else {
|
||||
if (Config::isNeoMode()) {
|
||||
if (Libraries::Kernel::sceKernelIsNeoMode()) {
|
||||
guest_size = pitch * ((size.height + 127) & (~127)) * 4;
|
||||
} else {
|
||||
guest_size = pitch * ((size.height + 63) & (~63)) * 4;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue