diff options
| author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-09-23 14:02:02 -0400 |
|---|---|---|
| committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-10-25 09:01:29 -0400 |
| commit | 1a58f45d76fe7756dd365e099d1536da769c1eab (patch) | |
| tree | 668a61e870c57249edf94ba2e2002d3ace18b118 /src/video_core/engines/maxwell_3d.cpp | |
| parent | 2ef696c85a37917102a9f869775180ab225f0d56 (diff) | |
VideoCore: Unify const buffer accessing along engines and provide ConstBufferLocker class to shaders.
Diffstat (limited to 'src/video_core/engines/maxwell_3d.cpp')
| -rw-r--r-- | src/video_core/engines/maxwell_3d.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp index 59976943a..92e38b071 100644 --- a/src/video_core/engines/maxwell_3d.cpp +++ b/src/video_core/engines/maxwell_3d.cpp @@ -847,7 +847,8 @@ void Maxwell3D::ProcessClearBuffers() { rasterizer.Clear(); } -u32 Maxwell3D::AccessConstBuffer32(Regs::ShaderStage stage, u64 const_buffer, u64 offset) const { +u32 Maxwell3D::AccessConstBuffer32(ShaderType stage, u64 const_buffer, u64 offset) const { + ASSERT(stage != ShaderType::Compute); const auto& shader_stage = state.shader_stages[static_cast<std::size_t>(stage)]; const auto& buffer = shader_stage.const_buffers[const_buffer]; u32 result; |
