From: Brian Paul Date: Tue, 10 Nov 2015 21:49:17 +0000 (-0700) Subject: st/wgl: add a comment about recursive locking in stw_make_current() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3e74038280319cf02c55f3879d95d7c1aec210fe;p=mesa.git st/wgl: add a comment about recursive locking in stw_make_current() Reviewed-by: Sinclair Yeh Reviewed-by: Charmaine Lee --- diff --git a/src/gallium/state_trackers/wgl/stw_context.c b/src/gallium/state_trackers/wgl/stw_context.c index 63877235408..5978ca63677 100644 --- a/src/gallium/state_trackers/wgl/stw_context.c +++ b/src/gallium/state_trackers/wgl/stw_context.c @@ -441,6 +441,10 @@ stw_make_current(HDC hdc, DHGLRC dhglrc) /* Bind the new framebuffer */ ctx->hdc = hdc; + /* Note: when we call this function we will wind up in the + * stw_st_framebuffer_validate_locked() function which will incur + * a recursive fb->mutex lock. + */ ret = stw_dev->stapi->make_current(stw_dev->stapi, ctx->st, fb->stfb, fb->stfb); stw_framebuffer_reference(&ctx->current_framebuffer, fb);