UPSTREAM: drm/syncobj: Add a CREATE_SIGNALED flag

This requests that the driver create the sync object such that it
already has a signaled dma_fence attached.  Because we don't need
anything in particular (just something signaled), we use a dummy null
fence.  This is useful for Vulkan which has a similar flag that can be
passed to vkCreateFence.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
(cherry picked from commit 1fc08218ed2a42c86af5c905fe4c00885376a07e)

BUG=b:131212476
TEST=Run cts tests to confirm vulkan 1.1 enabled on eve:
android.graphics.cts.VulkanFeaturesTest#testVulkan1_1Requirements
android.graphics.cts.VulkanFeaturesTest#testVulkanHardwareFeatures

Change-Id: I3d391758e9de596286a124a3709e4e54a856b6f0
Signed-off-by: Nataraj Deshpande <nataraj.deshpande@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/1620038
Tested-by: Dmytro Chystiakov <dmytro.chystiakov@intel.com>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
2 files changed