kernel: Check PSF for neo mode support. (#2028)

This commit is contained in:
squidbus 2025-01-03 15:29:09 -08:00 committed by GitHub
parent 8e8671323a
commit 7153bc8d8f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 105 additions and 59 deletions

View file

@ -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;