egl/dri2: Refuse to add EGLConfigs with no supported surface types
authorAdam Jackson <ajax@redhat.com>
Tue, 10 Sep 2019 16:07:07 +0000 (12:07 -0400)
committerAdam Jackson <ajax@redhat.com>
Wed, 11 Sep 2019 18:11:40 +0000 (14:11 -0400)
commit7e0e53a077850ecb1ff86c481475f8fd79fb51fc
treec81b8dc0874cc645a7d476608990a474350d0eb2
parent96b592696f13be09621bc50be31a89fde54b18e2
egl/dri2: Refuse to add EGLConfigs with no supported surface types

For example, the surfaceless platform only supports pbuffers. If the
driver supports MSAA, we would still create a config, but it would have
no supported surface types. That's meaningless, so don't do it.

Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
src/egl/drivers/dri2/egl_dri2.c