DRI_CONF_ALLOW_LARGE_TEXTURES(1)
DRI_CONF_SECTION_END DRI_CONF_END;
-const GLuint __driNConfigOptions = 4;
+const uint __driNConfigOptions = 4;
#ifdef USE_NEW_INTERFACE
static PFNGLXCREATECONTEXTMODES create_context_modes = NULL;
fprintf(stderr, "*** Memory : 0x%x\n", gDRIPriv->mem);
}
+
#if 0
static void
intelPrintSAREA(const drmI830Sarea * sarea)
#endif
-
/**
* Use the information in the sarea to update the screen parameters
* related to screen rotation. Needs to be called locked.
sarea->front_handle,
intelScreen->front.size,
(drmAddress *) & intelScreen->front.map) != 0) {
- _mesa_problem(NULL, "drmMap(frontbuffer) failed!");
+ fprintf(stderr, "drmMap(frontbuffer) failed!\n");
return;
}
}
-
-GLboolean
+boolean
intelCreatePools(__DRIscreenPrivate * sPriv)
{
unsigned batchPoolSize = 1024*1024;
}
-static GLboolean
+static boolean
intelInitDriver(__DRIscreenPrivate * sPriv)
{
struct intel_screen *intelScreen;
/**
* This is called when we need to set up GL rendering to a new X window.
*/
-static GLboolean
+static boolean
intelCreateBuffer(__DRIscreenPrivate * driScrnPriv,
__DRIdrawablePrivate * driDrawPriv,
- const __GLcontextModes * mesaVis, GLboolean isPixmap)
+ const __GLcontextModes * visual, boolean isPixmap)
{
if (isPixmap) {
return GL_FALSE; /* not implemented */
if (!intelfb)
return GL_FALSE;
- intelfb->stfb = st_create_framebuffer(mesaVis, GL_TRUE, (void*) intelfb);
+ intelfb->stfb = st_create_framebuffer(visual, GL_TRUE, (void*) intelfb);
if (!intelfb->stfb) {
free(intelfb);
return GL_FALSE;
static void
-intelSetTexOffset(__DRIcontext *pDRICtx, GLint texname,
- unsigned long long offset, GLint depth, GLuint pitch)
+intelSetTexOffset(__DRIcontext *pDRICtx, int texname,
+ unsigned long long offset, int depth, uint pitch)
{
abort();
#if 0
static __GLcontextModes *
intelFillInModes(unsigned pixel_bits, unsigned depth_bits,
- unsigned stencil_bits, GLboolean have_back_buffer)
+ unsigned stencil_bits, boolean have_back_buffer)
{
__GLcontextModes *modes;
__GLcontextModes *m;
(dri_priv->cpp == 2) ? 16 : 24,
(dri_priv->cpp == 2) ? 0 : 8, 1);
- /* Calling driInitExtensions here, with a NULL context pointer, does not actually
- * enable the extensions. It just makes sure that all the dispatch offsets for all
- * the extensions that *might* be enables are known. This is needed because the
- * dispatch offsets need to be known when _mesa_context_create is called, but we can't
- * enable the extensions until we have a context pointer.
+ /* Calling driInitExtensions here, with a NULL context pointer,
+ * does not actually enable the extensions. It just makes sure
+ * that all the dispatch offsets for all the extensions that
+ * *might* be enables are known. This is needed because the
+ * dispatch offsets need to be known when _mesa_context_create
+ * is called, but we can't enable the extensions until we have a
+ * context pointer.
*
* Hello chicken. Hello egg. How are you two today?
*/
extern void intelDestroyContext(__DRIcontextPrivate * driContextPriv);
-extern GLboolean intelUnbindContext(__DRIcontextPrivate * driContextPriv);
+extern boolean intelUnbindContext(__DRIcontextPrivate * driContextPriv);
-extern GLboolean
+extern boolean
intelMakeCurrent(__DRIcontextPrivate * driContextPriv,
__DRIdrawablePrivate * driDrawPriv,
__DRIdrawablePrivate * driReadPriv);
-extern GLboolean
+extern boolean
intelCreatePools(__DRIscreenPrivate *sPriv);
-extern GLboolean
-intelCreateContext(const __GLcontextModes * mesaVis,
+extern boolean
+intelCreateContext(const __GLcontextModes * visual,
__DRIcontextPrivate * driContextPriv,
void *sharedContextPrivate);