summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nouveau/nouveau_fence.c
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2017-01-16 16:25:19 +0000
committerEmil Velikov <[email protected]>2017-01-18 16:01:15 +0000
commit9c5003996ce770d0a377d6323a7ebef237de5513 (patch)
tree055eba7806ef2d4b3bef828ecab442d56baede07 /src/gallium/drivers/nouveau/nouveau_fence.c
parentaf4a298719e7b70cae6592c923ffbed9d4dc3678 (diff)
nouveau: remove always false argument in nouveau_fence_new()
No point in having the extra argument considering that it's effectively unused since the function was introduced. Cc: Ilia Mirkin <[email protected]> Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/nouveau_fence.c')
-rw-r--r--src/gallium/drivers/nouveau/nouveau_fence.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/gallium/drivers/nouveau/nouveau_fence.c b/src/gallium/drivers/nouveau/nouveau_fence.c
index 691553ae7e4..6c299cbc6a5 100644
--- a/src/gallium/drivers/nouveau/nouveau_fence.c
+++ b/src/gallium/drivers/nouveau/nouveau_fence.c
@@ -30,8 +30,7 @@
#endif
bool
-nouveau_fence_new(struct nouveau_screen *screen, struct nouveau_fence **fence,
- bool emit)
+nouveau_fence_new(struct nouveau_screen *screen, struct nouveau_fence **fence)
{
*fence = CALLOC_STRUCT(nouveau_fence);
if (!*fence)
@@ -41,9 +40,6 @@ nouveau_fence_new(struct nouveau_screen *screen, struct nouveau_fence **fence,
(*fence)->ref = 1;
LIST_INITHEAD(&(*fence)->work);
- if (emit)
- nouveau_fence_emit(*fence);
-
return true;
}
@@ -242,7 +238,7 @@ nouveau_fence_next(struct nouveau_screen *screen)
nouveau_fence_ref(NULL, &screen->fence.current);
- nouveau_fence_new(screen, &screen->fence.current, false);
+ nouveau_fence_new(screen, &screen->fence.current);
}
void