anv: Assume syncobj support
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 23 Mar 2021 18:58:12 +0000 (13:58 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 16 Jul 2021 21:12:21 +0000 (21:12 +0000)
commit3b363d5b552d4acca40251254edf5848654ea7bc
treea2de9d5ec8609af5dc1105786ab82d88ed2012f4
parenta62973580b7846f2213cbd2589e9473c26596683
anv: Assume syncobj support

Sync object for i915 support has been in upstream Linux since 4.14 which
is 3.5 years old at this point and, as far as we can tell, it also
exists in all the ChromeOS kernels.  Assuming it allows us to drop some
of our more gnarly synchronization fall-back paths.

At the time of merge, ChromeOS was on the following kernels:

 - kernel 3.18: SKL
 - kernel 4.4: BYT, KBL, APL
 - Kernel 4.14: BDW, GLK

All of the pre-4.14 kernels have had syncobj support back-ported.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Acked-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9777>
src/intel/vulkan/anv_device.c