expose the gfx drivers memory attributes via the gfx hidd attributes.
[AROS.git] / workbench / hidds / softpipe / softpipe_intern.h
blob7378bc8926970efbfa8a5c89caf11f229a9bbcbb
1 #ifndef _SOFTPIPE_INTERN_H
2 #define _SOFTPIPE_INTERN_H
4 /*
5 Copyright 2010-2019, The AROS Development Team. All rights reserved.
6 $Id$
7 */
9 #include "state_tracker/sw_winsys.h"
11 #include LC_LIBDEFS_FILE
13 #define CLID_Hidd_Gallium_Softpipe "hidd.gallium.softpipe"
15 // The object instance data is used as our winsys wrapper
16 struct HiddGalliumSoftpipeData
18 struct sw_winsys softpipe_winsys;
19 OOP_Object *softpipe_obj;
22 struct softpipestaticdata
24 OOP_Class *galliumclass;
25 OOP_AttrBase hiddGalliumAB;
26 struct Library *CyberGfxBase;
27 struct Library *UtilityBase;
30 LIBBASETYPE
32 struct Library LibNode;
33 struct softpipestaticdata sd;
36 #define METHOD(base, id, name) \
37 base ## __ ## id ## __ ## name (OOP_Class *cl, OOP_Object *o, struct p ## id ## _ ## name *msg)
39 #define BASE(lib) ((LIBBASETYPEPTR)(lib))
41 #define SD(cl) (&BASE(cl->UserData)->sd)
43 #endif