diff options
author | Haitao Feng <haitao.feng@intel.com> | 2011-02-16 23:05:15 -0500 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2011-02-16 23:06:36 -0500 |
commit | f55d027ac2e0423eba5d0664cc36668520597703 (patch) | |
tree | 8c5fafb750ee47ab591d545cfd3365fcf510470f /src/egl/drivers/dri2/platform_drm.c | |
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 <haitao.feng@intel.com>
Diffstat (limited to 'src/egl/drivers/dri2/platform_drm.c')
-rw-r--r-- | src/egl/drivers/dri2/platform_drm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/egl/drivers/dri2/platform_drm.c b/src/egl/drivers/dri2/platform_drm.c index a25cad6d0c..3dab899dec 100644 --- a/src/egl/drivers/dri2/platform_drm.c +++ b/src/egl/drivers/dri2/platform_drm.c @@ -638,6 +638,8 @@ dri2_initialize_drm(_EGLDriver *drv, _EGLDisplay *disp) dri2_dpy = malloc(sizeof *dri2_dpy); if (!dri2_dpy) return _eglError(EGL_BAD_ALLOC, "eglInitialize"); + + memset(dri2_dpy, 0, sizeof *dri2_dpy); disp->DriverData = (void *) dri2_dpy; dri2_dpy->fd = (int) disp->PlatformDisplay; |