st/wgl: add a comment about recursive locking in stw_make_current()
authorBrian Paul <brianp@vmware.com>
Tue, 10 Nov 2015 21:49:17 +0000 (14:49 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 12 Nov 2015 18:21:25 +0000 (11:21 -0700)
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/state_trackers/wgl/stw_context.c

index 63877235408d1549c47178cf76b581528cafd32f..5978ca6367754a792d0c5653ac32168c9edda8fd 100644 (file)
@@ -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);