xf86drmMode: simplify drm_property_type_is

No need to have two branches depending on DRM_MODE_PROP_EXTENDED_TYPE.
We can just use drmModeGetPropertyType instead.

This does introduce a slight change: previously, drm_property_type_is()
could be called with non-type flags such as IMMUTABLE. However no user
seems to do this (checked KWin/Mutter/Sway/Weston/Xorg).

Signed-off-by: Simon Ser <contact@emersion.fr>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
6 jobs for main in 30 seconds (queued for 8 seconds)
Status Name Job ID Coverage
  Containers
passed debian #14034977

00:00:09

 
  Build
passed meson-aarch64 #14034980

00:00:17

passed meson-armhf #14034981

00:00:17

passed meson-i386 #14034979

00:00:17

passed meson-ppc64el #14034982

00:00:17

passed meson-x86_64 #14034978

00:00:15