summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 841ef9e)
raw | patch | inline | side by side (parent: 841ef9e)
author | Jakob Bornecrantz <jakob@aurora.(none)> | |
Wed, 30 Jan 2008 15:16:10 +0000 (16:16 +0100) | ||
committer | Jakob Bornecrantz <jakob@aurora.(none)> | |
Wed, 30 Jan 2008 15:16:10 +0000 (16:16 +0100) |
linux-core/intel_display.c | patch | blob | history |
index 88cf653c09a10c95be7d0f00db6e2b18b2e66432..5b7a510b2a14b0b519bdfd9211e46a9cfe5d2dc9 100644 (file)
struct intel_crtc *intel_crtc = crtc->driver_private;
int pipe = intel_crtc->pipe;
uint32_t control = (pipe == 0) ? CURSOR_A_CONTROL : CURSOR_B_CONTROL;
+ uint32_t base = (pipe == 0) ? CURSOR_A_BASE : CURSOR_B_BASE;
uint32_t temp;
size_t adder;
temp |= CURSOR_MODE_DISABLE;
I915_WRITE(control, temp);
+ I915_WRITE(base, 0);
return 0;
}
DRM_DEBUG("cusror base %x\n", adder);
- I915_WRITE((pipe == 0) ? CURSOR_A_CONTROL : CURSOR_B_CONTROL, temp);
- I915_WRITE((pipe == 0) ? CURSOR_A_BASE : CURSOR_B_BASE, adder);
+ I915_WRITE(control, temp);
+ I915_WRITE(base, adder);
return 0;
}