diff options
| author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-04-25 13:41:57 -0300 |
|---|---|---|
| committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-06-20 21:36:11 -0300 |
| commit | 05f039e9fb8448962a7a6d0e4db4fcf98b6076cf (patch) | |
| tree | c508c35c4bc1bf436a22888cd6c150dfbe07edc8 /src/video_core/texture_cache/surface_base.h | |
| parent | dfe6cbac91a3dce8ccea98fc19f06c162ed58cee (diff) | |
texture_cache: Remove execution context copies from the texture cache
This is done to simplify the OpenGL implementation, it is needed for
Vulkan.
Diffstat (limited to 'src/video_core/texture_cache/surface_base.h')
| -rw-r--r-- | src/video_core/texture_cache/surface_base.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/video_core/texture_cache/surface_base.h b/src/video_core/texture_cache/surface_base.h index d0142a9e62..eed8dc59d5 100644 --- a/src/video_core/texture_cache/surface_base.h +++ b/src/video_core/texture_cache/surface_base.h @@ -89,14 +89,12 @@ private: std::vector<u8> staging_buffer; }; -template <typename TTextureCache, typename TView, typename TExecutionContext> +template <typename TTextureCache, typename TView> class SurfaceBase : public SurfaceBaseImpl { - static_assert(std::is_trivially_copyable_v<TExecutionContext>); - public: - virtual TExecutionContext UploadTexture(TExecutionContext exctx) = 0; + virtual void UploadTexture() = 0; - virtual TExecutionContext DownloadTexture(TExecutionContext exctx) = 0; + virtual void DownloadTexture() = 0; TView* TryGetView(GPUVAddr view_addr, const SurfaceParams& view_params) { if (view_addr < GetGpuAddr() || !params.IsFamiliar(view_params)) { |
