commit | b81cfc73408b3d55772a56fbfa0e505b4da281a8 | [log] [tgz] |
---|---|---|
author | Eric Engestrom <eric.engestrom@imgtec.com> | Wed Jun 21 10:40:31 2017 +0100 |
committer | Eric Engestrom <eric.engestrom@imgtec.com> | Thu Jun 22 14:54:36 2017 +0100 |
tree | 1aaae171bec958a570de9f1819eb3a1a76e249bd | |
parent | bcd67b171152dfba2402de923a44dfe946e2684a [diff] |
egl: simplify dri_config conditionals In the same spirit as 858f2f2ae6 (egl/dri2: ease srgb __DRIconfig conditionals), let's merge dri_single_config and dri_double_config into a single dri_config[2]. This moves the `if (double) dri_double_config else dri_single_config` logic to `dri_config[double]`, reducing code duplication and making it easier to read. Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>