treewide: replace PICT_a2r10g10b10 by PIXMAN_a2r10g10b10

Try not to use old compat macros anymore, use the real ones instead.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-08-05 20:23:06 +02:00
committed by Enrico Weigelt
parent ca7e24d2a7
commit 1687c9a20f
3 changed files with 3 additions and 3 deletions

View File

@@ -139,7 +139,7 @@ glamor_get_tex_format_type_from_pictformat(ScreenPtr pScreen,
break;
case PIXMAN_x2r10g10b10:
case PICT_a2r10g10b10:
case PIXMAN_a2r10g10b10:
if (!glamor_priv->is_gles) {
*tex_format = GL_BGRA;
*tex_type = GL_UNSIGNED_INT_2_10_10_10_REV;

View File

@@ -859,7 +859,7 @@ glamor_render_format_is_supported(PicturePtr picture)
storage_format = f->render_format;
switch (picture->format) {
case PICT_a2r10g10b10:
case PIXMAN_a2r10g10b10:
return storage_format == PIXMAN_x2r10g10b10;
case PIXMAN_a8r8g8b8:
case PIXMAN_x8r8g8b8:

View File

@@ -275,7 +275,7 @@ PictureCreateDefaultFormats(ScreenPtr pScreen, int *nformatp)
addFormat(formats, &nformats, PIXMAN_x8b8g8r8, pDepth->depth);
}
if (pDepth->depth >= 30) {
addFormat(formats, &nformats, PICT_a2r10g10b10, pDepth->depth);
addFormat(formats, &nformats, PIXMAN_a2r10g10b10, pDepth->depth);
addFormat(formats, &nformats, PIXMAN_x2r10g10b10, pDepth->depth);
addFormat(formats, &nformats, PICT_a2b10g10r10, pDepth->depth);
addFormat(formats, &nformats, PIXMAN_x2b10g10r10, pDepth->depth);