aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-07-27 16:05:40 +0200
committerSamuel Pitoiset <[email protected]>2017-07-28 11:20:34 +0200
commitca4d1def392249209a5980fadb1678ffba95b381 (patch)
tree80082a929a7caa49cc0d0bce218b6ea8e0a43f13 /src/mesa/state_tracker
parent28c7fbbe0fbd5c06db523140929f572e9c6e9dbe (diff)
mesa: drop fence type parameter from NewSyncObject()
This is useless. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_cb_syncobj.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/mesa/state_tracker/st_cb_syncobj.c b/src/mesa/state_tracker/st_cb_syncobj.c
index 7a4ba71b3e9..637fbe3b73a 100644
--- a/src/mesa/state_tracker/st_cb_syncobj.c
+++ b/src/mesa/state_tracker/st_cb_syncobj.c
@@ -45,17 +45,12 @@ struct st_sync_object {
};
-static struct gl_sync_object * st_new_sync_object(struct gl_context *ctx,
- GLenum type)
+static struct gl_sync_object *st_new_sync_object(struct gl_context *ctx)
{
- if (type == GL_SYNC_FENCE) {
- struct st_sync_object *so = CALLOC_STRUCT(st_sync_object);
+ struct st_sync_object *so = CALLOC_STRUCT(st_sync_object);
- mtx_init(&so->mutex, mtx_plain);
- return &so->b;
- } else {
- return NULL;
- }
+ mtx_init(&so->mutex, mtx_plain);
+ return &so->b;
}
static void st_delete_sync_object(struct gl_context *ctx,