gallium/util: replace pipe_mutex_unlock() with mtx_unlock()
[mesa.git] / src / gallium / winsys / nouveau / drm / nouveau_drm_winsys.c
index a2a9fd630f3ac7a49425b9fb5152ed63c3e577c7..4ca2d35ea33a551b67ff9c3723d81b74f4e82d40 100644 (file)
@@ -32,7 +32,7 @@ bool nouveau_drm_screen_unref(struct nouveau_screen *screen)
        assert(ret >= 0);
        if (ret == 0)
                util_hash_table_remove(fd_tab, intptr_to_pointer(screen->drm->fd));
-       pipe_mutex_unlock(nouveau_screen_mutex);
+       mtx_unlock(&nouveau_screen_mutex);
        return ret == 0;
 }
 
@@ -71,7 +71,7 @@ nouveau_drm_screen_create(int fd)
        if (!fd_tab) {
                fd_tab = util_hash_table_create(hash_fd, compare_fd);
                if (!fd_tab) {
-                       pipe_mutex_unlock(nouveau_screen_mutex);
+                       mtx_unlock(&nouveau_screen_mutex);
                        return NULL;
                }
        }
@@ -79,7 +79,7 @@ nouveau_drm_screen_create(int fd)
        screen = util_hash_table_get(fd_tab, intptr_to_pointer(fd));
        if (screen) {
                screen->refcount++;
-               pipe_mutex_unlock(nouveau_screen_mutex);
+               mtx_unlock(&nouveau_screen_mutex);
                return &screen->base;
        }
 
@@ -143,7 +143,7 @@ nouveau_drm_screen_create(int fd)
         */
        util_hash_table_set(fd_tab, intptr_to_pointer(dupfd), screen);
        screen->refcount = 1;
-       pipe_mutex_unlock(nouveau_screen_mutex);
+       mtx_unlock(&nouveau_screen_mutex);
        return &screen->base;
 
 err:
@@ -154,6 +154,6 @@ err:
                nouveau_drm_del(&drm);
                close(dupfd);
        }
-       pipe_mutex_unlock(nouveau_screen_mutex);
+       mtx_unlock(&nouveau_screen_mutex);
        return NULL;
 }