nouveau/headers: Handle Ampere A GPFIFO in dumper

GPFIFO class changed a bit with the years and some
things doesn't parse well on those traces so let's allow to decode with
Ampere A GPFIFO if we are decoding Ampere or later.

Signed-off-by: Mary Guillemard <mary@mary.zone>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36093>
This commit is contained in:
Mary Guillemard 2025-07-21 17:34:34 +02:00 committed by Marge Bot
parent 8b87207135
commit 2c5abf9512

View file

@ -20,6 +20,7 @@
#include "nv_push_clc1b5.h"
#include "nv_push_clc397.h"
#include "nv_push_clc3c0.h"
#include "nv_push_clc56f.h"
#include "nv_push_clc597.h"
#include "nv_push_clc5b5.h"
#include "nv_push_clc5c0.h"
@ -166,7 +167,10 @@ vk_push_print(FILE *fp, const struct nv_push *push,
while (count--) {
if (!is_tert) {
if (mthd < 0x100) {
mthd_name = P_PARSE_NV906F_MTHD(mthd);
if (devinfo->cls_eng3d >= 0xc597)
mthd_name = P_PARSE_NVC56F_MTHD(mthd);
else
mthd_name = P_PARSE_NV906F_MTHD(mthd);
} else {
int class_id = curr_subchans[subchan];
int cls_lo = class_id & 0xff;