Merge pull request #11863 from german77/buffer
service: ipc: Add third read buffer index
This commit is contained in:
		| @@ -27,10 +27,12 @@ namespace { | |||||||
| static thread_local std::array read_buffer_data_a{ | static thread_local std::array read_buffer_data_a{ | ||||||
|     Common::ScratchBuffer<u8>(), |     Common::ScratchBuffer<u8>(), | ||||||
|     Common::ScratchBuffer<u8>(), |     Common::ScratchBuffer<u8>(), | ||||||
|  |     Common::ScratchBuffer<u8>(), | ||||||
| }; | }; | ||||||
| static thread_local std::array read_buffer_data_x{ | static thread_local std::array read_buffer_data_x{ | ||||||
|     Common::ScratchBuffer<u8>(), |     Common::ScratchBuffer<u8>(), | ||||||
|     Common::ScratchBuffer<u8>(), |     Common::ScratchBuffer<u8>(), | ||||||
|  |     Common::ScratchBuffer<u8>(), | ||||||
| }; | }; | ||||||
| } // Anonymous namespace | } // Anonymous namespace | ||||||
|  |  | ||||||
| @@ -343,6 +345,7 @@ std::span<const u8> HLERequestContext::ReadBufferA(std::size_t buffer_index) con | |||||||
|     static thread_local std::array read_buffer_a{ |     static thread_local std::array read_buffer_a{ | ||||||
|         Core::Memory::CpuGuestMemory<u8, Core::Memory::GuestMemoryFlags::SafeRead>(memory, 0, 0), |         Core::Memory::CpuGuestMemory<u8, Core::Memory::GuestMemoryFlags::SafeRead>(memory, 0, 0), | ||||||
|         Core::Memory::CpuGuestMemory<u8, Core::Memory::GuestMemoryFlags::SafeRead>(memory, 0, 0), |         Core::Memory::CpuGuestMemory<u8, Core::Memory::GuestMemoryFlags::SafeRead>(memory, 0, 0), | ||||||
|  |         Core::Memory::CpuGuestMemory<u8, Core::Memory::GuestMemoryFlags::SafeRead>(memory, 0, 0), | ||||||
|     }; |     }; | ||||||
|  |  | ||||||
|     ASSERT_OR_EXECUTE_MSG( |     ASSERT_OR_EXECUTE_MSG( | ||||||
| @@ -358,6 +361,7 @@ std::span<const u8> HLERequestContext::ReadBufferX(std::size_t buffer_index) con | |||||||
|     static thread_local std::array read_buffer_x{ |     static thread_local std::array read_buffer_x{ | ||||||
|         Core::Memory::CpuGuestMemory<u8, Core::Memory::GuestMemoryFlags::SafeRead>(memory, 0, 0), |         Core::Memory::CpuGuestMemory<u8, Core::Memory::GuestMemoryFlags::SafeRead>(memory, 0, 0), | ||||||
|         Core::Memory::CpuGuestMemory<u8, Core::Memory::GuestMemoryFlags::SafeRead>(memory, 0, 0), |         Core::Memory::CpuGuestMemory<u8, Core::Memory::GuestMemoryFlags::SafeRead>(memory, 0, 0), | ||||||
|  |         Core::Memory::CpuGuestMemory<u8, Core::Memory::GuestMemoryFlags::SafeRead>(memory, 0, 0), | ||||||
|     }; |     }; | ||||||
|  |  | ||||||
|     ASSERT_OR_EXECUTE_MSG( |     ASSERT_OR_EXECUTE_MSG( | ||||||
| @@ -373,10 +377,12 @@ std::span<const u8> HLERequestContext::ReadBuffer(std::size_t buffer_index) cons | |||||||
|     static thread_local std::array read_buffer_a{ |     static thread_local std::array read_buffer_a{ | ||||||
|         Core::Memory::CpuGuestMemory<u8, Core::Memory::GuestMemoryFlags::SafeRead>(memory, 0, 0), |         Core::Memory::CpuGuestMemory<u8, Core::Memory::GuestMemoryFlags::SafeRead>(memory, 0, 0), | ||||||
|         Core::Memory::CpuGuestMemory<u8, Core::Memory::GuestMemoryFlags::SafeRead>(memory, 0, 0), |         Core::Memory::CpuGuestMemory<u8, Core::Memory::GuestMemoryFlags::SafeRead>(memory, 0, 0), | ||||||
|  |         Core::Memory::CpuGuestMemory<u8, Core::Memory::GuestMemoryFlags::SafeRead>(memory, 0, 0), | ||||||
|     }; |     }; | ||||||
|     static thread_local std::array read_buffer_x{ |     static thread_local std::array read_buffer_x{ | ||||||
|         Core::Memory::CpuGuestMemory<u8, Core::Memory::GuestMemoryFlags::SafeRead>(memory, 0, 0), |         Core::Memory::CpuGuestMemory<u8, Core::Memory::GuestMemoryFlags::SafeRead>(memory, 0, 0), | ||||||
|         Core::Memory::CpuGuestMemory<u8, Core::Memory::GuestMemoryFlags::SafeRead>(memory, 0, 0), |         Core::Memory::CpuGuestMemory<u8, Core::Memory::GuestMemoryFlags::SafeRead>(memory, 0, 0), | ||||||
|  |         Core::Memory::CpuGuestMemory<u8, Core::Memory::GuestMemoryFlags::SafeRead>(memory, 0, 0), | ||||||
|     }; |     }; | ||||||
|  |  | ||||||
|     const bool is_buffer_a{BufferDescriptorA().size() > buffer_index && |     const bool is_buffer_a{BufferDescriptorA().size() > buffer_index && | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user