* that may not be valid everywhere.
*/
-/*#include "driver.h"*/
+#include "driver.h"
#include "drm.h"
#include "utils.h"
#include "drirenderbuffer.h"
swDepth,
swStencil,
swAccum,
- 0,
+ swAlpha, /* or always zero? */
GL_FALSE /* aux */);
driDrawPriv->driverPrivate = mesa_framebuffer;
return 0;
}
fprintf(stderr, "[drm] added %d byte SAREA at 0x%08lx\n",
- ctx->shared.SAREASize, ctx->shared.hSAREA);
+ ctx->shared.SAREASize,
+ (unsigned long) ctx->shared.hSAREA);
if (drmMap( ctx->drmFD,
ctx->shared.hSAREA,
}
memset(ctx->pSAREA, 0, ctx->shared.SAREASize);
fprintf(stderr, "[drm] mapped SAREA 0x%08lx to %p, size %d\n",
- ctx->shared.hSAREA, ctx->pSAREA, ctx->shared.SAREASize);
+ (unsigned long) ctx->shared.hSAREA, ctx->pSAREA,
+ ctx->shared.SAREASize);
/* Need to AddMap the framebuffer and mmio regions here:
*/
}
fprintf(stderr, "[drm] framebuffer handle = 0x%08lx\n",
- ctx->shared.hFrameBuffer);
+ (unsigned long) ctx->shared.hFrameBuffer);
return 1;
}
{
_EGLContext Base; /* base class/object */
GLcontext *glCtx;
-} fbContext;
+ struct {
+ __DRIcontextPrivate *context;
+ __DRIscreenPrivate *screen;
+ __DRIdrawablePrivate *drawable; /* drawable bound to this ctx */
+ } dri;
+} fbContext, *fbContextPtr;
+
+#define FB_CONTEXT(ctx) ((fbContextPtr)(ctx->DriverCtx))
static EGLBoolean