radeon: stop caching mode resources

This is step one towards MST connector hotplug support,
it stop caching the mode resources structure, and
just passes a pointer to it around.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
radeon: move output name creation to its own function

The secondary indent is deliberate to make the next patch more
parseable for mst support.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
radeon: add support for DP 1.2 display hotplug (v2)

This allows for dynamic creation of conneectors when the
kernel tells us.

v2: fix dpms off crash

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Prefer drmModeSetCursor2 over drmModeSetCursor

The former includes information about the position of the hotspot within
the cursor image.

Copied from xf86-video-modesetting.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
radeon/dri3: implement DRI3 support

This patch enable DRI3 for EXA and Glamor configurations.

Signed-off-by: David Heidelberger <david.heidelberger@ixit.cz>
Signed-off-by: Axel Davy <axel.davy@ens.fr>