Просмотр исходного кода

Use ReadBlockUnsafe for fetyching DMA CommandLists

Fernando Sahmkow 7 лет назад
Родитель
Сommit
13d626fc21
2 измененных файлов с 2 добавлено и 4 удалено
  1. 2 2
      src/video_core/dma_pusher.cpp
  2. 0 2
      src/video_core/memory_manager.h

+ 2 - 2
src/video_core/dma_pusher.cpp

@@ -57,8 +57,8 @@ bool DmaPusher::Step() {
 
     // Push buffer non-empty, read a word
     command_headers.resize(command_list_header.size);
-    gpu.MemoryManager().ReadBlock(dma_get, command_headers.data(),
-                                  command_list_header.size * sizeof(u32));
+    gpu.MemoryManager().ReadBlockUnsafe(dma_get, command_headers.data(),
+                                        command_list_header.size * sizeof(u32));
 
     for (const CommandHeader& command_header : command_headers) {
 

+ 0 - 2
src/video_core/memory_manager.h

@@ -65,7 +65,6 @@ public:
     u8* GetPointer(GPUVAddr addr);
     const u8* GetPointer(GPUVAddr addr) const;
 
-
     /*
      * ReadBlock and WriteBlock are full read and write operations over virtual
      * GPU Memory. It's important to use these when GPU memory may not be continous
@@ -90,7 +89,6 @@ public:
     void WriteBlockUnsafe(GPUVAddr dest_addr, const void* src_buffer, const std::size_t size);
     void CopyBlockUnsafe(GPUVAddr dest_addr, GPUVAddr src_addr, const std::size_t size);
 
-
 private:
     using VMAMap = std::map<GPUVAddr, VirtualMemoryArea>;
     using VMAHandle = VMAMap::const_iterator;