nouveau/push: add support for m2mf/i2mf to dumper
This will be used to dump nvc0 command buffers. Reviewed-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29542>
This commit is contained in:
@@ -5,12 +5,15 @@
|
||||
#include <inttypes.h>
|
||||
|
||||
#include "nv_push_cl902d.h"
|
||||
#include "nv_push_cl9039.h"
|
||||
#include "nv_push_cl906f.h"
|
||||
#include "nv_push_cl9097.h"
|
||||
#include "nv_push_cl90b5.h"
|
||||
#include "nv_push_cla097.h"
|
||||
#include "nv_push_cla0b5.h"
|
||||
#include "nv_push_cla040.h"
|
||||
#include "nv_push_cla0c0.h"
|
||||
#include "nv_push_cla140.h"
|
||||
#include "nv_push_clb197.h"
|
||||
#include "nv_push_clc0c0.h"
|
||||
#include "nv_push_clc1b5.h"
|
||||
@@ -184,6 +187,14 @@ vk_push_print(FILE *fp, const struct nv_push *push,
|
||||
else
|
||||
mthd_name = P_PARSE_NVA0C0_MTHD(mthd);
|
||||
break;
|
||||
case 2:
|
||||
if (devinfo->cls_m2mf >= 0xa140)
|
||||
mthd_name = P_PARSE_NVA140_MTHD(mthd);
|
||||
else if (devinfo->cls_m2mf >= 0xa040)
|
||||
mthd_name = P_PARSE_NVA040_MTHD(mthd);
|
||||
else if (devinfo->cls_m2mf >= 0x9039)
|
||||
mthd_name = P_PARSE_NV9039_MTHD(mthd);
|
||||
break;
|
||||
case 3:
|
||||
mthd_name = P_PARSE_NV902D_MTHD(mthd);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user