gallium/radeon: always flush asynchronously and wait after begin_new_cs
authorMarek Olšák <marek.olsak@amd.com>
Thu, 13 Apr 2017 21:46:59 +0000 (23:46 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Sun, 16 Apr 2017 23:22:11 +0000 (01:22 +0200)
commit2769dadb0fafdbafc98630fdf96924a3bb209ab7
treed9c0efc32df89769482bd89dc295e570935a7390
parentf05f0bb5cbc8b3b11342158b63e7e20f1f6f7c81
gallium/radeon: always flush asynchronously and wait after begin_new_cs

This hides the overhead of everything in the driver after the CS flush and
before returning from pipe_context::flush.
Only microbenchmarks will benefit.

+2% FPS for glxgears.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeon/r600_pipe_common.c
src/gallium/drivers/radeonsi/si_hw_context.c