From f2300eeb67ada8fedcf3c6d6e106f7b522ad4293 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Thu, 1 Jun 2023 14:48:50 +0100 Subject: [PATCH] egl: protect the formatting in a couple of places These do no follow the normal rules, but it's done on purpose because it's easier to read like this. Signed-off-by: Eric Engestrom Reviewed-by: Adam Jackson Part-of: --- src/egl/drivers/dri2/egl_dri2.c | 2 ++ src/egl/main/eglconfig.c | 2 ++ src/egl/main/eglconfigdebug.c | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index b5a25dcc076..c71e9143e2e 100644 --- a/src/egl/drivers/dri2/egl_dri2.c +++ b/src/egl/drivers/dri2/egl_dri2.c @@ -82,6 +82,7 @@ static const struct dri2_pbuffer_visual { int rgba_shifts[4]; unsigned int rgba_sizes[4]; } dri2_pbuffer_visuals[] = { + /* clang-format off */ { "ABGR16F", __DRI_IMAGE_FORMAT_ABGR16161616F, @@ -124,6 +125,7 @@ static const struct dri2_pbuffer_visual { { 11, 5, 0, -1 }, { 5, 6, 5, 0 } }, + /* clang-format on */ }; static void diff --git a/src/egl/main/eglconfig.c b/src/egl/main/eglconfig.c index 60f6e8e5e4c..1f181b90a51 100644 --- a/src/egl/main/eglconfig.c +++ b/src/egl/main/eglconfig.c @@ -145,6 +145,7 @@ static const struct { EGLint default_value; } _eglValidationTable[] = { + /* clang-format off */ /* core */ { EGL_BUFFER_SIZE, ATTRIB_TYPE_INTEGER, ATTRIB_CRITERION_ATLEAST, @@ -258,6 +259,7 @@ static const struct { { EGL_COLOR_COMPONENT_TYPE_EXT, ATTRIB_TYPE_ENUM, ATTRIB_CRITERION_EXACT, EGL_COLOR_COMPONENT_TYPE_FIXED_EXT }, + /* clang-format on */ }; diff --git a/src/egl/main/eglconfigdebug.c b/src/egl/main/eglconfigdebug.c index 2e179936b9c..92c0e13e673 100644 --- a/src/egl/main/eglconfigdebug.c +++ b/src/egl/main/eglconfigdebug.c @@ -78,11 +78,13 @@ _printHeaderFormat(void) * supported * surfaces ------------- EGL_SURFACE_TYPE */ + /* clang-format off */ _eglLog(_EGL_DEBUG, "---------------"); _eglLog(_EGL_DEBUG, "Configurations:"); _eglLog(_EGL_DEBUG, "cho bf lv colourbuffer dp st ms vis cav bi renderable supported"); _eglLog(_EGL_DEBUG, "sen id sz l r g b a th cl ns b id eat nd gl es es2 es3 vg surfaces"); _eglLog(_EGL_DEBUG, "---------------"); + /* clang-format on */ } /* Append a formatted string to the buffer, up to the buffer size */