mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-05 15:40:10 +00:00
rsx: Test vertex program flags on each draw
This commit is contained in:
parent
0baf873534
commit
9de6a38e13
@ -393,6 +393,14 @@ namespace rsx
|
||||
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();
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user