drm/xe/guc: Add simple KLV decoder helpers

Instead of retrieving data from the KLV dwords manually, add
simple helpers that will do that together with sanity checks.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Michał Winiarski <michal.winiarski@intel.com>
Link: https://patch.msgid.link/20260916215827.13488-2-michal.wajdeczko@intel.com
This commit is contained in:
Michal Wajdeczko 2026-09-16 23:58:25 +02:00
commit 88d8752341
2 changed files with 83 additions and 0 deletions