diff options
author | Dave Airlie <airlied@redhat.com> | 2016-09-06 12:50:14 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2016-09-13 10:26:40 +0200 |
commit | a52530a655438f03919d47f6edd11287efff47bb (patch) | |
tree | f9029640e162ee14df792ee1ce89bc12074f316c /dix | |
parent | 3fe4107643ba029dd48e3d12ec9bc97d07112300 (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.c | 9 |
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; +} |