diff options
author | Marek Olšák <[email protected]> | 2016-07-13 15:16:20 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-07-14 22:00:54 +0200 |
commit | a7d84f7731b2095ed5dc4f741213fef60a55dcd3 (patch) | |
tree | f93899473bb239ca29009d876f5d5d30ae68ea05 /src/gallium/winsys/radeon | |
parent | b919100d6101c0bd7e15a187968af9a36b49e6de (diff) |
gallium/radeon: add a return value to cs_flush
Required by our UVD code.
Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/winsys/radeon')
-rw-r--r-- | src/gallium/winsys/radeon/drm/radeon_drm_cs.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_cs.c b/src/gallium/winsys/radeon/drm/radeon_drm_cs.c index ed34a2cb552..767c263a33d 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm_cs.c +++ b/src/gallium/winsys/radeon/drm/radeon_drm_cs.c @@ -471,9 +471,9 @@ void radeon_drm_cs_sync_flush(struct radeon_winsys_cs *rcs) DEBUG_GET_ONCE_BOOL_OPTION(noop, "RADEON_NOOP", false) -static void radeon_drm_cs_flush(struct radeon_winsys_cs *rcs, - unsigned flags, - struct pipe_fence_handle **fence) +static int radeon_drm_cs_flush(struct radeon_winsys_cs *rcs, + unsigned flags, + struct pipe_fence_handle **fence) { struct radeon_drm_cs *cs = radeon_drm_cs(rcs); struct radeon_cs_context *tmp; @@ -602,6 +602,7 @@ static void radeon_drm_cs_flush(struct radeon_winsys_cs *rcs, cs->base.current.cdw = 0; cs->ws->num_cs_flushes++; + return 0; } static void radeon_drm_cs_destroy(struct radeon_winsys_cs *rcs) |