drm/panic: Pass global module parameters to drm_panic_dispatch()

Set the panic type and QR version in draw_panic_plane() as a single
point of truth. Pass the values into the individual drawing functions.

In the test case, always create a QR code with version 40 (i.e., the
highest supported version).

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patch.msgid.link/20260911124540.279841-7-tzimmermann@suse.de
This commit is contained in:
Thomas Zimmermann 2026-09-11 14:43:59 +02:00
commit f57d778a7a
2 changed files with 25 additions and 16 deletions