xf86-video-intel: src/drmmode_display.c
Kristian Høgsberg
krh at kemper.freedesktop.org
Mon Dec 15 13:01:03 PST 2008
src/drmmode_display.c | 18 +++++++-----------
1 file changed, 7 insertions(+), 11 deletions(-)
New commits:
commit e6479f96e5d8da39fcbb5376c4a66a1f924ec4e4
Author: Kristian Høgsberg <krh at redhat.com>
Date: Mon Dec 15 14:54:20 2008 -0500
Quiet some KMS warnings.
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index 186ff2d..a85eb06 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -214,7 +214,6 @@ drmmode_set_cursor_position (xf86CrtcPtr crtc, int x, int y)
static void
drmmode_load_cursor_argb (xf86CrtcPtr crtc, CARD32 *image)
{
- drmmode_crtc_private_ptr drmmode_crtc = crtc->driver_private;
ScrnInfoPtr pScrn = crtc->scrn;
I830Ptr pI830 = I830PTR(pScrn);
int ret;
@@ -318,21 +317,20 @@ drmmode_crtc_shadow_create(xf86CrtcPtr crtc, void *data, int width, int height)
static void
drmmode_crtc_shadow_destroy(xf86CrtcPtr crtc, PixmapPtr rotate_pixmap, void *data)
{
- drmmode_crtc_private_ptr drmmode_crtc = crtc->driver_private;
-
if (rotate_pixmap)
FreeScratchPixmapHeader(rotate_pixmap);
- if (data) {
#if 0
+ drmmode_crtc_private_ptr drmmode_crtc = crtc->driver_private;
+
+ if (data) {
/* Be sure to sync acceleration before the memory gets unbound. */
drmModeRmFB(drmmode->fd, drmmode_crtc->rotate_fb_id);
drmmode_crtc->rotate_fb_id = 0;
dri_bo_unreference(drmmode_crtc->rotate_bo);
drmmode_crtc->rotate_bo = NULL;
-#endif
}
-
+#endif
}
static const xf86CrtcFuncsRec drmmode_crtc_funcs = {
@@ -363,8 +361,6 @@ drmmode_crtc_init(ScrnInfoPtr pScrn, drmmode_ptr drmmode, int num)
{
xf86CrtcPtr crtc;
drmmode_crtc_private_ptr drmmode_crtc;
- I830Ptr pI830 = I830PTR(pScrn);
- int ret;
crtc = xf86CrtcCreate(pScrn, &drmmode_crtc_funcs);
if (crtc == NULL)
@@ -642,12 +638,12 @@ void drmmode_set_fb(ScrnInfoPtr scrn, drmmode_ptr drmmode, int width,
Bool drmmode_is_rotate_pixmap(ScrnInfoPtr pScrn, pointer pPixData, dri_bo **bo)
{
- xf86CrtcConfigPtr config = XF86_CRTC_CONFIG_PTR (pScrn);
- int i;
-
return FALSE;
#if 0
+ xf86CrtcConfigPtr config = XF86_CRTC_CONFIG_PTR (pScrn);
+ int i;
+
for (i = 0; i < config->num_crtc; i++) {
xf86CrtcPtr crtc = config->crtc[i];
drmmode_crtc_private_ptr drmmode_crtc = crtc->driver_private;
More information about the xorg-commit
mailing list