mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
kopper: pass the current context to dri_flush
passing the drawable's context leads to desync and crashing if the app is using multiple threads and multiple contexts Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16351>
This commit is contained in:
parent
3de78fb3c8
commit
49b8f72e3d
1 changed files with 1 additions and 1 deletions
|
|
@ -913,7 +913,7 @@ kopperSwapBuffers(__DRIdrawable *dPriv)
|
|||
return 0;
|
||||
|
||||
drawable->texture_stamp = dPriv->lastStamp - 1;
|
||||
dri_flush(dPriv->driContextPriv, dPriv, __DRI2_FLUSH_DRAWABLE | __DRI2_FLUSH_CONTEXT, __DRI2_THROTTLE_SWAPBUFFER);
|
||||
dri_flush(ctx->cPriv, dPriv, __DRI2_FLUSH_DRAWABLE | __DRI2_FLUSH_CONTEXT, __DRI2_THROTTLE_SWAPBUFFER);
|
||||
kopper_copy_to_front(ctx->st->pipe, dPriv, ptex);
|
||||
if (kdraw->is_window && !zink_kopper_check(ptex))
|
||||
return -1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue