Fix the sorting order in eglChooseConfig test
authorJianle Wang <jianle.wang@arm.com>
Sat, 9 May 2020 08:00:43 +0000 (16:00 +0800)
committerJianle Wang <jianle.wang@arm.com>
Mon, 6 Jul 2020 09:38:44 +0000 (05:38 -0400)
EGL_COLOR_COMPONENT_TYPE_EXT should be before EGL_COLOR_BUFFER_TYPE
in sorting.

Components: AOSP

VK-GL-CTS issue: 2370

Affects:
dEQP-EGL.functional.choose_config.color_component_type_ext.dont_care

Change-Id: Ic502f17c800dac9f889931eb71971366a5cdb392
(cherry picked from commit 137766c7c9b4f7dac80b90ebf6f9a032188afe0f)

modules/egl/teglChooseConfigReference.cpp

index 8657ee0..878adc7 100644 (file)
@@ -244,8 +244,8 @@ public:
                static const SurfaceConfig::CompareFunc compareFuncs[] =
                {
                        SurfaceConfig::compareCaveat,
-                       SurfaceConfig::compareColorBufferType,
                        SurfaceConfig::compareColorComponentType,
+                       SurfaceConfig::compareColorBufferType,
                        DE_NULL, // SurfaceConfig::compareColorBufferBits,
                        SurfaceConfig::compareAttributeSmaller<EGL_BUFFER_SIZE>,
                        SurfaceConfig::compareAttributeSmaller<EGL_SAMPLE_BUFFERS>,