mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
zink: document end-of-frame hack
Acked-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
parent
10439594ec
commit
e14c29b9f2
1 changed files with 8 additions and 0 deletions
|
|
@ -1133,6 +1133,14 @@ zink_flush(struct pipe_context *pctx,
|
|||
(struct zink_fence **)pfence,
|
||||
batch->fence);
|
||||
|
||||
/* HACK:
|
||||
* For some strange reason, we need to finish before presenting, or else
|
||||
* we start rendering on top of the back-buffer for the next frame. This
|
||||
* seems like a bug in the DRI-driver to me, because we really should
|
||||
* be properly protected by fences here, and the back-buffer should
|
||||
* either be swapped with the front-buffer, or blitted from. But for
|
||||
* some strange reason, neither of these things happen.
|
||||
*/
|
||||
if (flags & PIPE_FLUSH_END_OF_FRAME)
|
||||
pctx->screen->fence_finish(pctx->screen, pctx,
|
||||
(struct pipe_fence_handle *)batch->fence,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue