compilation fixes, don't know if runtime works
authorBrian Paul <brian.paul@tungstengraphics.com>
Mon, 19 Sep 2005 17:17:18 +0000 (17:17 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 19 Sep 2005 17:17:18 +0000 (17:17 +0000)
src/mesa/drivers/dri/fb/Makefile
src/mesa/drivers/dri/fb/fb_dri.c
src/mesa/drivers/dri/fb/fb_egl.c

index 12465c9f43b3e046b88b6c2b808f0bfcfe9d7bc3..bebacf8b27108228739279c52fff65496b88f063 100644 (file)
@@ -15,6 +15,9 @@ C_SOURCES = \
 
 ASM_SOURCES = 
 
+# XXX not 100% sure this is right
+WINDOW_SYSTEM = solo
+
 include ../Makefile.template
 
 symlinks:
index ee2509652617c7fcfab852cbd8ce1e9d16647bdc..6bbe49021bb3501f663a6c9950a6ff956b43b62a 100644 (file)
@@ -41,7 +41,7 @@
  *      that may not be valid everywhere.
  */
 
-/*#include "driver.h"*/
+#include "driver.h"
 #include "drm.h"
 #include "utils.h"
 #include "drirenderbuffer.h"
@@ -468,7 +468,7 @@ fbCreateBuffer( __DRIscreenPrivate *driScrnPriv,
                                    swDepth,
                                    swStencil,
                                    swAccum,
-                                   0,
+                                   swAlpha, /* or always zero? */
                                    GL_FALSE /* aux */);
       
       driDrawPriv->driverPrivate = mesa_framebuffer;
@@ -610,7 +610,8 @@ __driInitFBDev( struct DRIDriverContextRec *ctx )
       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,
@@ -622,7 +623,8 @@ __driInitFBDev( struct DRIDriverContextRec *ctx )
    }
    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:
    */
@@ -642,7 +644,7 @@ __driInitFBDev( struct DRIDriverContextRec *ctx )
    }
 
    fprintf(stderr, "[drm] framebuffer handle = 0x%08lx\n",
-           ctx->shared.hFrameBuffer);
+           (unsigned long) ctx->shared.hFrameBuffer);
 
    return 1;
 }
index 05148b445ccaaa265e53911529d8d62702ce5e4e..1b38b26c42dcd2909a1ffb7194f6bf4fa472497e 100644 (file)
@@ -83,7 +83,14 @@ typedef struct fb_context
 {
    _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