gallium/util: replace pipe_mutex_unlock() with mtx_unlock()
[mesa.git] / src / gallium / drivers / svga / svga_resource_buffer_upload.c
index e41f47520e82d2112e8cd9abc3c35dc953c800e6..9d93b48fd3688540e2fac2d9df3dc9dfedcf5d9e 100644 (file)
@@ -646,7 +646,7 @@ svga_buffer_update_hw(struct svga_context *svga, struct svga_buffer *sbuf)
       assert(map);
       assert(!retry);
       if (!map) {
-        pipe_mutex_unlock(ss->swc_mutex);
+        mtx_unlock(&ss->swc_mutex);
          svga_buffer_destroy_hw_storage(ss, sbuf);
          return PIPE_ERROR;
       }
@@ -670,7 +670,7 @@ svga_buffer_update_hw(struct svga_context *svga, struct svga_buffer *sbuf)
          sbuf->swbuf = NULL;
       }
 
-      pipe_mutex_unlock(ss->swc_mutex);
+      mtx_unlock(&ss->swc_mutex);
    }
 
    return PIPE_OK;