Adding missing data format - (1_5_5_5) (#701)

* added data_format=17 and num_format=0

* Set `sceSaveDataDialogIsReadyToDisplay` temporary to 1 until is properly implemented.
This commit is contained in:
Emulator-Team-2 2024-09-01 20:49:01 +02:00 committed by GitHub
parent 0276ed92a6
commit e4d8857eb5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -30,7 +30,7 @@ int PS4_SYSV_ABI sceSaveDataDialogInitialize() {
int PS4_SYSV_ABI sceSaveDataDialogIsReadyToDisplay() {
LOG_ERROR(Lib_SaveDataDialog, "(STUBBED) called");
return ORBIS_OK;
return 1;
}
int PS4_SYSV_ABI sceSaveDataDialogOpen() {

View file

@ -312,6 +312,7 @@ std::span<const vk::Format> GetAllFormats() {
vk::Format::eD32SfloatS8Uint,
vk::Format::eR4G4B4A4UnormPack16,
vk::Format::eR5G6B5UnormPack16,
vk::Format::eR5G5B5A1UnormPack16,
vk::Format::eR8G8B8A8Srgb,
vk::Format::eR8G8B8A8Uint,
vk::Format::eR8G8B8A8Unorm,
@ -386,6 +387,10 @@ vk::Format SurfaceFormat(AmdGpu::DataFormat data_format, AmdGpu::NumberFormat nu
num_format == AmdGpu::NumberFormat::Unorm) {
return vk::Format::eB5G6R5UnormPack16;
}
if (data_format == AmdGpu::DataFormat::Format1_5_5_5 &&
num_format == AmdGpu::NumberFormat::Unorm) {
return vk::Format::eR5G5B5A1UnormPack16;
}
if (data_format == AmdGpu::DataFormat::Format8 && num_format == AmdGpu::NumberFormat::Unorm) {
return vk::Format::eR8Unorm;
}