It's easy to check (unless the kernel was compiled without config in procfs, which it probably wasn't):
$ zgrep CONFIG_DRM_PANIC_SCREEN_QR_CODE /proc/config.gz
CONFIG_DRM_PANIC_SCREEN_QR_CODE=y