diff options
author | Haitao Feng <[email protected]> | 2011-02-16 23:05:15 -0500 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2011-02-16 23:06:36 -0500 |
commit | f55d027ac2e0423eba5d0664cc36668520597703 (patch) | |
tree | 8c5fafb750ee47ab591d545cfd3365fcf510470f /src/egl/drivers/dri2/egl_dri2.h | |
parent | 231bf886dae9c7df0ae3e16acee904024a08824f (diff) |
egl_dri2: add swrast
This enables the egl_dri2 driver to load swrast driver
for software rendering. It could be used when hardware
dri2 drivers are not available, such as in VM.
Signed-off-by: Haitao Feng <[email protected]>
Diffstat (limited to 'src/egl/drivers/dri2/egl_dri2.h')
-rw-r--r-- | src/egl/drivers/dri2/egl_dri2.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h index 6f5a69cf579..235e30df3d8 100644 --- a/src/egl/drivers/dri2/egl_dri2.h +++ b/src/egl/drivers/dri2/egl_dri2.h @@ -71,6 +71,7 @@ struct dri2_egl_display void *driver; __DRIcoreExtension *core; __DRIdri2Extension *dri2; + __DRIswrastExtension *swrast; __DRI2flushExtension *flush; __DRItexBufferExtension *tex_buffer; __DRIimageExtension *image; @@ -79,7 +80,8 @@ struct dri2_egl_display char *device_name; char *driver_name; - __DRIdri2LoaderExtension dri2_loader_extension; + __DRIdri2LoaderExtension dri2_loader_extension; + __DRIswrastLoaderExtension swrast_loader_extension; const __DRIextension *extensions[3]; #ifdef HAVE_WAYLAND_PLATFORM struct wl_egl_display *wl_dpy; @@ -118,6 +120,12 @@ struct dri2_egl_surface xcb_xfixes_region_t region; int have_fake_front; int swap_interval; + + int depth; + int bytes_per_pixel; + xcb_gcontext_t gc; + xcb_gcontext_t swapgc; + enum dri2_surface_type type; #ifdef HAVE_WAYLAND_PLATFORM struct wl_egl_window *wl_win; |