modesetting: provide dummy hooks for shadow
Since in some wierd cases the server can call these without checking they exist. Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
34a571c5b9
commit
ac34281b8a
|
@ -547,6 +547,17 @@ drmmode_set_scanout_pixmap(xf86CrtcPtr crtc, PixmapPtr ppix)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
static void *drmmode_shadow_allocate(xf86CrtcPtr crtc, int width, int height)
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
static PixmapPtr drmmode_shadow_create(xf86CrtcPtr crtc, void *data, int width,
|
||||||
|
int height)
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
static const xf86CrtcFuncsRec drmmode_crtc_funcs = {
|
static const xf86CrtcFuncsRec drmmode_crtc_funcs = {
|
||||||
.dpms = drmmode_crtc_dpms,
|
.dpms = drmmode_crtc_dpms,
|
||||||
.set_mode_major = drmmode_set_mode_major,
|
.set_mode_major = drmmode_set_mode_major,
|
||||||
|
@ -561,6 +572,8 @@ static const xf86CrtcFuncsRec drmmode_crtc_funcs = {
|
||||||
#ifdef MODESETTING_OUTPUT_SLAVE_SUPPORT
|
#ifdef MODESETTING_OUTPUT_SLAVE_SUPPORT
|
||||||
.set_scanout_pixmap = drmmode_set_scanout_pixmap,
|
.set_scanout_pixmap = drmmode_set_scanout_pixmap,
|
||||||
#endif
|
#endif
|
||||||
|
.shadow_allocate = drmmode_shadow_allocate,
|
||||||
|
.shadow_create = drmmode_shadow_create,
|
||||||
};
|
};
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue