diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-09-22 13:23:13 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-09-22 13:23:13 +0200 |
commit | 68f5aff64f231e77fed726b91619061e308b7b2d (patch) | |
tree | dfb0af079a7e4f6da108a9dd4484c9cee069b2d0 /src/video_core/engines/maxwell_3d.h | |
parent | Rasterizer: Correct introduced bug where a conditional render wouldn't stop a draw call from executing (diff) | |
download | yuzu-68f5aff64f231e77fed726b91619061e308b7b2d.tar yuzu-68f5aff64f231e77fed726b91619061e308b7b2d.tar.gz yuzu-68f5aff64f231e77fed726b91619061e308b7b2d.tar.bz2 yuzu-68f5aff64f231e77fed726b91619061e308b7b2d.tar.lz yuzu-68f5aff64f231e77fed726b91619061e308b7b2d.tar.xz yuzu-68f5aff64f231e77fed726b91619061e308b7b2d.tar.zst yuzu-68f5aff64f231e77fed726b91619061e308b7b2d.zip |
Diffstat (limited to 'src/video_core/engines/maxwell_3d.h')
-rw-r--r-- | src/video_core/engines/maxwell_3d.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h index 8fd3ec85c..4c97759ed 100644 --- a/src/video_core/engines/maxwell_3d.h +++ b/src/video_core/engines/maxwell_3d.h @@ -1269,14 +1269,14 @@ public: return execute_on; } - enum class MMMEDrawMode : u32 { + enum class MMEDrawMode : u32 { Undefined, Array, Indexed, }; struct MMEDrawState { - MMMEDrawMode current_mode{MMMEDrawMode::Undefined}; + MMEDrawMode current_mode{MMEDrawMode::Undefined}; u32 current_count{}; u32 instance_count{}; bool instance_mode{}; @@ -1369,6 +1369,9 @@ private: /// Handles a write to the VERTEX_END_GL register, triggering a draw. void DrawArrays(); + + // Handles a instance drawcall from MME + void StepInstance(MMEDrawMode expected_mode, u32 count); }; #define ASSERT_REG_POSITION(field_name, position) \ |