mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
treewide: replace PICT_a1r5g5b5 by PIXMAN_a1r5g5b5
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
889ded74be
commit
840a4ceabe
@@ -184,7 +184,7 @@ glamor_get_tex_format_type_from_pictformat(ScreenPtr pScreen,
|
||||
break;
|
||||
|
||||
case PIXMAN_x1r5g5b5:
|
||||
case PICT_a1r5g5b5:
|
||||
case PIXMAN_a1r5g5b5:
|
||||
if (!glamor_priv->is_gles) {
|
||||
*tex_format = GL_BGRA;
|
||||
*tex_type = GL_UNSIGNED_SHORT_1_5_5_5_REV;
|
||||
|
||||
@@ -864,7 +864,7 @@ glamor_render_format_is_supported(PicturePtr picture)
|
||||
case PIXMAN_a8r8g8b8:
|
||||
case PIXMAN_x8r8g8b8:
|
||||
return storage_format == PIXMAN_a8r8g8b8 || storage_format == PIXMAN_x8r8g8b8;
|
||||
case PICT_a1r5g5b5:
|
||||
case PIXMAN_a1r5g5b5:
|
||||
return storage_format == PIXMAN_x1r5g5b5;
|
||||
default:
|
||||
return picture->format == storage_format;
|
||||
|
||||
@@ -261,7 +261,7 @@ PictureCreateDefaultFormats(ScreenPtr pScreen, int *nformatp)
|
||||
}
|
||||
/* depth 16 formats */
|
||||
if (pDepth->depth >= 16) {
|
||||
addFormat(formats, &nformats, PICT_a1r5g5b5, pDepth->depth);
|
||||
addFormat(formats, &nformats, PIXMAN_a1r5g5b5, pDepth->depth);
|
||||
addFormat(formats, &nformats, PIXMAN_a1b5g5r5, pDepth->depth);
|
||||
addFormat(formats, &nformats, PIXMAN_r5g6b5, pDepth->depth);
|
||||
addFormat(formats, &nformats, PIXMAN_b5g6r5, pDepth->depth);
|
||||
|
||||
Reference in New Issue
Block a user