Use PictFormatShort instead of enum _PictFormatShort

The raw enum is being dropped from the Xserver and aliased to
pixmap_format_code_t.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-08-04 19:32:29 +02:00
committed by Enrico Weigelt
parent 2bc72aa03f
commit d671cd96ef
2 changed files with 6 additions and 16 deletions

View File

@@ -85,8 +85,7 @@ vmwgfx_create_hw(struct vmwgfx_saa *vsaa,
* vmwgfx_xa_surface.c
*/
enum xa_formats
vmwgfx_xa_format(enum _PictFormatShort format);
enum xa_formats vmwgfx_xa_format(PictFormatShort format);
Bool
vmwgfx_hw_validate(PixmapPtr pixmap, RegionPtr region);
Bool
@@ -94,12 +93,8 @@ vmwgfx_hw_dri2_stage(PixmapPtr pixmap, unsigned int depth);
Bool
vmwgfx_hw_accel_stage(PixmapPtr pixmap, unsigned int depth,
uint32_t add_flags, uint32_t remove_flags);
Bool
vmwgfx_hw_composite_src_stage(PixmapPtr pixmap,
enum _PictFormatShort pict_format);
Bool
vmwgfx_hw_composite_dst_stage(PixmapPtr pixmap,
enum _PictFormatShort pict_format);
Bool vmwgfx_hw_composite_src_stage(PixmapPtr pixmap, PictFormatShort pict_format);
Bool vmwgfx_hw_composite_dst_stage(PixmapPtr pixmap, PictFormatShort pict_format);
Bool
vmwgfx_hw_commit(PixmapPtr pixmap);

View File

@@ -93,8 +93,7 @@ vmwgfx_xa_surface_redefine(struct vmwgfx_saa_pixmap *vpix,
/*
* Create an xa format from a PICT format.
*/
enum xa_formats
vmwgfx_xa_format(enum _PictFormatShort format)
enum xa_formats vmwgfx_xa_format(PictFormatShort format)
{
uint32_t ptype = PICT_FORMAT_TYPE(format);
@@ -167,9 +166,7 @@ vmwgfx_old_format_compatible(enum xa_formats format,
/*
* Choose format and flags for a composite dst surface.
*/
Bool
vmwgfx_hw_composite_dst_stage(PixmapPtr pixmap,
enum _PictFormatShort pict_format)
Bool vmwgfx_hw_composite_dst_stage(PixmapPtr pixmap, PictFormatShort pict_format)
{
struct vmwgfx_saa *vsaa =
to_vmwgfx_saa(saa_get_driver(pixmap->drawable.pScreen));
@@ -202,9 +199,7 @@ vmwgfx_hw_composite_dst_stage(PixmapPtr pixmap,
/*
* Choose format and flags for a composite src surface.
*/
Bool
vmwgfx_hw_composite_src_stage(PixmapPtr pixmap,
enum _PictFormatShort pict_format)
Bool vmwgfx_hw_composite_src_stage(PixmapPtr pixmap, PictFormatShort pict_format)
{
struct vmwgfx_saa *vsaa =
to_vmwgfx_saa(saa_get_driver(pixmap->drawable.pScreen));