egl/dri2: ease srgb __DRIconfig conditionals
authorEmil Velikov <emil.l.velikov@gmail.com>
Sun, 13 Sep 2015 11:25:27 +0000 (12:25 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 7 Oct 2015 14:17:57 +0000 (15:17 +0100)
commit858f2f2ae6d72f338fdd6d544b0c733814e22724
tree9a443d5b82eb16e5727f6539b3c9d3f6173c1a23
parentb69cfbdf18fa64606a76761b20bc268f4ac731e5
egl/dri2: ease srgb __DRIconfig conditionals

One can simplify the if-else chain, by declaring the driconfigs as a
two sized array, whist using srgb as a index to the correct entry.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
src/egl/drivers/dri2/egl_dri2.c
src/egl/drivers/dri2/egl_dri2.h