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:

committed by
Marge Bot

parent
3de78fb3c8
commit
49b8f72e3d
@@ -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;
|
||||
|
Reference in New Issue
Block a user