maxwell_3d: Unify draw methods

Pass instanced state of a draw invocation as an argument instead of
having two separate virtual methods.
This commit is contained in:
ReinUsesLisp 2020-02-14 18:09:37 -03:00
parent f552d553ba
commit 91aa58e410
6 changed files with 6 additions and 36 deletions

View file

@ -482,7 +482,7 @@ void Maxwell3D::FlushMMEInlineDraw() {
const bool is_indexed = mme_draw.current_mode == MMEDrawMode::Indexed;
if (ShouldExecute()) {
rasterizer.DrawMultiBatch(is_indexed);
rasterizer.Draw(is_indexed, true);
}
// TODO(bunnei): Below, we reset vertex count so that we can use these registers to determine if
@ -647,7 +647,7 @@ void Maxwell3D::DrawArrays() {
const bool is_indexed{regs.index_array.count && !regs.vertex_buffer.count};
if (ShouldExecute()) {
rasterizer.DrawBatch(is_indexed);
rasterizer.Draw(is_indexed, false);
}
// TODO(bunnei): Below, we reset vertex count so that we can use these registers to determine if