summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airliedfreedesktop.org>2005-12-30 11:18:04 +0000
committerDave Airlie <airliedfreedesktop.org>2005-12-30 11:18:04 +0000
commit8c137e2f94a5710e59676598fb2c3f00565834e1 (patch)
tree50a38d81ca56deeefe0f6fd50a23e174e8ff08ad
parentfb83a42d31d7d720a1e9d3bc809086f304e49a3c (diff)
fill out framebuffer egl stuff enable egl on R300
-rw-r--r--src/mesa/drivers/dri/radeon/server/radeon_egl.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/radeon/server/radeon_egl.c b/src/mesa/drivers/dri/radeon/server/radeon_egl.c
index 7b7057c6c5..2f6ea55903 100644
--- a/src/mesa/drivers/dri/radeon/server/radeon_egl.c
+++ b/src/mesa/drivers/dri/radeon/server/radeon_egl.c
@@ -46,12 +46,14 @@ static int
RADEONSetParam(driDisplay *disp, int param, int value)
{
drm_radeon_setparam_t sp;
-
+ int ret;
+
memset(&sp, 0, sizeof(sp));
sp.param = param;
sp.value = value;
- if (drmCommandWrite(disp->drmFD, DRM_RADEON_SETPARAM, &sp, sizeof(sp))) {
+ if ((ret=drmCommandWrite(disp->drmFD, DRM_RADEON_SETPARAM, &sp, sizeof(sp)))) {
+ fprintf(stderr,"Set param failed\n", ret);
return -1;
}
@@ -862,12 +864,14 @@ static int radeonInitFBDev( driDisplay *disp, RADEONDRIPtr pRADEONDRI )
fprintf(stderr, "==> Verify PCI BusID is correct in miniglx.conf\n");
return 0;
}
+#if 0
if (info->ChipFamily >= CHIP_FAMILY_R300) {
fprintf(stderr,
"Direct rendering not yet supported on "
"Radeon 9700 and newer cards\n");
return 0;
}
+#endif
#if 00
/* don't seem to need this here */
@@ -1038,6 +1042,10 @@ radeonInitialize(_EGLDriver *drv, EGLDisplay dpy, EGLint *major, EGLint *minor)
return EGL_FALSE;
framebuffer.base = display->pFB;
+ framebuffer.width = display->virtualWidth;
+ framebuffer.height = display->virtualHeight;
+ framebuffer.stride = display->virtualWidth;
+ framebuffer.size = display->fbSize;
radeonInitFBDev( display, framebuffer.dev_priv );
if (!_eglDRICreateDisplay(display, &framebuffer))