diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2015-02-25 14:29:03 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2015-02-25 14:29:03 +0000 |
commit | 2b978c71e4a9f54e728fb8abf2734c260ee74916 (patch) | |
tree | f707208fc70706dfb6abb36be9b551e132d9f4f1 /tools | |
parent | 6bf6b4b7509768d10bf31128ce6e52cb060fd177 (diff) |
tools/intel-virtual-output: Use xcb_dri3_id
xcb exports the extension structs for querying whether they exist and
sharing the results.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/virtual.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/virtual.c b/tools/virtual.c index 3bcd0576..883cbf2b 100644 --- a/tools/virtual.c +++ b/tools/virtual.c @@ -387,11 +387,10 @@ static int dri3_query_version(Display *dpy, int *major, int *minor) static int dri3_exists(Display *dpy) { - xcb_extension_t dri3 = { "DRI3", 0 }; const xcb_query_extension_reply_t *ext; int major, minor; - ext = xcb_get_extension_data(XGetXCBConnection(dpy), &dri3); + ext = xcb_get_extension_data(XGetXCBConnection(dpy), &xcb_dri3_id); if (ext == NULL || !ext->present) return 0; |