diff options
| author | bunnei <bunneidev@gmail.com> | 2019-06-17 22:35:04 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-17 22:35:04 -0400 |
| commit | c7b5c245e1e6c8ec27e26cd767a34eeb8531580b (patch) | |
| tree | b0139c242f5a609e73e253e5d717dc5149527bfb /src/video_core/engines/maxwell_3d.cpp | |
| parent | c0e7b91145d944b9fcd82605cccac64298d02c4f (diff) | |
| parent | 5669ff3cbd5342aeac5ed00873cc37b412ea8b9e (diff) | |
Merge pull request #2562 from ReinUsesLisp/split-cbuf-upload
video_core/engines: Move ConstBufferInfo out of Maxwell3D
Diffstat (limited to 'src/video_core/engines/maxwell_3d.cpp')
| -rw-r--r-- | src/video_core/engines/maxwell_3d.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp index 39968d403..08d553696 100644 --- a/src/video_core/engines/maxwell_3d.cpp +++ b/src/video_core/engines/maxwell_3d.cpp @@ -396,12 +396,10 @@ void Maxwell3D::ProcessCBBind(Regs::ShaderStage stage) { auto& shader = state.shader_stages[static_cast<std::size_t>(stage)]; auto& bind_data = regs.cb_bind[static_cast<std::size_t>(stage)]; - auto& buffer = shader.const_buffers[bind_data.index]; - ASSERT(bind_data.index < Regs::MaxConstBuffers); + auto& buffer = shader.const_buffers[bind_data.index]; buffer.enabled = bind_data.valid.Value() != 0; - buffer.index = bind_data.index; buffer.address = regs.const_buffer.BufferAddress(); buffer.size = regs.const_buffer.cb_size; } |
