diff --git a/glamor/glamor.c b/glamor/glamor.c index 718cce3cf..49771ce9d 100644 --- a/glamor/glamor.c +++ b/glamor/glamor.c @@ -25,7 +25,7 @@ * */ -/** @file +/** @file glamor.c * This file covers the initialization and teardown of glamor, and has various * functions not responsible for performing rendering. */ @@ -35,3 +35,13 @@ #endif #include + +#include "glamor.h" + +/** Set up glamor for an already-configured GL context. */ +Bool +glamor_init(ScreenPtr screen) +{ + return Success; +} + diff --git a/glamor/glamor.h b/glamor/glamor.h index 7aa4a73dc..e6f303845 100644 --- a/glamor/glamor.h +++ b/glamor/glamor.h @@ -24,3 +24,17 @@ * Eric Anholt * */ + +#ifndef GLAMOR_H +#define GLAMOR_H + +#include "scrnintstr.h" +#include "pixmapstr.h" +#include "windowstr.h" +#include "gcstruct.h" +#include "picturestr.h" +#include "fb.h" + +#endif /* GLAMOR_H */ + +Bool glamor_init(ScreenPtr screen); diff --git a/hw/kdrive/ephyr/Makefile.am b/hw/kdrive/ephyr/Makefile.am index 79e950bb5..027db1364 100644 --- a/hw/kdrive/ephyr/Makefile.am +++ b/hw/kdrive/ephyr/Makefile.am @@ -24,7 +24,8 @@ bin_PROGRAMS = Xephyr HOSTX_SRCS = \ hostx.c \ - hostx.h + hostx.h \ + ephyr_host_glamor.c HOSTVIDEO_SRCS = \ ephyrvideo.c \ diff --git a/hw/kdrive/ephyr/ephyr_glamor.c b/hw/kdrive/ephyr/ephyr_glamor.c index f4fb3df05..2e2d946a9 100644 --- a/hw/kdrive/ephyr/ephyr_glamor.c +++ b/hw/kdrive/ephyr/ephyr_glamor.c @@ -1,5 +1,5 @@ /* - * Copyright © 2006 Intel Corporation + * Copyright © 2008 Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -30,7 +30,7 @@ #endif #include "ephyr.h" -/*#include "glamor.h"*/ +#include "glamor.h" /** * This function initializes EXA to use the fake acceleration implementation @@ -38,22 +38,29 @@ * correct driver with which to test changes to the EXA core. */ Bool -ephyr_glamor_init(ScreenPtr pScreen) +ephyr_glamor_init(ScreenPtr screen) { + KdScreenPriv(screen); + KdScreenInfo *kd_screen = pScreenPriv->screen; + + ephyr_glamor_host_create_context(kd_screen); + + glamor_init(screen); + return TRUE; } void -ephyr_glamor_enable(ScreenPtr pScreen) +ephyr_glamor_enable(ScreenPtr screen) { } void -ephyr_glamor_disable(ScreenPtr pScreen) +ephyr_glamor_disable(ScreenPtr screen) { } void -ephyr_glamor_fini(ScreenPtr pScreen) +ephyr_glamor_fini(ScreenPtr screen) { } diff --git a/hw/kdrive/ephyr/hostx.h b/hw/kdrive/ephyr/hostx.h index 42578576a..d5cb0faa6 100644 --- a/hw/kdrive/ephyr/hostx.h +++ b/hw/kdrive/ephyr/hostx.h @@ -261,4 +261,7 @@ int hostx_has_dri (void) ; int hostx_has_glx (void) ; #endif /* XF86DRI */ +/* ephyr_glamor_host.c */ +void ephyr_glamor_host_create_context(EphyrScreenInfo ephyr_screen); + #endif /*_XLIBS_STUFF_H_*/