diff options
author | Samuel Pitoiset <[email protected]> | 2017-01-27 14:35:22 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-01-30 13:44:19 +0100 |
commit | 5a6b1aadeadc66b802bd87f1201304d0c3188114 (patch) | |
tree | 28350cdbd44d4d0853d87d5afab01ef384cff0e6 | |
parent | db2b0210b13bffdb0cb0e06fa6f4b9208f66efff (diff) |
winsys/amdgpu: add one likely() call in amdgpu_cs_flush()
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
-rw-r--r-- | src/gallium/winsys/amdgpu/drm/amdgpu_cs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c b/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c index 0bc4ce941b0..789a5dbafa3 100644 --- a/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c +++ b/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c @@ -1142,9 +1142,9 @@ static int amdgpu_cs_flush(struct radeon_winsys_cs *rcs, } /* If the CS is not empty or overflowed.... */ - if (radeon_emitted(&cs->main.base, 0) && + if (likely(radeon_emitted(&cs->main.base, 0) && cs->main.base.current.cdw <= cs->main.base.current.max_dw && - !debug_get_option_noop()) { + !debug_get_option_noop())) { struct amdgpu_cs_context *cur = cs->csc; unsigned i, num_buffers; |