mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 13:31:27 +12:00
rsx: Test vertex program flags on each draw
This commit is contained in:
parent
0baf873534
commit
9de6a38e13
1 changed files with 8 additions and 0 deletions
|
@ -393,6 +393,14 @@ namespace rsx
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME: This doesn't belong here
|
||||||
|
constexpr u32 instance_control_mask = RSX_SHADER_CONTROL_INSTANCED_CONSTANTS;
|
||||||
|
RSX(ctx)->current_vertex_program.ctrl &= ~instance_control_mask;
|
||||||
|
if (REGS(ctx)->current_draw_clause.is_trivial_instanced_draw)
|
||||||
|
{
|
||||||
|
RSX(ctx)->current_vertex_program.ctrl |= RSX_SHADER_CONTROL_INSTANCED_CONSTANTS;
|
||||||
|
}
|
||||||
|
|
||||||
RSX(ctx)->end();
|
RSX(ctx)->end();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue