[Mesa-dev] [PATCH mesa] egl: simplify dri_config conditionals
Emil Velikov
emil.l.velikov at gmail.com
Thu Jun 22 13:52:05 UTC 2017
On 21 June 2017 at 13:25, Eric Engestrom <eric.engestrom at imgtec.com> wrote:
> 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 at imgtec.com>
Thanks - I have an identical patch somewhere.
Reviewed-by: Emil Velikov <emil.velikov at collabora.com>
-Emil
More information about the mesa-dev
mailing list