struct i915_vma *vma;
struct i915_vma *old_vma;
struct intel_frontbuffer *frontbuffer;
- bool active;
bool pfit_active;
u32 pfit_vscale_ratio; /* shifted-point number, (1<<12) == 1.0 */
u32 color_key:24;
struct intel_display *display = to_intel_display(drm);
struct intel_overlay *overlay = display->overlay;
- return overlay->active;
+ return overlay->frontbuffer_bits;
}
/* overlay needs to be disable in OCMD reg */
return PTR_ERR(cs);
}
- overlay->active = true;
overlay->frontbuffer_bits = frontbuffer_bits;
if (display->platform.i830)
intel_overlay_release_old_vma(overlay);
- overlay->active = false;
overlay->frontbuffer_bits = 0;
if (display->platform.i830)
overlay->old_xscale = 0;
overlay->old_yscale = 0;
overlay->crtc = NULL;
- overlay->active = false;
overlay->frontbuffer_bits = 0;
}