mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
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:
committed by
Enrico Weigelt
parent
ca7e24d2a7
commit
1687c9a20f
@@ -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;
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user