summaryrefslogtreecommitdiff
path: root/dix
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2016-09-06 12:50:14 +0200
committerHans de Goede <hdegoede@redhat.com>2016-09-13 10:26:40 +0200
commita52530a655438f03919d47f6edd11287efff47bb (patch)
treef9029640e162ee14df792ee1ce89bc12074f316c /dix
parent3fe4107643ba029dd48e3d12ec9bc97d07112300 (diff)
dix: Add dixPrivatesCreated helper function
This is a preparation patch for adding prime hw-cursor support. Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Keith Packard <keithp@keithp.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Diffstat (limited to 'dix')
-rw-r--r--dix/privates.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/dix/privates.c b/dix/privates.c
index 969d0141c..478f52cbe 100644
--- a/dix/privates.c
+++ b/dix/privates.c
@@ -783,3 +783,12 @@ dixResetPrivates(void)
global_keys[t].allocated = 0;
}
}
+
+Bool
+dixPrivatesCreated(DevPrivateType type)
+{
+ if (global_keys[type].created)
+ return TRUE;
+ else
+ return FALSE;
+}