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 <eric@igalia.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23398>
This commit is contained in:
committed by
Marge Bot
parent
659bace01a
commit
f2300eeb67
@@ -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
|
||||
|
||||
@@ -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 */
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user