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/amdgpu/drm | |
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/amdgpu/drm')
-rw-r--r-- | src/gallium/winsys/amdgpu/drm/amdgpu_cs.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c b/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c index 1302f293c26..1094c3f61c8 100644 --- a/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c +++ b/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c @@ -968,9 +968,9 @@ void amdgpu_cs_sync_flush(struct radeon_winsys_cs *rcs) DEBUG_GET_ONCE_BOOL_OPTION(noop, "RADEON_NOOP", false) -static void amdgpu_cs_flush(struct radeon_winsys_cs *rcs, - unsigned flags, - struct pipe_fence_handle **fence) +static int amdgpu_cs_flush(struct radeon_winsys_cs *rcs, + unsigned flags, + struct pipe_fence_handle **fence) { struct amdgpu_cs *cs = amdgpu_cs(rcs); struct amdgpu_winsys *ws = cs->ctx->ws; @@ -1069,6 +1069,7 @@ static void amdgpu_cs_flush(struct radeon_winsys_cs *rcs, amdgpu_get_new_ib(&ws->base, cs, IB_CONST_PREAMBLE); ws->num_cs_flushes++; + return 0; } static void amdgpu_cs_destroy(struct radeon_winsys_cs *rcs) |