void do_cmd_list(uint32_t *list, int count);
+struct rearmed_cbs;
+
int renderer_init(void);
void renderer_sync_ecmds(uint32_t * ecmds);
void renderer_invalidate_caches(int x, int y, int w, int h);
void renderer_flush_queues(void);
+void renderer_set_config(const struct rearmed_cbs *config);
int vout_init(void);
int vout_finish(void);
/* listing these here for correct linkage if rasterizer uses c++ */
struct GPUFreeze;
-struct rearmed_cbs;
long GPUinit(void);
long GPUshutdown(void);
void renderer_flush_queues(void)
{
}
+
+#include "../../frontend/plugin_lib.h"
+
+void renderer_set_config(const struct rearmed_cbs *cbs)
+{
+ iUseDither = cbs->gpu_peops.iUseDither;
+ dwActFixes = cbs->gpu_peops.dwActFixes;
+}
void renderer_flush_queues(void)
{
}
+
+#include "../../frontend/plugin_lib.h"
+
+void renderer_set_config(const struct rearmed_cbs *cbs)
+{
+ enableAbbeyHack = cbs->gpu_unai.abe_hack;
+ light = !cbs->gpu_unai.no_light;
+ blend = !cbs->gpu_unai.no_blend;
+}
gpu.frameskip.frame_ready = 1;
gpu.state.hcnt = cbs->gpu_hcnt;
gpu.state.frame_count = cbs->gpu_frame_count;
+
+ if (cbs->pl_vout_set_raw_vram)
+ cbs->pl_vout_set_raw_vram(gpu.vram);
+ renderer_set_config(cbs_);
}
// vim:shiftwidth=2:expandtab
return 0;
}
-void GPUrearmedCallbacks(const struct rearmed_cbs *cbs_)
+#include "../../frontend/plugin_lib.h"
+
+void GPUrearmedCallbacks(const struct rearmed_cbs *cbs)
{
+ gpu.state.hcnt = cbs->gpu_hcnt;
+ gpu.state.frame_count = cbs->gpu_frame_count;
+
+ if (cbs->pl_vout_set_raw_vram)
+ cbs->pl_vout_set_raw_vram(gpu.vram);
+ renderer_set_config(cbs);
}
// vim:shiftwidth=2:expandtab