summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/wgl
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2016-05-11 09:20:04 -0600
committerBrian Paul <brianp@vmware.com>2016-06-30 15:29:07 -0600
commiteb79b2b33117ea8fe6f463198322e7478be63a72 (patch)
tree4e6808b2416ac084d5368ea66f8f4db532f328a2 /src/gallium/state_trackers/wgl
parente0f4504adfa63abd9c9baa5f300c53d9b970aeef (diff)
st/wgl: make own_mutex() non-static
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src/gallium/state_trackers/wgl')
-rw-r--r--src/gallium/state_trackers/wgl/stw_st.c8
-rw-r--r--src/gallium/state_trackers/wgl/stw_st.h3
2 files changed, 7 insertions, 4 deletions
diff --git a/src/gallium/state_trackers/wgl/stw_st.c b/src/gallium/state_trackers/wgl/stw_st.c
index 20c2c8a09c..7806a2a10e 100644
--- a/src/gallium/state_trackers/wgl/stw_st.c
+++ b/src/gallium/state_trackers/wgl/stw_st.c
@@ -51,8 +51,8 @@ struct stw_st_framebuffer {
/**
* Is the given mutex held by the calling thread?
*/
-static bool
-own_mutex(const CRITICAL_SECTION *cs)
+bool
+stw_own_mutex(const CRITICAL_SECTION *cs)
{
// We can't compare OwningThread with our thread handle/id (see
// http://stackoverflow.com/a/12675635 ) but we can compare with the
@@ -182,7 +182,7 @@ stw_st_framebuffer_present_locked(HDC hdc,
struct stw_st_framebuffer *stwfb = stw_st_framebuffer(stfb);
struct pipe_resource *resource;
- assert(own_mutex(&stwfb->fb->mutex));
+ assert(stw_own_mutex(&stwfb->fb->mutex));
resource = stwfb->textures[statt];
if (resource) {
@@ -192,7 +192,7 @@ stw_st_framebuffer_present_locked(HDC hdc,
stw_framebuffer_unlock(stwfb->fb);
}
- assert(!own_mutex(&stwfb->fb->mutex));
+ assert(!stw_own_mutex(&stwfb->fb->mutex));
return TRUE;
}
diff --git a/src/gallium/state_trackers/wgl/stw_st.h b/src/gallium/state_trackers/wgl/stw_st.h
index 1c855a0a24..3b9ae75a0d 100644
--- a/src/gallium/state_trackers/wgl/stw_st.h
+++ b/src/gallium/state_trackers/wgl/stw_st.h
@@ -34,6 +34,9 @@
struct stw_framebuffer;
+bool
+stw_own_mutex(const CRITICAL_SECTION *cs);
+
struct st_api *
stw_st_create_api(void);