mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
winsys/amdgpu: add one likely() call in amdgpu_cs_flush()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
db2b0210b1
commit
5a6b1aadea
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue