update parallel rdp

This commit is contained in:
Logan McNaughton
2022-08-16 20:53:10 -06:00
parent 0ee78f4ccd
commit 8668b83f84
3 changed files with 16 additions and 2 deletions
+9 -1
View File
@@ -31,6 +31,8 @@ bool vk_vi_aa, vk_vi_scale, vk_dither_filter;
bool vk_interlacing;
bool skip_swap_clear;
static uint64_t signal;
static const unsigned cmd_len_lut[64] = {
1, 1, 1, 1, 1, 1, 1, 1, 4, 6, 12, 14, 12, 14, 20, 22,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
@@ -386,7 +388,7 @@ void vk_process_commands()
{
// For synchronous RDP:
if (vk_synchronous && processor)
processor->wait_for_timeline(processor->signal_timeline());
signal = processor->signal_timeline();
*gfx.MI_INTR_REG |= DP_INTERRUPT;
*GET_GFX_INFO(DPC_STATUS_REG) &= ~(DP_STATUS_PIPE_BUSY | DP_STATUS_START_GCLK);
gfx.CheckInterrupts();
@@ -401,6 +403,12 @@ void vk_process_commands()
*GET_GFX_INFO(DPC_STATUS_REG) |= DP_STATUS_CBUF_READY;
}
void vk_full_sync()
{
if (vk_synchronous && processor)
processor->wait_for_timeline(signal);
}
void vk_resize()
{
QT_WSIPlatform* platform = (QT_WSIPlatform*)&wsi->get_platform();