summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-05-28 01:51:41 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-05-30 18:21:01 +0200
commit6ac44907516a0fd4973a80b793b336c4cef2377a (patch)
tree4f62b9e803984aafe0b9fa95bbaf0a9b5ed33326
parentmaxwell_to_gl: Use GL_CLAMP to emulate Clamp wrap mode (diff)
downloadyuzu-6ac44907516a0fd4973a80b793b336c4cef2377a.tar
yuzu-6ac44907516a0fd4973a80b793b336c4cef2377a.tar.gz
yuzu-6ac44907516a0fd4973a80b793b336c4cef2377a.tar.bz2
yuzu-6ac44907516a0fd4973a80b793b336c4cef2377a.tar.lz
yuzu-6ac44907516a0fd4973a80b793b336c4cef2377a.tar.xz
yuzu-6ac44907516a0fd4973a80b793b336c4cef2377a.tar.zst
yuzu-6ac44907516a0fd4973a80b793b336c4cef2377a.zip
-rw-r--r--src/video_core/renderer_opengl/gl_buffer_cache.cpp10
-rw-r--r--src/video_core/renderer_opengl/gl_buffer_cache.h3
2 files changed, 0 insertions, 13 deletions
diff --git a/src/video_core/renderer_opengl/gl_buffer_cache.cpp b/src/video_core/renderer_opengl/gl_buffer_cache.cpp
index 25652e794..48b86f3bd 100644
--- a/src/video_core/renderer_opengl/gl_buffer_cache.cpp
+++ b/src/video_core/renderer_opengl/gl_buffer_cache.cpp
@@ -71,16 +71,6 @@ GLintptr OGLBufferCache::UploadHostMemory(const void* raw_pointer, std::size_t s
return uploaded_offset;
}
-std::tuple<u8*, GLintptr> OGLBufferCache::ReserveMemory(std::size_t size, std::size_t alignment) {
- AlignBuffer(alignment);
- u8* const uploaded_ptr = buffer_ptr;
- const GLintptr uploaded_offset = buffer_offset;
-
- buffer_ptr += size;
- buffer_offset += size;
- return std::make_tuple(uploaded_ptr, uploaded_offset);
-}
-
bool OGLBufferCache::Map(std::size_t max_size) {
bool invalidate;
std::tie(buffer_ptr, buffer_offset_base, invalidate) =
diff --git a/src/video_core/renderer_opengl/gl_buffer_cache.h b/src/video_core/renderer_opengl/gl_buffer_cache.h
index f9247a40e..f2347581b 100644
--- a/src/video_core/renderer_opengl/gl_buffer_cache.h
+++ b/src/video_core/renderer_opengl/gl_buffer_cache.h
@@ -61,9 +61,6 @@ public:
/// Uploads from a host memory. Returns host's buffer offset where it's been allocated.
GLintptr UploadHostMemory(const void* raw_pointer, std::size_t size, std::size_t alignment = 4);
- /// Reserves memory to be used by host's CPU. Returns mapped address and offset.
- std::tuple<u8*, GLintptr> ReserveMemory(std::size_t size, std::size_t alignment = 4);
-
bool Map(std::size_t max_size);
void Unmap();