st/nine: Bump num of backbuffers for tearfree thread_submit

Running some high fps benchmarks, thread_submit gets
subpar fps with the option tearfree_discard.
Increasing the number of backbuffers fixes it.

Signed-off-by: Axel Davy <davyaxel0@gmail.com>
Acked-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10160>
This commit is contained in:
Axel Davy 2021-03-08 18:44:32 +01:00 committed by Marge Bot
parent 53f4766a3e
commit 062c4cc0b9

View file

@ -1314,6 +1314,9 @@ NineSwapChain9_GetBackBufferCountForParams( struct NineSwapChain9 *This,
* the Xserver will hold 4 buffers. */
else if (!This->actx->thread_submit && count < 5)
count = 5;
/* Somehow this cases needs 5 with thread_submit, or else you get a small performance hit */
if (This->actx->tearfree_discard && count < 5)
count = 5;
}
}