update parallel rdp

This commit is contained in:
Logan McNaughton
2021-06-08 08:11:04 -06:00
parent 877624573d
commit 819ccbe803
2 changed files with 4 additions and 4 deletions
+1 -2
View File
@@ -56,12 +56,10 @@ void vk_blit(unsigned &width, unsigned &height)
RDP::VIScanoutBuffer scanout;
frontend->scanout_async_buffer(scanout, opts);
uint8_t* color_data = screen_get_texture_data();
if (!scanout.width || !scanout.height)
{
width = 0;
height = 0;
memset(color_data, 0, width * height * sizeof(uint32_t));
return;
}
@@ -69,6 +67,7 @@ void vk_blit(unsigned &width, unsigned &height)
height = scanout.height;
scanout.fence->wait();
uint8_t* color_data = screen_get_texture_data();
memcpy(color_data, device->map_host_buffer(*scanout.buffer, Vulkan::MEMORY_ACCESS_READ_BIT),
width * height * sizeof(uint32_t));
device->unmap_host_buffer(*scanout.buffer, Vulkan::MEMORY_ACCESS_READ_BIT);