X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=plugins%2Fgpu_neon%2Fgpu.h;h=5ededcb3640b2a002e8217576e364abcc08896a8;hp=bb2d6f65d17ab669887b0d242d015276c6b2eefb;hb=24de2dd4dbdd50e44c91c40ebbc7d59ee1c0ac9b;hpb=fc84f6188a55f2548956356c0eda64945183cafc diff --git a/plugins/gpu_neon/gpu.h b/plugins/gpu_neon/gpu.h index bb2d6f65..5ededcb3 100644 --- a/plugins/gpu_neon/gpu.h +++ b/plugins/gpu_neon/gpu.h @@ -10,6 +10,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + #define CMD_BUFFER_LEN 1024 struct psx_gpu { @@ -44,6 +48,8 @@ struct psx_gpu { uint32_t lcf:1; // 31 }; } status; + uint32_t gp0; + uint32_t ex_regs[8]; struct { int hres, vres; int x, y, w, h; @@ -55,15 +61,23 @@ struct psx_gpu { int offset; } dma; int cmd_len; - const uint32_t *lcf_hc; uint32_t zero; struct { uint32_t fb_dirty:1; + uint32_t frame_count; + uint32_t *hcnt; + struct { + uint32_t addr; + uint32_t words; + uint32_t frame; + uint32_t hcnt; + } last_list; } state; struct { - uint32_t enabled:1; + int32_t set:3; /* -1 auto, 0 off, 1 fixed */ uint32_t active:1; uint32_t frame_ready:1; + uint32_t skipped_blits:5; const int *advice; } frameskip; }; @@ -74,5 +88,14 @@ extern const unsigned char cmd_lengths[256]; void do_cmd_list(uint32_t *list, int count); +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); + int vout_init(void); int vout_finish(void); + +#ifdef __cplusplus +} +#endif