metal: implement buffer to buffer copy
Some checks failed
codespell / Check for spelling errors (push) Successful in 10s
suyu verify / Verify Format (push) Failing after 2m26s
suyu verify / test build (linux-fresh, clang) (push) Has been skipped
suyu verify / test build (linux-fresh, linux) (push) Has been skipped
suyu verify / android (push) Has been skipped

This commit is contained in:
Samuliak 2024-04-08 17:03:25 +02:00
parent 3fa495840a
commit 40eca20e12
No known key found for this signature in database
2 changed files with 7 additions and 6 deletions

View file

@ -81,11 +81,10 @@ void BufferCacheRuntime::Finish() {}
void BufferCacheRuntime::CopyBuffer(MTL::Buffer* dst_buffer, MTL::Buffer* src_buffer,
std::span<const VideoCommon::BufferCopy> copies, bool barrier,
bool can_reorder_upload) {
// HACK: needs to be commented out, since it interrupts render pass
// for (const VideoCommon::BufferCopy& copy : copies) {
// command_recorder.GetBlitCommandEncoder()->copyFromBuffer(
// src_buffer, copy.src_offset, dst_buffer, copy.dst_offset, copy.size);
// }
for (const VideoCommon::BufferCopy& copy : copies) {
command_recorder.GetBlitCommandEncoder()->copyFromBuffer(
src_buffer, copy.src_offset, dst_buffer, copy.dst_offset, copy.size);
}
}
void BufferCacheRuntime::ClearBuffer(MTL::Buffer* dest_buffer, u32 offset, size_t size, u32 value) {

View file

@ -59,7 +59,9 @@ void GraphicsPipeline::Configure(bool is_indexed) {
buffer_cache.UpdateGraphicsBuffers(is_indexed);
buffer_cache.BindHostGeometryBuffers(is_indexed);
texture_cache.UpdateRenderTargets(true);
texture_cache.SynchronizeGraphicsDescriptors();
texture_cache.UpdateRenderTargets(false);
const Framebuffer* const framebuffer = texture_cache.GetFramebuffer();
if (!framebuffer) {
return;