mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-31 20:41:45 +01:00
VK: add two options (workarounds)
Force FIFO present mode option is workaround for recent MESA drivers Force primitive restart flag should also work on said drivers
This commit is contained in:
parent
fa04ff6d90
commit
d2652aedd2
@ -299,7 +299,7 @@ namespace vk
|
||||
{
|
||||
if (gpu_name.find(test) != std::string::npos)
|
||||
{
|
||||
g_drv_no_primitive_restart_flag = true;
|
||||
g_drv_no_primitive_restart_flag = !g_cfg.video.vk.force_primitive_restart;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -907,7 +907,7 @@ namespace vk
|
||||
//List of preferred modes in decreasing desirability
|
||||
if (g_cfg.video.vsync)
|
||||
preferred_modes = { VK_PRESENT_MODE_MAILBOX_KHR };
|
||||
else
|
||||
else if (!g_cfg.video.vk.force_fifo)
|
||||
preferred_modes = { VK_PRESENT_MODE_IMMEDIATE_KHR, VK_PRESENT_MODE_FIFO_RELAXED_KHR, VK_PRESENT_MODE_MAILBOX_KHR };
|
||||
|
||||
bool mode_found = false;
|
||||
|
@ -361,6 +361,8 @@ struct cfg_root : cfg::node
|
||||
node_vk(cfg::node* _this) : cfg::node(_this, "Vulkan") {}
|
||||
|
||||
cfg::string adapter{this, "Adapter"};
|
||||
cfg::_bool force_fifo{this, "Force FIFO present mode"};
|
||||
cfg::_bool force_primitive_restart{this, "Force primitive restart flag"};
|
||||
|
||||
} vk{this};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user