Version 0.1 allows to assume that the second
element of the IDirect3D* structures will
be a pointer to the internal nine vtable.
This is useful if the gallium nine user wants
to wrap some interfaces.
Signed-off-by: Axel Davy <axel.davy@ens.fr>
#define D3DADAPTER9DRM_NAME "drm"
/* current version */
#define D3DADAPTER9DRM_MAJOR 0
-#define D3DADAPTER9DRM_MINOR 0
+#define D3DADAPTER9DRM_MINOR 1
+
+/* version 0.0: Initial release
+ * 0.1: All IDirect3D objects can be assumed to have a pointer to the
+ * internal vtable in second position of the structure */
struct D3DAdapter9DRM
{
NineUnknown_AddRef(NineUnknown(This->device));
This->vtable = pParams->vtable;
+ This->vtable_internal = pParams->vtable;
This->guids = pParams->guids;
This->dtor = pParams->dtor;
struct NineUnknown
{
- /* pointer to vtable */
+ /* pointer to vtable (can be overriden outside gallium nine) */
void *vtable;
+ /* pointer to internal vtable */
+ void *vtable_internal;
int32_t refs; /* external reference count */
int32_t bind; /* internal bind count */