egl: directly access static members instead of using _egl{Get,Set}ConfigKey()
authorEric Engestrom <eric@engestrom.ch>
Thu, 13 Feb 2020 15:53:03 +0000 (15:53 +0000)
committerEric Engestrom <eric@engestrom.ch>
Fri, 14 Feb 2020 18:03:07 +0000 (18:03 +0000)
commit7bee388fb50d1bf6fc63f7898ad189c7891a10a1
tree7139047922d05c2723bfca806e001f7069f125fc
parent946eacbafb47c8b94d47e7c9d2a8b02fff5a22fa
egl: directly access static members instead of using _egl{Get,Set}ConfigKey()

This function is meant for when the attribute is unknown at compile-time
(eg. user-specified), but in all these cases it is much simpler to just
read/write the member directly.

Suggested-by: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3816>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3816>
src/egl/drivers/dri2/egl_dri2.c
src/egl/drivers/dri2/platform_x11.c
src/egl/drivers/haiku/egl_haiku.cpp