diff options
author | Chia-I Wu <[email protected]> | 2011-08-05 14:36:14 +0900 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2011-08-28 21:56:22 +0800 |
commit | 58911b86a15676f116c693e84ea6b9ebabb906ed (patch) | |
tree | 612968f230b2ea4589dd25b770deb222ed82455e /src/egl/drivers/dri2/egl_dri2.h | |
parent | c8fed01c732fa20e1ae035ed5f7b6156a5d6ffe9 (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/egl_dri2.h')
-rw-r--r-- | src/egl/drivers/dri2/egl_dri2.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h index db93eec14ba..be272f9bb25 100644 --- a/src/egl/drivers/dri2/egl_dri2.h +++ b/src/egl/drivers/dri2/egl_dri2.h @@ -208,7 +208,8 @@ dri2_lookup_egl_image(__DRIscreen *screen, void *image, void *data); struct dri2_egl_config * dri2_add_config(_EGLDisplay *disp, const __DRIconfig *dri_config, int id, - int depth, EGLint surface_type, const EGLint *attr_list); + int depth, EGLint surface_type, const EGLint *attr_list, + const unsigned int *rgba_masks); _EGLImage * dri2_create_image_khr(_EGLDriver *drv, _EGLDisplay *disp, |