nouveau/headers: Add missing M2MF parsing and set it for subchan 2

Signed-off-by: Mary Guillemard <mary@mary.zone>
Fixes: 4bb256e5ac ("nouveau: Handle subchannels better in nv_push_print()")
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-08-20 20:39:29 +02:00
committed by Marge Bot
parent 2c5abf9512
commit 63cdad6bb7
+10
View File
@@ -79,6 +79,7 @@ vk_push_print(FILE *fp, const struct nv_push *push,
uint16_t curr_subchans[8] = {0};
curr_subchans[0] = devinfo->cls_eng3d;
curr_subchans[1] = devinfo->cls_compute;
curr_subchans[2] = devinfo->cls_m2mf;
curr_subchans[3] = 0x2d;
curr_subchans[4] = devinfo->cls_copy;
@@ -276,6 +277,15 @@ vk_push_print(FILE *fp, const struct nv_push *push,
else
P_DUMP_NVA0C0_MTHD_DATA(fp, mthd, value, "\t\t");
break;
case 0x39:
case 0x40:
if (cls_hi >= 0xa1)
P_DUMP_NVA140_MTHD_DATA(fp, mthd, value, "\t\t");
else if (cls_hi >= 0xa0)
P_DUMP_NVA040_MTHD_DATA(fp, mthd, value, "\t\t");
else if (cls_hi >= 0x90)
P_DUMP_NV9039_MTHD_DATA(fp, mthd, value, "\t\t");
break;
case 0x2d:
P_DUMP_NV902D_MTHD_DATA(fp, mthd, value, "\t\t");
break;