summaryrefslogtreecommitdiffstats
path: root/src/egl/drivers/dri2/platform_drm.c
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2011-08-05 14:36:14 +0900
committerChia-I Wu <[email protected]>2011-08-28 21:56:22 +0800
commit58911b86a15676f116c693e84ea6b9ebabb906ed (patch)
tree612968f230b2ea4589dd25b770deb222ed82455e /src/egl/drivers/dri2/platform_drm.c
parentc8fed01c732fa20e1ae035ed5f7b6156a5d6ffe9 (diff)
egl_dri2: allow RGBA masks to be specified for matching
Add rgba_masks to dri2_add_config. When it is non-NULL, the DRI config is accepted only when the offsets and sizes of the its channels match rgba_mask. Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/egl/drivers/dri2/platform_drm.c')
-rw-r--r--src/egl/drivers/dri2/platform_drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egl/drivers/dri2/platform_drm.c b/src/egl/drivers/dri2/platform_drm.c
index 04b10e279ec..e2c8dab16bc 100644
--- a/src/egl/drivers/dri2/platform_drm.c
+++ b/src/egl/drivers/dri2/platform_drm.c
@@ -150,7 +150,7 @@ dri2_initialize_drm(_EGLDriver *drv, _EGLDisplay *disp)
for (i = 0; dri2_dpy->driver_configs[i]; i++)
dri2_add_config(disp, dri2_dpy->driver_configs[i],
- i + 1, 0, 0, NULL);
+ i + 1, 0, 0, NULL, NULL);
drv->API.CreateImageKHR = dri2_drm_create_image_khr;