diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-05-29 23:15:28 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-07-06 05:37:55 +0200 |
commit | 345f852bdb64d1a779ac617965f46f5b8227eca5 (patch) | |
tree | 68e3d6c6c07bf3a47956c0a4015dfb777eeaf589 /src/video_core/renderer_opengl/gl_buffer_cache.h | |
parent | gl_buffer_cache: Rework to support internalized buffers (diff) | |
download | yuzu-345f852bdb64d1a779ac617965f46f5b8227eca5.tar yuzu-345f852bdb64d1a779ac617965f46f5b8227eca5.tar.gz yuzu-345f852bdb64d1a779ac617965f46f5b8227eca5.tar.bz2 yuzu-345f852bdb64d1a779ac617965f46f5b8227eca5.tar.lz yuzu-345f852bdb64d1a779ac617965f46f5b8227eca5.tar.xz yuzu-345f852bdb64d1a779ac617965f46f5b8227eca5.tar.zst yuzu-345f852bdb64d1a779ac617965f46f5b8227eca5.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_buffer_cache.h')
-rw-r--r-- | src/video_core/renderer_opengl/gl_buffer_cache.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_buffer_cache.h b/src/video_core/renderer_opengl/gl_buffer_cache.h index 00bc6008a..b4fbd201d 100644 --- a/src/video_core/renderer_opengl/gl_buffer_cache.h +++ b/src/video_core/renderer_opengl/gl_buffer_cache.h @@ -82,7 +82,7 @@ public: /// Uploads data from a guest GPU address. Returns the OpenGL buffer where it's located and its /// offset. BufferInfo UploadMemory(GPUVAddr gpu_addr, std::size_t size, std::size_t alignment = 4, - bool internalize = false); + bool internalize = false, bool is_written = false); /// Uploads from a host memory. Returns the OpenGL buffer where it's located and its offset. BufferInfo UploadHostMemory(const void* raw_pointer, std::size_t size, @@ -99,7 +99,7 @@ private: BufferInfo StreamBufferUpload(const void* raw_pointer, std::size_t size, std::size_t alignment); BufferInfo FixedBufferUpload(GPUVAddr gpu_addr, u8* host_ptr, std::size_t size, - bool internalize); + bool internalize, bool is_written); void GrowBuffer(std::shared_ptr<CachedBufferEntry>& entry, std::size_t new_size); |