#ifndef INLINE_GALLIUM_H
#define INLINE_GALLIUM_H

/*
    *** Automatically generated from '/home/aros/ABIv0/Build/20110803/AROS/workbench/libs/gallium/gallium.conf'. Edits will be lost. ***
    Copyright © 1995-2011, The AROS Development Team. All rights reserved.
*/

/*
    Desc: Inline function for gallium
*/

#include <aros/libcall.h>
#include <exec/types.h>
#include <aros/preprocessor/variadic/cast2iptr.hpp>


static inline struct pipe_screen * __inline_Gallium_CreatePipeScreen(struct TagItem * __arg1, APTR __GalliumBase)
{
    return AROS_LC1(struct pipe_screen *, CreatePipeScreen,
        AROS_LCA(struct TagItem *,(__arg1),A0),
        struct Library *, (__GalliumBase), 5, Gallium    );
}

#define CreatePipeScreen(arg1) \
    __inline_Gallium_CreatePipeScreen((arg1), (APTR)GalliumBase)

#if !defined(NO_INLINE_STDARG) && !defined(GALLIUM_NO_INLINE_STDARG)
#define CreatePipeScreenTags(...) \
({ \
    IPTR __args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) }; \
    CreatePipeScreen((struct TagItem *)__args); \
})
#endif /* !NO_INLINE_STDARG */

static inline void __inline_Gallium_DestroyPipeScreen(struct pipe_screen * __arg1, APTR __GalliumBase)
{
    AROS_LC1NR(void, DestroyPipeScreen,
        AROS_LCA(struct pipe_screen *,(__arg1),A0),
        struct Library *, (__GalliumBase), 6, Gallium    );
}

#define DestroyPipeScreen(arg1) \
    __inline_Gallium_DestroyPipeScreen((arg1), (APTR)GalliumBase)

static inline void __inline_Gallium_BltPipeSurfaceRastPort(struct pipe_surface * __arg1, LONG __arg2, LONG __arg3, struct RastPort * __arg4, LONG __arg5, LONG __arg6, LONG __arg7, LONG __arg8, APTR __GalliumBase)
{
    AROS_LC8NR(void, BltPipeSurfaceRastPort,
        AROS_LCA(struct pipe_surface *,(__arg1),A0),
        AROS_LCA(LONG,(__arg2),D0),
        AROS_LCA(LONG,(__arg3),D1),
        AROS_LCA(struct RastPort *,(__arg4),A1),
        AROS_LCA(LONG,(__arg5),D2),
        AROS_LCA(LONG,(__arg6),D3),
        AROS_LCA(LONG,(__arg7),D4),
        AROS_LCA(LONG,(__arg8),D5),
        struct Library *, (__GalliumBase), 7, Gallium    );
}

#define BltPipeSurfaceRastPort(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) \
    __inline_Gallium_BltPipeSurfaceRastPort((arg1), (arg2), (arg3), (arg4), (arg5), (arg6), (arg7), (arg8), (APTR)GalliumBase)

static inline void __inline_Gallium_BltPipeResourceRastPort(struct pipe_resource * __arg1, LONG __arg2, LONG __arg3, struct RastPort * __arg4, LONG __arg5, LONG __arg6, LONG __arg7, LONG __arg8, APTR __GalliumBase)
{
    AROS_LC8NR(void, BltPipeResourceRastPort,
        AROS_LCA(struct pipe_resource *,(__arg1),A0),
        AROS_LCA(LONG,(__arg2),D0),
        AROS_LCA(LONG,(__arg3),D1),
        AROS_LCA(struct RastPort *,(__arg4),A1),
        AROS_LCA(LONG,(__arg5),D2),
        AROS_LCA(LONG,(__arg6),D3),
        AROS_LCA(LONG,(__arg7),D4),
        AROS_LCA(LONG,(__arg8),D5),
        struct Library *, (__GalliumBase), 8, Gallium    );
}

#define BltPipeResourceRastPort(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) \
    __inline_Gallium_BltPipeResourceRastPort((arg1), (arg2), (arg3), (arg4), (arg5), (arg6), (arg7), (arg8), (APTR)GalliumBase)

#endif /* INLINE_GALLIUM_H*/
