diff options
author | Dave Airlie <airlied@redhat.com> | 2008-02-15 16:42:44 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-02-15 16:42:44 +1000 |
commit | 088b38382962a9dccca59a53af2444a1fe8bc18f (patch) | |
tree | 981c916ffa7cc397a14569d0a5321ef5c7e83ed7 /linux-core | |
parent | 222092a1a810b67b014ad6881f0c028ec6563329 (diff) |
fb: fixup the offset by getting it from the right place
Diffstat (limited to 'linux-core')
-rw-r--r-- | linux-core/drm_crtc.c | 1 | ||||
-rw-r--r-- | linux-core/intel_display.c | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/linux-core/drm_crtc.c b/linux-core/drm_crtc.c index 3a0dd9c8..aceb31b4 100644 --- a/linux-core/drm_crtc.c +++ b/linux-core/drm_crtc.c @@ -1754,7 +1754,6 @@ int drm_mode_addfb(struct drm_device *dev, fb->pitch = r->pitch; fb->bits_per_pixel = r->bpp; fb->depth = r->depth; - fb->offset = bo->offset; fb->bo = bo; r->buffer_id = fb->id; diff --git a/linux-core/intel_display.c b/linux-core/intel_display.c index db3aee83..6a9d9808 100644 --- a/linux-core/intel_display.c +++ b/linux-core/intel_display.c @@ -370,7 +370,7 @@ intel_pipe_set_base(struct drm_crtc *crtc, int x, int y) int dspbase = (pipe == 0 ? DSPABASE : DSPBBASE); int dspsurf = (pipe == 0 ? DSPASURF : DSPBSURF); - Start = crtc->fb->offset; + Start = crtc->fb->bo->offset; Offset = y * crtc->fb->pitch + x * (crtc->fb->bits_per_pixel / 8); DRM_DEBUG("Writing base %08lX %08lX %d %d\n", Start, Offset, x, y); @@ -814,6 +814,7 @@ static void intel_crtc_mode_set(struct drm_crtc *crtc, else dspcntr |= DISPPLANE_16BPP; break; + case 24: case 32: dspcntr |= DISPPLANE_32BPP_NO_ALPHA; break; |