mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 05:51:27 +12:00
vk: Workaround for validation layers bug
This commit is contained in:
parent
6b3f722ff0
commit
0a865bd9dc
1 changed files with 3 additions and 1 deletions
|
@ -805,10 +805,12 @@ void VKGSRender::emit_geometry(u32 sub_index)
|
||||||
|
|
||||||
if (!m_current_subdraw_id++)
|
if (!m_current_subdraw_id++)
|
||||||
{
|
{
|
||||||
vkCmdBindPipeline(*m_current_command_buffer, VK_PIPELINE_BIND_POINT_GRAPHICS, m_program->pipeline);
|
|
||||||
update_draw_state();
|
update_draw_state();
|
||||||
begin_render_pass();
|
begin_render_pass();
|
||||||
|
|
||||||
|
// Bind pipeline after starting the renderpass to work around some validation layer spam about format mismatch
|
||||||
|
vkCmdBindPipeline(*m_current_command_buffer, VK_PIPELINE_BIND_POINT_GRAPHICS, m_program->pipeline);
|
||||||
|
|
||||||
if (cond_render_ctrl.hw_cond_active && m_device->get_conditional_render_support())
|
if (cond_render_ctrl.hw_cond_active && m_device->get_conditional_render_support())
|
||||||
{
|
{
|
||||||
// It is inconvenient that conditional rendering breaks other things like compute dispatch
|
// It is inconvenient that conditional rendering breaks other things like compute dispatch
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue