gallium: simplify throttle implementation
authorJames Xiong <james.xiong@intel.com>
Mon, 14 Oct 2019 08:05:40 +0000 (10:05 +0200)
committerMichel Dänzer <mdaenzer@redhat.com>
Mon, 14 Oct 2019 08:05:40 +0000 (10:05 +0200)
commita65e29ccb261f3c127c49e73d0da92124234668f
tree82228199903503051a1488641d4be76b6b9e27c3
parentea92273cea88b964c6aec45061e74a9ff7339825
gallium: simplify throttle implementation

All gallium drivers currently set MAX_FRAME_IN_FLIGHT to either 1
or 0, which means that the drivers either throttle on the previous
render or don't throttle, the current implementation is more
complicated than necessary and can be simplified.

Signed-off-by: James Xiong <james.xiong@intel.com>
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/state_trackers/dri/dri2.c
src/gallium/state_trackers/dri/dri_drawable.c
src/gallium/state_trackers/dri/dri_drawable.h
src/gallium/state_trackers/dri/dri_screen.h