public inbox for drm-ai-reviews@public-inbox.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH 0/1] drm/blend: size zpos array to active planes instead of total
@ 2026-05-01  0:12 Gustavo Piaz Da Silva
  2026-05-01  0:13 ` [PATCH 1/1] " Gustavo Piaz Da Silva
  2026-05-04 23:43 ` Claude Code Review Bot
  0 siblings, 2 replies; 4+ messages in thread
From: Gustavo Piaz Da Silva @ 2026-05-01  0:12 UTC (permalink / raw)
  To: dri-devel
  Cc: maarten.lankhorst, mripard, tzimmermann, airlied, simona,
	linux-kernel, Gustavo Piaz Da Silva

drm_atomic_helper_crtc_normalize_zpos() allocates a temporary
array sized by dev->mode_config.num_total_plane, which counts
all planes registered on the device. The function only operates
on planes active on the given CRTC, as described by
crtc_state->plane_mask.

Replace num_total_plane with hweight32(crtc_state->plane_mask)
to size the allocation to exactly the planes being processed.

Gustavo Piaz Da Silva (1):
  drm/blend: size zpos array to active planes instead of total

 drivers/gpu/drm/drm_blend.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-05-04 23:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-01  0:12 [PATCH 0/1] drm/blend: size zpos array to active planes instead of total Gustavo Piaz Da Silva
2026-05-01  0:13 ` [PATCH 1/1] " Gustavo Piaz Da Silva
2026-05-04 23:43   ` Claude review: " Claude Code Review Bot
2026-05-04 23:43 ` Claude Code Review Bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox