use fb pitch and fix up some whitespace
parent
f50eec752c
commit
3e994a56be
|
@ -350,7 +350,7 @@ intel_pipe_set_base(struct drm_crtc *crtc, int x, int y)
|
||||||
int dspsurf = (pipe == 0 ? DSPASURF : DSPBSURF);
|
int dspsurf = (pipe == 0 ? DSPASURF : DSPBSURF);
|
||||||
|
|
||||||
Start = crtc->fb->offset + dev_priv->baseaddr;
|
Start = crtc->fb->offset + dev_priv->baseaddr;
|
||||||
Offset = ((y * crtc->fb->width + x) * (crtc->fb->bits_per_pixel / 8));
|
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);
|
DRM_DEBUG("Writing base %08lX %08lX %d %d\n", Start, Offset, x, y);
|
||||||
if (IS_I965G(dev)) {
|
if (IS_I965G(dev)) {
|
||||||
|
@ -536,8 +536,6 @@ static void intel_crtc_prepare (struct drm_crtc *crtc)
|
||||||
static void intel_crtc_commit (struct drm_crtc *crtc)
|
static void intel_crtc_commit (struct drm_crtc *crtc)
|
||||||
{
|
{
|
||||||
crtc->funcs->dpms(crtc, DPMSModeOn);
|
crtc->funcs->dpms(crtc, DPMSModeOn);
|
||||||
// if (crtc->scrn->pScreen != NULL)
|
|
||||||
// xf86_reload_cursors (crtc->scrn->pScreen);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void intel_output_prepare (struct drm_output *output)
|
void intel_output_prepare (struct drm_output *output)
|
||||||
|
|
Loading…
Reference in New Issue