replace PICT_FORMAT_TYPE by PIXMAN_FORMAT_TYPE

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-06 12:52:57 +02:00
committed by Enrico Weigelt
parent f104b52412
commit 8e79291b74
2 changed files with 3 additions and 3 deletions

View File

@@ -960,7 +960,7 @@ vmwgfx_copy_prepare(struct saa_driver *driver,
if (!vmwgfx_hw_accel_stage(src_pixmap, 0, XA_FLAG_RENDER_TARGET, 0))
return FALSE;
} else {
if (PICT_FORMAT_TYPE(src_vpix->base.src_format) != PICT_TYPE_ARGB ||
if (PIXMAN_FORMAT_TYPE(src_vpix->base.src_format) != PICT_TYPE_ARGB ||
!vmwgfx_hw_composite_src_stage(src_pixmap, src_vpix->base.src_format))
return FALSE;
}
@@ -969,7 +969,7 @@ vmwgfx_copy_prepare(struct saa_driver *driver,
if (!vmwgfx_hw_accel_stage(dst_pixmap, 0, XA_FLAG_RENDER_TARGET, 0))
return FALSE;
} else {
if (PICT_FORMAT_TYPE(dst_vpix->base.dst_format) != PICT_TYPE_ARGB ||
if (PIXMAN_FORMAT_TYPE(dst_vpix->base.dst_format) != PICT_TYPE_ARGB ||
!vmwgfx_hw_composite_dst_stage(dst_pixmap, dst_vpix->base.dst_format))
return FALSE;
}

View File

@@ -95,7 +95,7 @@ vmwgfx_xa_surface_redefine(struct vmwgfx_saa_pixmap *vpix,
*/
enum xa_formats vmwgfx_xa_format(PictFormatShort format)
{
uint32_t ptype = PICT_FORMAT_TYPE(format);
uint32_t ptype = PIXMAN_FORMAT_TYPE(format);
if (ptype >= vmwgfx_stype_map_size ||
vmwgfx_stype_map[ptype] == 0 ||