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=033581e87f5c6f97504bc6c939ae39f35436c0aa;hp=ebf264009802eadddebd72a56b6b9beb50975f28;hb=b094071f3a952169907415a7a8b38e9bdb2a4722;hpb=56f08d8331df07ee6b17dfdba0ca2b5f0b1058c8 diff --git a/plugins/gpu_neon/gpu.h b/plugins/gpu_neon/gpu.h index ebf26400..033581e8 100644 --- a/plugins/gpu_neon/gpu.h +++ b/plugins/gpu_neon/gpu.h @@ -44,8 +44,12 @@ 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; + int x1, x2; int y1, y2; } screen; struct { @@ -55,6 +59,23 @@ struct psx_gpu { 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; + uint32_t active:1; + uint32_t frame_ready:1; + const int *advice; + } frameskip; }; extern struct psx_gpu gpu; @@ -63,5 +84,9 @@ extern const unsigned char cmd_lengths[256]; void do_cmd_list(uint32_t *list, int count); +int renderer_init(void); +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);