Compare commits
11 Commits
android-84
...
android-85
Author | SHA1 | Date | |
---|---|---|---|
84b0b24978 | |||
257a6aa2ba | |||
7bae22a3ca | |||
f24d956ae2 | |||
4487c165c8 | |||
e3f7e02555 | |||
feebdc9779 | |||
a29e26200f | |||
00a612eaea | |||
b99f94a7ff | |||
6a1ecab2dd |
@ -1,3 +1,11 @@
|
|||||||
|
| Pull Request | Commit | Title | Author | Merged? |
|
||||||
|
|----|----|----|----|----|
|
||||||
|
|
||||||
|
|
||||||
|
End of merge log. You can find the original README.md below the break.
|
||||||
|
|
||||||
|
-----
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
SPDX-FileCopyrightText: 2018 yuzu Emulator Project
|
SPDX-FileCopyrightText: 2018 yuzu Emulator Project
|
||||||
SPDX-License-Identifier: GPL-2.0-or-later
|
SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
@ -141,10 +141,6 @@ public:
|
|||||||
if (nsp->IsExtractedType()) {
|
if (nsp->IsExtractedType()) {
|
||||||
return InstallError;
|
return InstallError;
|
||||||
}
|
}
|
||||||
} else if (file_extension == "xci") {
|
|
||||||
jconst xci =
|
|
||||||
std::make_shared<FileSys::XCI>(m_vfs->OpenFile(filename, FileSys::Mode::Read));
|
|
||||||
nsp = xci->GetSecurePartitionNSP();
|
|
||||||
} else {
|
} else {
|
||||||
return ErrorFilenameExtension;
|
return ErrorFilenameExtension;
|
||||||
}
|
}
|
||||||
|
@ -351,6 +351,8 @@ struct Values {
|
|||||||
linkage, false, "disable_shader_loop_safety_checks", Category::RendererDebug};
|
linkage, false, "disable_shader_loop_safety_checks", Category::RendererDebug};
|
||||||
Setting<bool> enable_renderdoc_hotkey{linkage, false, "renderdoc_hotkey",
|
Setting<bool> enable_renderdoc_hotkey{linkage, false, "renderdoc_hotkey",
|
||||||
Category::RendererDebug};
|
Category::RendererDebug};
|
||||||
|
// TODO: remove this once AMDVLK supports VK_EXT_depth_bias_control
|
||||||
|
bool renderer_amdvlk_depth_bias_workaround{};
|
||||||
|
|
||||||
// System
|
// System
|
||||||
SwitchableSetting<Language, true> language_index{linkage,
|
SwitchableSetting<Language, true> language_index{linkage,
|
||||||
|
@ -381,6 +381,10 @@ struct System::Impl {
|
|||||||
room_member->SendGameInfo(game_info);
|
room_member->SendGameInfo(game_info);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Workarounds:
|
||||||
|
// Activate this in Super Smash Brothers Ultimate, it only affects AMD cards using AMDVLK
|
||||||
|
Settings::values.renderer_amdvlk_depth_bias_workaround = program_id == 0x1006A800016E000ULL;
|
||||||
|
|
||||||
status = SystemResultStatus::Success;
|
status = SystemResultStatus::Success;
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
@ -440,6 +444,9 @@ struct System::Impl {
|
|||||||
room_member->SendGameInfo(game_info);
|
room_member->SendGameInfo(game_info);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Workarounds
|
||||||
|
Settings::values.renderer_amdvlk_depth_bias_workaround = false;
|
||||||
|
|
||||||
LOG_DEBUG(Core, "Shutdown OK");
|
LOG_DEBUG(Core, "Shutdown OK");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -145,6 +145,8 @@ void MiiEdit::MiiEditOutput(MiiEditResult result, s32 index) {
|
|||||||
.index{index},
|
.index{index},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
LOG_INFO(Input, "called, result={}, index={}", result, index);
|
||||||
|
|
||||||
std::vector<u8> out_data(sizeof(MiiEditAppletOutput));
|
std::vector<u8> out_data(sizeof(MiiEditAppletOutput));
|
||||||
std::memcpy(out_data.data(), &applet_output, sizeof(MiiEditAppletOutput));
|
std::memcpy(out_data.data(), &applet_output, sizeof(MiiEditAppletOutput));
|
||||||
|
|
||||||
|
@ -329,6 +329,7 @@ public:
|
|||||||
{13, &IFileSystem::CleanDirectoryRecursively, "CleanDirectoryRecursively"},
|
{13, &IFileSystem::CleanDirectoryRecursively, "CleanDirectoryRecursively"},
|
||||||
{14, &IFileSystem::GetFileTimeStampRaw, "GetFileTimeStampRaw"},
|
{14, &IFileSystem::GetFileTimeStampRaw, "GetFileTimeStampRaw"},
|
||||||
{15, nullptr, "QueryEntry"},
|
{15, nullptr, "QueryEntry"},
|
||||||
|
{16, &IFileSystem::GetFileSystemAttribute, "GetFileSystemAttribute"},
|
||||||
};
|
};
|
||||||
RegisterHandlers(functions);
|
RegisterHandlers(functions);
|
||||||
}
|
}
|
||||||
@ -521,6 +522,46 @@ public:
|
|||||||
rb.PushRaw(vfs_timestamp);
|
rb.PushRaw(vfs_timestamp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void GetFileSystemAttribute(HLERequestContext& ctx) {
|
||||||
|
LOG_WARNING(Service_FS, "(STUBBED) called");
|
||||||
|
|
||||||
|
struct FileSystemAttribute {
|
||||||
|
u8 dir_entry_name_length_max_defined;
|
||||||
|
u8 file_entry_name_length_max_defined;
|
||||||
|
u8 dir_path_name_length_max_defined;
|
||||||
|
u8 file_path_name_length_max_defined;
|
||||||
|
INSERT_PADDING_BYTES_NOINIT(0x5);
|
||||||
|
u8 utf16_dir_entry_name_length_max_defined;
|
||||||
|
u8 utf16_file_entry_name_length_max_defined;
|
||||||
|
u8 utf16_dir_path_name_length_max_defined;
|
||||||
|
u8 utf16_file_path_name_length_max_defined;
|
||||||
|
INSERT_PADDING_BYTES_NOINIT(0x18);
|
||||||
|
s32 dir_entry_name_length_max;
|
||||||
|
s32 file_entry_name_length_max;
|
||||||
|
s32 dir_path_name_length_max;
|
||||||
|
s32 file_path_name_length_max;
|
||||||
|
INSERT_PADDING_WORDS_NOINIT(0x5);
|
||||||
|
s32 utf16_dir_entry_name_length_max;
|
||||||
|
s32 utf16_file_entry_name_length_max;
|
||||||
|
s32 utf16_dir_path_name_length_max;
|
||||||
|
s32 utf16_file_path_name_length_max;
|
||||||
|
INSERT_PADDING_WORDS_NOINIT(0x18);
|
||||||
|
INSERT_PADDING_WORDS_NOINIT(0x1);
|
||||||
|
};
|
||||||
|
static_assert(sizeof(FileSystemAttribute) == 0xc0,
|
||||||
|
"FileSystemAttribute has incorrect size");
|
||||||
|
|
||||||
|
FileSystemAttribute savedata_attribute{};
|
||||||
|
savedata_attribute.dir_entry_name_length_max_defined = true;
|
||||||
|
savedata_attribute.file_entry_name_length_max_defined = true;
|
||||||
|
savedata_attribute.dir_entry_name_length_max = 0x40;
|
||||||
|
savedata_attribute.file_entry_name_length_max = 0x40;
|
||||||
|
|
||||||
|
IPC::ResponseBuilder rb{ctx, 50};
|
||||||
|
rb.Push(ResultSuccess);
|
||||||
|
rb.PushRaw(savedata_attribute);
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
VfsDirectoryServiceWrapper backend;
|
VfsDirectoryServiceWrapper backend;
|
||||||
SizeGetter size;
|
SizeGetter size;
|
||||||
|
@ -168,7 +168,7 @@ Result DatabaseManager::FindIndex(s32& out_index, const Common::UUID& create_id,
|
|||||||
return ResultSuccess;
|
return ResultSuccess;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (std::size_t i = 0; i <= index; ++i) {
|
for (std::size_t i = 0; i < index; ++i) {
|
||||||
if (database.Get(i).IsSpecial()) {
|
if (database.Get(i).IsSpecial()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@ void CharInfo::SetFromStoreData(const StoreData& store_data) {
|
|||||||
eyebrow_aspect = store_data.GetEyebrowAspect();
|
eyebrow_aspect = store_data.GetEyebrowAspect();
|
||||||
eyebrow_rotate = store_data.GetEyebrowRotate();
|
eyebrow_rotate = store_data.GetEyebrowRotate();
|
||||||
eyebrow_x = store_data.GetEyebrowX();
|
eyebrow_x = store_data.GetEyebrowX();
|
||||||
eyebrow_y = store_data.GetEyebrowY();
|
eyebrow_y = store_data.GetEyebrowY() + 3;
|
||||||
nose_type = store_data.GetNoseType();
|
nose_type = store_data.GetNoseType();
|
||||||
nose_scale = store_data.GetNoseScale();
|
nose_scale = store_data.GetNoseScale();
|
||||||
nose_y = store_data.GetNoseY();
|
nose_y = store_data.GetNoseY();
|
||||||
|
@ -113,7 +113,7 @@ void CoreData::BuildRandom(Age age, Gender gender, Race race) {
|
|||||||
.values[MiiUtil::GetRandomValue<std::size_t>(eyebrow_type_info.values_count)]);
|
.values[MiiUtil::GetRandomValue<std::size_t>(eyebrow_type_info.values_count)]);
|
||||||
|
|
||||||
const auto eyebrow_rotate_1{race == Race::Asian ? 6 : 0};
|
const auto eyebrow_rotate_1{race == Race::Asian ? 6 : 0};
|
||||||
const auto eyebrow_y{race == Race::Asian ? 9 : 10};
|
const auto eyebrow_y{race == Race::Asian ? 6 : 7};
|
||||||
const auto eyebrow_rotate_offset{32 - RawData::EyebrowRotateLookup[eyebrow_rotate_1] + 6};
|
const auto eyebrow_rotate_offset{32 - RawData::EyebrowRotateLookup[eyebrow_rotate_1] + 6};
|
||||||
const auto eyebrow_rotate{
|
const auto eyebrow_rotate{
|
||||||
32 - RawData::EyebrowRotateLookup[static_cast<std::size_t>(data.eyebrow_type.Value())]};
|
32 - RawData::EyebrowRotateLookup[static_cast<std::size_t>(data.eyebrow_type.Value())]};
|
||||||
|
@ -1374,7 +1374,7 @@ NFP::AmiiboName NfcDevice::GetAmiiboName(const NFP::AmiiboSettings& settings) co
|
|||||||
|
|
||||||
// Convert from utf16 to utf8
|
// Convert from utf16 to utf8
|
||||||
const auto amiibo_name_utf8 = Common::UTF16ToUTF8(settings_amiibo_name.data());
|
const auto amiibo_name_utf8 = Common::UTF16ToUTF8(settings_amiibo_name.data());
|
||||||
memcpy(amiibo_name.data(), amiibo_name_utf8.data(), amiibo_name_utf8.size() - 1);
|
memcpy(amiibo_name.data(), amiibo_name_utf8.data(), amiibo_name_utf8.size());
|
||||||
|
|
||||||
return amiibo_name;
|
return amiibo_name;
|
||||||
}
|
}
|
||||||
|
@ -1014,15 +1014,37 @@ void RasterizerVulkan::UpdateDepthBias(Tegra::Engines::Maxwell3D::Regs& regs) {
|
|||||||
regs.zeta.format == Tegra::DepthFormat::X8Z24_UNORM ||
|
regs.zeta.format == Tegra::DepthFormat::X8Z24_UNORM ||
|
||||||
regs.zeta.format == Tegra::DepthFormat::S8Z24_UNORM ||
|
regs.zeta.format == Tegra::DepthFormat::S8Z24_UNORM ||
|
||||||
regs.zeta.format == Tegra::DepthFormat::V8Z24_UNORM;
|
regs.zeta.format == Tegra::DepthFormat::V8Z24_UNORM;
|
||||||
if (is_d24 && !device.SupportsD24DepthBuffer()) {
|
bool force_unorm = ([&] {
|
||||||
|
if (!is_d24 || device.SupportsD24DepthBuffer()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (device.IsExtDepthBiasControlSupported()) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (!Settings::values.renderer_amdvlk_depth_bias_workaround) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
// the base formulas can be obtained from here:
|
// the base formulas can be obtained from here:
|
||||||
// https://docs.microsoft.com/en-us/windows/win32/direct3d11/d3d10-graphics-programming-guide-output-merger-stage-depth-bias
|
// https://docs.microsoft.com/en-us/windows/win32/direct3d11/d3d10-graphics-programming-guide-output-merger-stage-depth-bias
|
||||||
const double rescale_factor =
|
const double rescale_factor =
|
||||||
static_cast<double>(1ULL << (32 - 24)) / (static_cast<double>(0x1.ep+127));
|
static_cast<double>(1ULL << (32 - 24)) / (static_cast<double>(0x1.ep+127));
|
||||||
units = static_cast<float>(static_cast<double>(units) * rescale_factor);
|
units = static_cast<float>(static_cast<double>(units) * rescale_factor);
|
||||||
}
|
return false;
|
||||||
|
})();
|
||||||
scheduler.Record([constant = units, clamp = regs.depth_bias_clamp,
|
scheduler.Record([constant = units, clamp = regs.depth_bias_clamp,
|
||||||
factor = regs.slope_scale_depth_bias](vk::CommandBuffer cmdbuf) {
|
factor = regs.slope_scale_depth_bias, force_unorm,
|
||||||
|
precise = device.HasExactDepthBiasControl()](vk::CommandBuffer cmdbuf) {
|
||||||
|
if (force_unorm) {
|
||||||
|
VkDepthBiasRepresentationInfoEXT info{
|
||||||
|
.sType = VK_STRUCTURE_TYPE_DEPTH_BIAS_REPRESENTATION_INFO_EXT,
|
||||||
|
.pNext = nullptr,
|
||||||
|
.depthBiasRepresentation =
|
||||||
|
VK_DEPTH_BIAS_REPRESENTATION_LEAST_REPRESENTABLE_VALUE_FORCE_UNORM_EXT,
|
||||||
|
.depthBiasExact = precise ? VK_TRUE : VK_FALSE,
|
||||||
|
};
|
||||||
|
cmdbuf.SetDepthBias(constant, clamp, factor, &info);
|
||||||
|
return;
|
||||||
|
}
|
||||||
cmdbuf.SetDepthBias(constant, clamp, factor);
|
cmdbuf.SetDepthBias(constant, clamp, factor);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -1059,6 +1059,13 @@ void Device::RemoveUnsuitableExtensions() {
|
|||||||
RemoveExtensionFeatureIfUnsuitable(extensions.custom_border_color, features.custom_border_color,
|
RemoveExtensionFeatureIfUnsuitable(extensions.custom_border_color, features.custom_border_color,
|
||||||
VK_EXT_CUSTOM_BORDER_COLOR_EXTENSION_NAME);
|
VK_EXT_CUSTOM_BORDER_COLOR_EXTENSION_NAME);
|
||||||
|
|
||||||
|
// VK_EXT_depth_bias_control
|
||||||
|
extensions.depth_bias_control =
|
||||||
|
features.depth_bias_control.depthBiasControl &&
|
||||||
|
features.depth_bias_control.leastRepresentableValueForceUnormRepresentation;
|
||||||
|
RemoveExtensionFeatureIfUnsuitable(extensions.depth_bias_control, features.depth_bias_control,
|
||||||
|
VK_EXT_DEPTH_BIAS_CONTROL_EXTENSION_NAME);
|
||||||
|
|
||||||
// VK_EXT_depth_clip_control
|
// VK_EXT_depth_clip_control
|
||||||
extensions.depth_clip_control = features.depth_clip_control.depthClipControl;
|
extensions.depth_clip_control = features.depth_clip_control.depthClipControl;
|
||||||
RemoveExtensionFeatureIfUnsuitable(extensions.depth_clip_control, features.depth_clip_control,
|
RemoveExtensionFeatureIfUnsuitable(extensions.depth_clip_control, features.depth_clip_control,
|
||||||
|
@ -41,6 +41,7 @@ VK_DEFINE_HANDLE(VmaAllocator)
|
|||||||
// Define all features which may be used by the implementation and require an extension here.
|
// Define all features which may be used by the implementation and require an extension here.
|
||||||
#define FOR_EACH_VK_FEATURE_EXT(FEATURE) \
|
#define FOR_EACH_VK_FEATURE_EXT(FEATURE) \
|
||||||
FEATURE(EXT, CustomBorderColor, CUSTOM_BORDER_COLOR, custom_border_color) \
|
FEATURE(EXT, CustomBorderColor, CUSTOM_BORDER_COLOR, custom_border_color) \
|
||||||
|
FEATURE(EXT, DepthBiasControl, DEPTH_BIAS_CONTROL, depth_bias_control) \
|
||||||
FEATURE(EXT, DepthClipControl, DEPTH_CLIP_CONTROL, depth_clip_control) \
|
FEATURE(EXT, DepthClipControl, DEPTH_CLIP_CONTROL, depth_clip_control) \
|
||||||
FEATURE(EXT, ExtendedDynamicState, EXTENDED_DYNAMIC_STATE, extended_dynamic_state) \
|
FEATURE(EXT, ExtendedDynamicState, EXTENDED_DYNAMIC_STATE, extended_dynamic_state) \
|
||||||
FEATURE(EXT, ExtendedDynamicState2, EXTENDED_DYNAMIC_STATE_2, extended_dynamic_state2) \
|
FEATURE(EXT, ExtendedDynamicState2, EXTENDED_DYNAMIC_STATE_2, extended_dynamic_state2) \
|
||||||
@ -96,6 +97,7 @@ VK_DEFINE_HANDLE(VmaAllocator)
|
|||||||
#define FOR_EACH_VK_RECOMMENDED_EXTENSION(EXTENSION_NAME) \
|
#define FOR_EACH_VK_RECOMMENDED_EXTENSION(EXTENSION_NAME) \
|
||||||
EXTENSION_NAME(VK_EXT_CONDITIONAL_RENDERING_EXTENSION_NAME) \
|
EXTENSION_NAME(VK_EXT_CONDITIONAL_RENDERING_EXTENSION_NAME) \
|
||||||
EXTENSION_NAME(VK_EXT_CONSERVATIVE_RASTERIZATION_EXTENSION_NAME) \
|
EXTENSION_NAME(VK_EXT_CONSERVATIVE_RASTERIZATION_EXTENSION_NAME) \
|
||||||
|
EXTENSION_NAME(VK_EXT_DEPTH_BIAS_CONTROL_EXTENSION_NAME) \
|
||||||
EXTENSION_NAME(VK_EXT_DEPTH_RANGE_UNRESTRICTED_EXTENSION_NAME) \
|
EXTENSION_NAME(VK_EXT_DEPTH_RANGE_UNRESTRICTED_EXTENSION_NAME) \
|
||||||
EXTENSION_NAME(VK_EXT_EXTENDED_DYNAMIC_STATE_EXTENSION_NAME) \
|
EXTENSION_NAME(VK_EXT_EXTENDED_DYNAMIC_STATE_EXTENSION_NAME) \
|
||||||
EXTENSION_NAME(VK_EXT_EXTENDED_DYNAMIC_STATE_2_EXTENSION_NAME) \
|
EXTENSION_NAME(VK_EXT_EXTENDED_DYNAMIC_STATE_2_EXTENSION_NAME) \
|
||||||
@ -147,6 +149,9 @@ VK_DEFINE_HANDLE(VmaAllocator)
|
|||||||
// Define features where the absence of the feature may result in a degraded experience.
|
// Define features where the absence of the feature may result in a degraded experience.
|
||||||
#define FOR_EACH_VK_RECOMMENDED_FEATURE(FEATURE_NAME) \
|
#define FOR_EACH_VK_RECOMMENDED_FEATURE(FEATURE_NAME) \
|
||||||
FEATURE_NAME(custom_border_color, customBorderColors) \
|
FEATURE_NAME(custom_border_color, customBorderColors) \
|
||||||
|
FEATURE_NAME(depth_bias_control, depthBiasControl) \
|
||||||
|
FEATURE_NAME(depth_bias_control, leastRepresentableValueForceUnormRepresentation) \
|
||||||
|
FEATURE_NAME(depth_bias_control, depthBiasExact) \
|
||||||
FEATURE_NAME(extended_dynamic_state, extendedDynamicState) \
|
FEATURE_NAME(extended_dynamic_state, extendedDynamicState) \
|
||||||
FEATURE_NAME(format_a4b4g4r4, formatA4B4G4R4) \
|
FEATURE_NAME(format_a4b4g4r4, formatA4B4G4R4) \
|
||||||
FEATURE_NAME(index_type_uint8, indexTypeUint8) \
|
FEATURE_NAME(index_type_uint8, indexTypeUint8) \
|
||||||
@ -464,6 +469,11 @@ public:
|
|||||||
return extensions.depth_clip_control;
|
return extensions.depth_clip_control;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Returns true if the device supports VK_EXT_depth_bias_control.
|
||||||
|
bool IsExtDepthBiasControlSupported() const {
|
||||||
|
return extensions.depth_bias_control;
|
||||||
|
}
|
||||||
|
|
||||||
/// Returns true if the device supports VK_EXT_shader_viewport_index_layer.
|
/// Returns true if the device supports VK_EXT_shader_viewport_index_layer.
|
||||||
bool IsExtShaderViewportIndexLayerSupported() const {
|
bool IsExtShaderViewportIndexLayerSupported() const {
|
||||||
return extensions.shader_viewport_index_layer;
|
return extensions.shader_viewport_index_layer;
|
||||||
@ -624,6 +634,10 @@ public:
|
|||||||
return features.robustness2.nullDescriptor;
|
return features.robustness2.nullDescriptor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool HasExactDepthBiasControl() const {
|
||||||
|
return features.depth_bias_control.depthBiasExact;
|
||||||
|
}
|
||||||
|
|
||||||
u32 GetMaxVertexInputAttributes() const {
|
u32 GetMaxVertexInputAttributes() const {
|
||||||
return properties.properties.limits.maxVertexInputAttributes;
|
return properties.properties.limits.maxVertexInputAttributes;
|
||||||
}
|
}
|
||||||
|
@ -113,6 +113,7 @@ void Load(VkDevice device, DeviceDispatch& dld) noexcept {
|
|||||||
X(vkCmdPushDescriptorSetWithTemplateKHR);
|
X(vkCmdPushDescriptorSetWithTemplateKHR);
|
||||||
X(vkCmdSetBlendConstants);
|
X(vkCmdSetBlendConstants);
|
||||||
X(vkCmdSetDepthBias);
|
X(vkCmdSetDepthBias);
|
||||||
|
X(vkCmdSetDepthBias2EXT);
|
||||||
X(vkCmdSetDepthBounds);
|
X(vkCmdSetDepthBounds);
|
||||||
X(vkCmdSetEvent);
|
X(vkCmdSetEvent);
|
||||||
X(vkCmdSetScissor);
|
X(vkCmdSetScissor);
|
||||||
|
@ -226,6 +226,7 @@ struct DeviceDispatch : InstanceDispatch {
|
|||||||
PFN_vkCmdSetBlendConstants vkCmdSetBlendConstants{};
|
PFN_vkCmdSetBlendConstants vkCmdSetBlendConstants{};
|
||||||
PFN_vkCmdSetCullModeEXT vkCmdSetCullModeEXT{};
|
PFN_vkCmdSetCullModeEXT vkCmdSetCullModeEXT{};
|
||||||
PFN_vkCmdSetDepthBias vkCmdSetDepthBias{};
|
PFN_vkCmdSetDepthBias vkCmdSetDepthBias{};
|
||||||
|
PFN_vkCmdSetDepthBias2EXT vkCmdSetDepthBias2EXT{};
|
||||||
PFN_vkCmdSetDepthBounds vkCmdSetDepthBounds{};
|
PFN_vkCmdSetDepthBounds vkCmdSetDepthBounds{};
|
||||||
PFN_vkCmdSetDepthBoundsTestEnableEXT vkCmdSetDepthBoundsTestEnableEXT{};
|
PFN_vkCmdSetDepthBoundsTestEnableEXT vkCmdSetDepthBoundsTestEnableEXT{};
|
||||||
PFN_vkCmdSetDepthCompareOpEXT vkCmdSetDepthCompareOpEXT{};
|
PFN_vkCmdSetDepthCompareOpEXT vkCmdSetDepthCompareOpEXT{};
|
||||||
@ -1333,6 +1334,18 @@ public:
|
|||||||
dld->vkCmdSetDepthBias(handle, constant_factor, clamp, slope_factor);
|
dld->vkCmdSetDepthBias(handle, constant_factor, clamp, slope_factor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SetDepthBias(float constant_factor, float clamp, float slope_factor,
|
||||||
|
VkDepthBiasRepresentationInfoEXT* extra) const noexcept {
|
||||||
|
VkDepthBiasInfoEXT info{
|
||||||
|
.sType = VK_STRUCTURE_TYPE_DEPTH_BIAS_INFO_EXT,
|
||||||
|
.pNext = extra,
|
||||||
|
.depthBiasConstantFactor = constant_factor,
|
||||||
|
.depthBiasClamp = clamp,
|
||||||
|
.depthBiasSlopeFactor = slope_factor,
|
||||||
|
};
|
||||||
|
dld->vkCmdSetDepthBias2EXT(handle, &info);
|
||||||
|
}
|
||||||
|
|
||||||
void SetDepthBounds(float min_depth_bounds, float max_depth_bounds) const noexcept {
|
void SetDepthBounds(float min_depth_bounds, float max_depth_bounds) const noexcept {
|
||||||
dld->vkCmdSetDepthBounds(handle, min_depth_bounds, max_depth_bounds);
|
dld->vkCmdSetDepthBounds(handle, min_depth_bounds, max_depth_bounds);
|
||||||
}
|
}
|
||||||
|
@ -3113,10 +3113,9 @@ void GMainWindow::OnMenuInstallToNAND() {
|
|||||||
QFuture<InstallResult> future;
|
QFuture<InstallResult> future;
|
||||||
InstallResult result;
|
InstallResult result;
|
||||||
|
|
||||||
if (file.endsWith(QStringLiteral("xci"), Qt::CaseInsensitive) ||
|
if (file.endsWith(QStringLiteral("nsp"), Qt::CaseInsensitive)) {
|
||||||
file.endsWith(QStringLiteral("nsp"), Qt::CaseInsensitive)) {
|
|
||||||
|
|
||||||
future = QtConcurrent::run([this, &file] { return InstallNSPXCI(file); });
|
future = QtConcurrent::run([this, &file] { return InstallNSP(file); });
|
||||||
|
|
||||||
while (!future.isFinished()) {
|
while (!future.isFinished()) {
|
||||||
QCoreApplication::processEvents();
|
QCoreApplication::processEvents();
|
||||||
@ -3175,7 +3174,7 @@ void GMainWindow::OnMenuInstallToNAND() {
|
|||||||
ui->action_Install_File_NAND->setEnabled(true);
|
ui->action_Install_File_NAND->setEnabled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
InstallResult GMainWindow::InstallNSPXCI(const QString& filename) {
|
InstallResult GMainWindow::InstallNSP(const QString& filename) {
|
||||||
const auto qt_raw_copy = [this](const FileSys::VirtualFile& src,
|
const auto qt_raw_copy = [this](const FileSys::VirtualFile& src,
|
||||||
const FileSys::VirtualFile& dest, std::size_t block_size) {
|
const FileSys::VirtualFile& dest, std::size_t block_size) {
|
||||||
if (src == nullptr || dest == nullptr) {
|
if (src == nullptr || dest == nullptr) {
|
||||||
@ -3209,9 +3208,7 @@ InstallResult GMainWindow::InstallNSPXCI(const QString& filename) {
|
|||||||
return InstallResult::Failure;
|
return InstallResult::Failure;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const auto xci = std::make_shared<FileSys::XCI>(
|
return InstallResult::Failure;
|
||||||
vfs->OpenFile(filename.toStdString(), FileSys::Mode::Read));
|
|
||||||
nsp = xci->GetSecurePartitionNSP();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nsp->GetStatus() != Loader::ResultStatus::Success) {
|
if (nsp->GetStatus() != Loader::ResultStatus::Success) {
|
||||||
|
@ -387,7 +387,7 @@ private:
|
|||||||
void RemoveCacheStorage(u64 program_id);
|
void RemoveCacheStorage(u64 program_id);
|
||||||
bool SelectRomFSDumpTarget(const FileSys::ContentProvider&, u64 program_id,
|
bool SelectRomFSDumpTarget(const FileSys::ContentProvider&, u64 program_id,
|
||||||
u64* selected_title_id, u8* selected_content_record_type);
|
u64* selected_title_id, u8* selected_content_record_type);
|
||||||
InstallResult InstallNSPXCI(const QString& filename);
|
InstallResult InstallNSP(const QString& filename);
|
||||||
InstallResult InstallNCA(const QString& filename);
|
InstallResult InstallNCA(const QString& filename);
|
||||||
void MigrateConfigFiles();
|
void MigrateConfigFiles();
|
||||||
void UpdateWindowTitle(std::string_view title_name = {}, std::string_view title_version = {},
|
void UpdateWindowTitle(std::string_view title_name = {}, std::string_view title_version = {},
|
||||||
|
Reference in New Issue
Block a user