mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-01-01 12:46:01 +00:00
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:
parent
0276ed92a6
commit
e4d8857eb5
|
@ -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() {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue