radv: Always enable syncobj when supported for all fences/semaphores.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 20 Oct 2019 17:15:24 +0000 (19:15 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 30 Oct 2019 10:57:07 +0000 (11:57 +0100)
This simplifies code for timeline semaphores by needing to support
less configurations.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_device.c

index e770bc634ff1f8f3038e6cb04d04bbfc4441d2c2..1e33ae350ffebc95fa9572e22d0abfeee5503f80 100644 (file)
@@ -2381,9 +2381,7 @@ VkResult radv_CreateDevice(
        device->dfsm_allowed = device->pbb_allowed &&
                               (device->instance->perftest_flags & RADV_PERFTEST_DFSM);
 
-#ifdef ANDROID
        device->always_use_syncobj = device->physical_device->rad_info.has_syncobj_wait_for_submit;
-#endif
 
        /* The maximum number of scratch waves. Scratch space isn't divided
         * evenly between CUs. The number is only a function of the number of CUs.