summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2022-11-20 18:08:08 +0100
committerGitHub <noreply@github.com>2022-11-20 18:08:08 +0100
commit7f1c6def1f0bab38c8f89766ca9de670fd126a25 (patch)
tree9cb97c5f241d967faed05c27e802b1f12cdc0442 /src/video_core/renderer_opengl
parentMerge pull request #9238 from german77/cabinet_applet (diff)
parentvideo_core: Reimplement inline index buffer binding (diff)
downloadyuzu-7f1c6def1f0bab38c8f89766ca9de670fd126a25.tar
yuzu-7f1c6def1f0bab38c8f89766ca9de670fd126a25.tar.gz
yuzu-7f1c6def1f0bab38c8f89766ca9de670fd126a25.tar.bz2
yuzu-7f1c6def1f0bab38c8f89766ca9de670fd126a25.tar.lz
yuzu-7f1c6def1f0bab38c8f89766ca9de670fd126a25.tar.xz
yuzu-7f1c6def1f0bab38c8f89766ca9de670fd126a25.tar.zst
yuzu-7f1c6def1f0bab38c8f89766ca9de670fd126a25.zip
Diffstat (limited to 'src/video_core/renderer_opengl')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp12
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.h2
2 files changed, 0 insertions, 14 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp
index 115a5e010..354c6e429 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp
@@ -222,8 +222,6 @@ void RasterizerOpenGL::Draw(bool is_indexed, u32 instance_count) {
pipeline->SetEngine(maxwell3d, gpu_memory);
pipeline->Configure(is_indexed);
- BindInlineIndexBuffer();
-
SyncState();
const GLenum primitive_mode = MaxwellToGL::PrimitiveTopology(maxwell3d->regs.draw.topology);
@@ -1140,16 +1138,6 @@ void RasterizerOpenGL::ReleaseChannel(s32 channel_id) {
query_cache.EraseChannel(channel_id);
}
-void RasterizerOpenGL::BindInlineIndexBuffer() {
- if (maxwell3d->inline_index_draw_indexes.empty()) {
- return;
- }
- const auto data_count = static_cast<u32>(maxwell3d->inline_index_draw_indexes.size());
- auto buffer = Buffer(buffer_cache_runtime, *this, 0, data_count);
- buffer.ImmediateUpload(0, maxwell3d->inline_index_draw_indexes);
- buffer_cache_runtime.BindIndexBuffer(buffer, 0, data_count);
-}
-
AccelerateDMA::AccelerateDMA(BufferCache& buffer_cache_) : buffer_cache{buffer_cache_} {}
bool AccelerateDMA::BufferCopy(GPUVAddr src_address, GPUVAddr dest_address, u64 amount) {
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.h b/src/video_core/renderer_opengl/gl_rasterizer.h
index 449a14f12..fc183c3ca 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.h
+++ b/src/video_core/renderer_opengl/gl_rasterizer.h
@@ -199,8 +199,6 @@ private:
/// End a transform feedback
void EndTransformFeedback();
- void BindInlineIndexBuffer();
-
Tegra::GPU& gpu;
const Device& device;