|
@@ -2959,4 +2959,28 @@ gs_stagesurf_t *gs_stagesurface_create_nv12(uint32_t width, uint32_t height)
|
|
|
return NULL;
|
|
|
}
|
|
|
|
|
|
+void gs_register_loss_callbacks(const struct gs_device_loss *callbacks)
|
|
|
+{
|
|
|
+ graphics_t *graphics = thread_graphics;
|
|
|
+
|
|
|
+ if (!gs_valid("gs_register_loss_callbacks"))
|
|
|
+ return;
|
|
|
+
|
|
|
+ if (graphics->exports.device_register_loss_callbacks)
|
|
|
+ graphics->exports.device_register_loss_callbacks(
|
|
|
+ graphics->device, callbacks);
|
|
|
+}
|
|
|
+
|
|
|
+void gs_unregister_loss_callbacks(void *data)
|
|
|
+{
|
|
|
+ graphics_t *graphics = thread_graphics;
|
|
|
+
|
|
|
+ if (!gs_valid("gs_unregister_loss_callbacks"))
|
|
|
+ return;
|
|
|
+
|
|
|
+ if (graphics->exports.device_unregister_loss_callbacks)
|
|
|
+ graphics->exports.device_unregister_loss_callbacks(
|
|
|
+ graphics->device, data);
|
|
|
+}
|
|
|
+
|
|
|
#endif
|