summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2015-11-10 14:49:17 -0700
committerBrian Paul <brianp@vmware.com>2015-11-12 11:21:25 -0700
commit3e74038280319cf02c55f3879d95d7c1aec210fe (patch)
tree0ae107b04c90e47c69be9198418d780914982ad6
parentf45b644e11127e07fe909f418d1c0e2ca3285743 (diff)
st/wgl: add a comment about recursive locking in stw_make_current()
Reviewed-by: Sinclair Yeh <syeh@vmware.com> Reviewed-by: Charmaine Lee <charmainel@vmware.com>
-rw-r--r--src/gallium/state_trackers/wgl/stw_context.c4
1 files changed, 4 insertions, 0 deletions
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);