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=8813a4473628466a6cfc908d780a0e6da1973c66;hb=24de2dd4dbdd50e44c91c40ebbc7d59ee1c0ac9b;hpb=8dd855cd6cdab41d1e38637a020681137eceb457 diff --git a/plugins/gpu_neon/gpu.h b/plugins/gpu_neon/gpu.h index 8813a447..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,8 +61,25 @@ 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 { + 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; }; extern struct psx_gpu gpu; @@ -65,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