From 08983a9da3722689224a948d9d771e193853a5d9 Mon Sep 17 00:00:00 2001 From: starfrost013 Date: Mon, 17 Mar 2025 01:18:15 +0000 Subject: [PATCH] start actual notification code --- src/include/86box/nv/vid_nv3.h | 3 +++ src/video/nv/nv3/classes/nv3_class_shared_methods.c | 2 +- src/video/nv/nv3/subsystems/nv3_pgraph.c | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/include/86box/nv/vid_nv3.h b/src/include/86box/nv/vid_nv3.h index 49bc8c64e..957714799 100644 --- a/src/include/86box/nv/vid_nv3.h +++ b/src/include/86box/nv/vid_nv3.h @@ -1549,6 +1549,9 @@ void nv3_class_017_method(uint32_t name, uint32_t method_id, nv3_ramin_co void nv3_class_018_method(uint32_t name, uint32_t method_id, nv3_ramin_context_t context, nv3_grobj_t grobj); void nv3_class_01c_method(uint32_t name, uint32_t method_id, nv3_ramin_context_t context, nv3_grobj_t grobj); +// Notification Engine +void nv3_notify_if_needed(nv3_grobj_t grobj); + // NV3 PFIFO void nv3_pfifo_init(); uint32_t nv3_pfifo_read(uint32_t address); diff --git a/src/video/nv/nv3/classes/nv3_class_shared_methods.c b/src/video/nv/nv3/classes/nv3_class_shared_methods.c index 555a180e6..663214cec 100644 --- a/src/video/nv/nv3/classes/nv3_class_shared_methods.c +++ b/src/video/nv/nv3/classes/nv3_class_shared_methods.c @@ -39,7 +39,7 @@ void nv3_generic_method(uint32_t name, uint32_t method_id, nv3_ramin_context_t c } } -void nv3_notify() +void nv3_notify_if_needed(nv3_grobj_t grobj) { } \ No newline at end of file diff --git a/src/video/nv/nv3/subsystems/nv3_pgraph.c b/src/video/nv/nv3/subsystems/nv3_pgraph.c index 510d8c1d3..117a88733 100644 --- a/src/video/nv/nv3/subsystems/nv3_pgraph.c +++ b/src/video/nv/nv3/subsystems/nv3_pgraph.c @@ -588,6 +588,8 @@ void nv3_pgraph_arbitrate_method(uint32_t param, uint16_t method, uint8_t channe fatal("NV3 (nv3_pgraph_arbitrate_method): Attempted to execute method on invalid, or unimplemented, class ID %s", nv3_class_names[class_id]); return; } + + nv3_notify_if_needed(grobj); } /* Arbitrates graphics object submission to the right object types */