From ba02d564f8a0b0167b96f247b6ad9d2bde05b6c8 Mon Sep 17 00:00:00 2001 From: Fernando Sahmkow Date: Sun, 15 Sep 2019 11:48:54 -0400 Subject: Video Core: initial Implementation of InstanceDraw Packaging --- src/video_core/rasterizer_interface.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/video_core/rasterizer_interface.h') diff --git a/src/video_core/rasterizer_interface.h b/src/video_core/rasterizer_interface.h index 6b3f2d50a..a37b84b8c 100644 --- a/src/video_core/rasterizer_interface.h +++ b/src/video_core/rasterizer_interface.h @@ -31,6 +31,9 @@ public: /// Draw the current batch of vertex arrays virtual void DrawArrays() = 0; + /// Draw the current batch of vertex arrays + virtual void DrawMultiArrays() = 0; + /// Clear the current framebuffer virtual void Clear() = 0; @@ -73,6 +76,10 @@ public: return false; } + virtual bool AccelerateDrawMultiBatch(bool is_indexed) { + return false; + } + /// Increase/decrease the number of object in pages touching the specified region virtual void UpdatePagesCachedCount(VAddr addr, u64 size, int delta) {} -- cgit v1.2.3 From c17655ce7465815bb69adf22c2d12f02a93d7d5c Mon Sep 17 00:00:00 2001 From: Fernando Sahmkow Date: Wed, 18 Sep 2019 07:51:05 -0400 Subject: Rasterizer: Refactor draw calls, remove deadcode and clean up. --- src/video_core/rasterizer_interface.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/video_core/rasterizer_interface.h') diff --git a/src/video_core/rasterizer_interface.h b/src/video_core/rasterizer_interface.h index a37b84b8c..fe0d82255 100644 --- a/src/video_core/rasterizer_interface.h +++ b/src/video_core/rasterizer_interface.h @@ -31,7 +31,7 @@ public: /// Draw the current batch of vertex arrays virtual void DrawArrays() = 0; - /// Draw the current batch of vertex arrays + /// Draw the current batch of multiple instasnces of vertex arrays virtual void DrawMultiArrays() = 0; /// Clear the current framebuffer -- cgit v1.2.3 From 7761e44d186deff278e51814bdec0c25e8e1a09c Mon Sep 17 00:00:00 2001 From: Fernando Sahmkow Date: Thu, 19 Sep 2019 11:41:07 -0400 Subject: Rasterizer: Refactor and simplify DrawBatch Interface. --- src/video_core/rasterizer_interface.h | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src/video_core/rasterizer_interface.h') diff --git a/src/video_core/rasterizer_interface.h b/src/video_core/rasterizer_interface.h index fe0d82255..deadd70ec 100644 --- a/src/video_core/rasterizer_interface.h +++ b/src/video_core/rasterizer_interface.h @@ -29,10 +29,10 @@ public: virtual ~RasterizerInterface() {} /// Draw the current batch of vertex arrays - virtual void DrawArrays() = 0; + virtual bool DrawBatch(bool is_indexed) = 0; /// Draw the current batch of multiple instasnces of vertex arrays - virtual void DrawMultiArrays() = 0; + virtual bool DrawMultiBatch(bool is_indexed) = 0; /// Clear the current framebuffer virtual void Clear() = 0; @@ -72,14 +72,6 @@ public: return false; } - virtual bool AccelerateDrawBatch(bool is_indexed) { - return false; - } - - virtual bool AccelerateDrawMultiBatch(bool is_indexed) { - return false; - } - /// Increase/decrease the number of object in pages touching the specified region virtual void UpdatePagesCachedCount(VAddr addr, u64 size, int delta) {} -- cgit v1.2.3 From 68f5aff64f231e77fed726b91619061e308b7b2d Mon Sep 17 00:00:00 2001 From: Fernando Sahmkow Date: Sun, 22 Sep 2019 07:23:13 -0400 Subject: Maxwell3D: Corrections and refactors to MME instance refactor --- src/video_core/rasterizer_interface.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/video_core/rasterizer_interface.h') diff --git a/src/video_core/rasterizer_interface.h b/src/video_core/rasterizer_interface.h index deadd70ec..5b0eca9e2 100644 --- a/src/video_core/rasterizer_interface.h +++ b/src/video_core/rasterizer_interface.h @@ -31,7 +31,7 @@ public: /// Draw the current batch of vertex arrays virtual bool DrawBatch(bool is_indexed) = 0; - /// Draw the current batch of multiple instasnces of vertex arrays + /// Draw the current batch of multiple instances of vertex arrays virtual bool DrawMultiBatch(bool is_indexed) = 0; /// Clear the current framebuffer -- cgit v1.2.3