From 11e75853a6e1c3d426f9db49a932a8e2390cdc65 Mon Sep 17 00:00:00 2001 From: illusion <37698908+illusion0001@users.noreply.github.com> Date: Sun, 28 Jun 2020 05:19:35 +1100 Subject: [PATCH] ui: add rsx some options to gui (#8512) disable hw fp16 to advanced 3d tv support to gpu --- rpcs3/rpcs3qt/emu_settings_type.h | 4 ++++ rpcs3/rpcs3qt/settings_dialog.cpp | 6 ++++++ rpcs3/rpcs3qt/settings_dialog.ui | 14 ++++++++++++++ rpcs3/rpcs3qt/tooltips.h | 2 ++ 4 files changed, 26 insertions(+) diff --git a/rpcs3/rpcs3qt/emu_settings_type.h b/rpcs3/rpcs3qt/emu_settings_type.h index 29ef73460d..097681f253 100644 --- a/rpcs3/rpcs3qt/emu_settings_type.h +++ b/rpcs3/rpcs3qt/emu_settings_type.h @@ -59,6 +59,8 @@ enum class emu_settings_type DisableOcclusionQueries, DisableFIFOReordering, StrictTextureFlushing, + DisableNativefloat16, + Enable3D, AnisotropicFilterOverride, ResolutionScale, MinimumScalableDimension, @@ -195,6 +197,8 @@ static const QMap settings_location = { emu_settings_type::DisableVertexCache, { "Video", "Disable Vertex Cache"}}, { emu_settings_type::DisableOcclusionQueries, { "Video", "Disable ZCull Occlusion Queries"}}, { emu_settings_type::DisableFIFOReordering, { "Video", "Disable FIFO Reordering"}}, + { emu_settings_type::DisableNativefloat16, { "Video", "Disable native float16 support"}}, + { emu_settings_type::Enable3D, { "Video", "Enable 3D"}}, { emu_settings_type::StrictTextureFlushing, { "Video", "Strict Texture Flushing"}}, { emu_settings_type::ForceCPUBlitEmulation, { "Video", "Force CPU Blit"}}, { emu_settings_type::DisableOnDiskShaderCache, { "Video", "Disable On-Disk Shader Cache"}}, diff --git a/rpcs3/rpcs3qt/settings_dialog.cpp b/rpcs3/rpcs3qt/settings_dialog.cpp index 5aa25d3469..917f13fa0b 100644 --- a/rpcs3/rpcs3qt/settings_dialog.cpp +++ b/rpcs3/rpcs3qt/settings_dialog.cpp @@ -1704,6 +1704,12 @@ settings_dialog::settings_dialog(std::shared_ptr gui_settings, std m_emu_settings->EnhanceCheckBox(ui->strictTextureFlushing, emu_settings_type::StrictTextureFlushing); SubscribeTooltip(ui->strictTextureFlushing, tooltips.settings.strict_texture_flushing); + m_emu_settings->EnhanceCheckBox(ui->DisableNativefp16, emu_settings_type::DisableNativefloat16); + SubscribeTooltip(ui->DisableNativefp16, tooltips.settings.disable_native_fp16); + + m_emu_settings->EnhanceCheckBox(ui->Enable3D, emu_settings_type::Enable3D); + SubscribeTooltip(ui->Enable3D, tooltips.settings.enable_3d); + m_emu_settings->EnhanceCheckBox(ui->gpuTextureScaling, emu_settings_type::GPUTextureScaling); SubscribeTooltip(ui->gpuTextureScaling, tooltips.settings.gpu_texture_scaling); diff --git a/rpcs3/rpcs3qt/settings_dialog.ui b/rpcs3/rpcs3qt/settings_dialog.ui index 1319cd805d..bf6bb0c780 100644 --- a/rpcs3/rpcs3qt/settings_dialog.ui +++ b/rpcs3/rpcs3qt/settings_dialog.ui @@ -722,6 +722,13 @@ + + + + Enable 3D + + + @@ -2034,6 +2041,13 @@ + + + + Disable native float16 support + + + diff --git a/rpcs3/rpcs3qt/tooltips.h b/rpcs3/rpcs3qt/tooltips.h index 3f1f2d77c3..3e3cdf533c 100644 --- a/rpcs3/rpcs3qt/tooltips.h +++ b/rpcs3/rpcs3qt/tooltips.h @@ -93,6 +93,8 @@ public: const QString disable_fifo_reordering = tr("Disables RSX FIFO optimizations completely. Draws are processed as they are received by the DMA puller."); const QString gpu_texture_scaling = tr("Force all texture transfer, scaling and conversion operations on the GPU.\nMay cause texture corruption in some cases."); const QString strict_texture_flushing = tr("Forces texture flushing even in situations where it is not necessary/correct. Known to cause visual artifacts, but useful for debugging certain texture cache issues."); + const QString disable_native_fp16 = tr("Disables hardware half-float support which is known to cause problems in some rare cases on some GPUs."); + const QString enable_3d = tr("Enables 3D stereo rendering.\nNote that only anaglyph viewing is supported at the moment."); // emulator