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;
}