diff options
author | Eric Engestrom <[email protected]> | 2018-02-28 16:08:54 +0000 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2018-03-05 15:14:36 +0000 |
commit | b98c905a463a1915fd15861ad2d0af180ad605ac (patch) | |
tree | b6dff29bc1f34c8bb0ee577c30542e66824b6df1 /src/egl/drivers | |
parent | 40abffb295de49818e6f544fe8a5392e1726b3c8 (diff) |
gbm: give a name to rgba fields
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Daniel Stone <[email protected]>
Diffstat (limited to 'src/egl/drivers')
-rw-r--r-- | src/egl/drivers/dri2/platform_drm.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/egl/drivers/dri2/platform_drm.c b/src/egl/drivers/dri2/platform_drm.c index 01fa1f11b95..dc4efea9103 100644 --- a/src/egl/drivers/dri2/platform_drm.c +++ b/src/egl/drivers/dri2/platform_drm.c @@ -118,10 +118,10 @@ dri2_drm_config_is_compatible(struct dri2_egl_display *dri2_dpy, if (i == dri2_dpy->gbm_dri->num_visuals) return false; - if (red != visual->rgba_masks[0] || - green != visual->rgba_masks[1] || - blue != visual->rgba_masks[2] || - (alpha && visual->rgba_masks[3] && alpha != visual->rgba_masks[3])) { + if (red != visual->rgba_masks.red || + green != visual->rgba_masks.green || + blue != visual->rgba_masks.blue || + (alpha && visual->rgba_masks.alpha && alpha != visual->rgba_masks.alpha)) { return false; } @@ -638,10 +638,10 @@ drm_add_configs_for_visuals(_EGLDriver *drv, _EGLDisplay *disp) for (unsigned j = 0; j < num_visuals; j++) { struct dri2_egl_config *dri2_conf; - if (visuals[j].rgba_masks[0] != red || - visuals[j].rgba_masks[1] != green || - visuals[j].rgba_masks[2] != blue || - visuals[j].rgba_masks[3] != alpha) + if (visuals[j].rgba_masks.red != red || + visuals[j].rgba_masks.green != green || + visuals[j].rgba_masks.blue != blue || + visuals[j].rgba_masks.alpha != alpha) continue; const EGLint attr_list[] = { |