mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-31 16:37:07 +02:00
[vulkan, rasterizer] Executing UpdateDynamicStates() before BindPipeline function
This commit is contained in:
parent
b3d4dbca60
commit
c0d1438862
1 changed files with 4 additions and 3 deletions
|
|
@ -200,7 +200,7 @@ RasterizerVulkan::RasterizerVulkan(Core::Frontend::EmuWindow& emu_window_, Tegra
|
||||||
|
|
||||||
// Log multi-draw support
|
// Log multi-draw support
|
||||||
if (device.IsExtMultiDrawSupported()) {
|
if (device.IsExtMultiDrawSupported()) {
|
||||||
LOG_INFO(Render_Vulkan, "VK_EXT_multi_draw is enabled for optimized draw calls");
|
LOG_INFO(Render_Vulkan, "VK_EXT_multi_draw is enabled for draw calls");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -222,11 +222,12 @@ void RasterizerVulkan::PrepareDraw(bool is_indexed, Func&& draw_func) {
|
||||||
std::scoped_lock lock{buffer_cache.mutex, texture_cache.mutex};
|
std::scoped_lock lock{buffer_cache.mutex, texture_cache.mutex};
|
||||||
// update engine as channel may be different.
|
// update engine as channel may be different.
|
||||||
pipeline->SetEngine(maxwell3d, gpu_memory);
|
pipeline->SetEngine(maxwell3d, gpu_memory);
|
||||||
if (!pipeline->Configure(is_indexed))
|
|
||||||
return;
|
|
||||||
|
|
||||||
UpdateDynamicStates();
|
UpdateDynamicStates();
|
||||||
|
|
||||||
|
if (!pipeline->Configure(is_indexed))
|
||||||
|
return;
|
||||||
|
|
||||||
HandleTransformFeedback();
|
HandleTransformFeedback();
|
||||||
query_cache.CounterEnable(VideoCommon::QueryType::ZPassPixelCount64,
|
query_cache.CounterEnable(VideoCommon::QueryType::ZPassPixelCount64,
|
||||||
maxwell3d->regs.zpass_pixel_count_enable);
|
maxwell3d->regs.zpass_pixel_count_enable);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue