nvk: Implement cmd_flush_wait_dep for 2D engine

This commit is contained in:
Mel Henning 2025-11-25 18:26:54 -05:00
parent 268ef76470
commit 7f299331ab

View file

@ -22,6 +22,7 @@
#include "clb097.h"
#include "clcb97.h"
#include "nv_push_cl902d.h"
#include "nv_push_cl906f.h"
#include "nv_push_cla16f.h"
#include "nv_push_cl9097.h"
@ -598,6 +599,11 @@ nvk_cmd_flush_wait_dep(struct nvk_cmd_buffer *cmd,
* a WFI from the channel switch.
*/
switch (nvk_cmd_buffer_last_subchannel(cmd)) {
case SUBC_NV902D: {
struct nv_push *p = nvk_cmd_buffer_push(cmd, 2);
P_IMMD(p, NV902D, WAIT_FOR_IDLE, 0);
break;
}
case SUBC_NV9097: {
struct nv_push *p = nvk_cmd_buffer_push(cmd, 2);
P_IMMD(p, NV9097, WAIT_FOR_IDLE, 0);