st/dri: fix android fence regression
authorMarek Olšák <marek.olsak@amd.com>
Thu, 9 Nov 2017 19:12:07 +0000 (20:12 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 10 Nov 2017 16:17:13 +0000 (17:17 +0100)
commite456d4def5cb0cff3c243c267dd08ac17042e9e4
tree14a0e7ee911fec8fe18621bf4bc5478ae9d9934d
parente7972b89432600ebe38e6eb67b9b65c1f34dfdc1
st/dri: fix android fence regression

Fixes piglit - egl_khr_fence_sync/android_native tests.
Broken by 884a0b2a9e55d4c1ca39475b50d9af598d7d7280.

Introduce state-tracker flush flags, analogous to the pipe ones. Use
the former when with stapi->flush().

Fixes: 884a0b2a9e5 ("st/dri: use stapi flush instead of pipe flush
when creating fences")
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/include/state_tracker/st_api.h
src/gallium/state_trackers/dri/dri_helpers.c
src/mesa/state_tracker/st_manager.c