Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/i915/overlay: Remove redundant overlay->active

Now that we have overlay->frontbuffer_bits, overlay->active
is completely redundant, so remove it.

Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20260226100738.29997-5-ville.syrjala@linux.intel.com

+1 -5
+1 -5
drivers/gpu/drm/i915/display/intel_overlay.c
··· 194 194 struct i915_vma *vma; 195 195 struct i915_vma *old_vma; 196 196 struct intel_frontbuffer *frontbuffer; 197 - bool active; 198 197 bool pfit_active; 199 198 u32 pfit_vscale_ratio; /* shifted-point number, (1<<12) == 1.0 */ 200 199 u32 color_key:24; ··· 259 260 struct intel_display *display = to_intel_display(drm); 260 261 struct intel_overlay *overlay = display->overlay; 261 262 262 - return overlay->active; 263 + return overlay->frontbuffer_bits; 263 264 } 264 265 265 266 /* overlay needs to be disable in OCMD reg */ ··· 282 283 return PTR_ERR(cs); 283 284 } 284 285 285 - overlay->active = true; 286 286 overlay->frontbuffer_bits = frontbuffer_bits; 287 287 288 288 if (display->platform.i830) ··· 390 392 391 393 intel_overlay_release_old_vma(overlay); 392 394 393 - overlay->active = false; 394 395 overlay->frontbuffer_bits = 0; 395 396 396 397 if (display->platform.i830) ··· 511 514 overlay->old_xscale = 0; 512 515 overlay->old_yscale = 0; 513 516 overlay->crtc = NULL; 514 - overlay->active = false; 515 517 overlay->frontbuffer_bits = 0; 516 518 } 517 519