Commit fc87a47c authored by Alon Levy's avatar Alon Levy

add config options (empty for now)

parent 141154b6
......@@ -83,6 +83,14 @@ typedef struct
typedef struct qxl_surface_t qxl_surface_t;
/*
* Config Options
*/
enum {
OPTION_COUNT,
};
struct _qxl_screen_t
{
/* These are the names QXL uses */
......@@ -159,6 +167,8 @@ struct _qxl_screen_t
/* Evacuated surfaces are stored here during VT switches */
void * vt_surfaces;
OptionInfoRec options[OPTION_COUNT + 1];
};
static inline uint64_t
......
......@@ -42,6 +42,10 @@
#endif
#define CHECK_POINT()
const OptionInfoRec DefaultOptions[] = {
{ -1, NULL, OPTV_NONE, {0}, FALSE }
};
int
qxl_garbage_collect (qxl_screen_t *qxl)
{
......@@ -1215,6 +1219,8 @@ qxl_pre_init(ScrnInfoPtr pScrn, int flags)
/* option parsing and card differentiation */
xf86CollectOptions(pScrn, NULL);
memcpy(qxl->options, DefaultOptions, sizeof(DefaultOptions));
xf86ProcessOptions(scrnIndex, pScrn->options, qxl->options);
if (!qxl_map_memory(qxl, scrnIndex))
goto out;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment