notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libretro.c: Change indents from tabs to spaces
[pcsx_rearmed.git]
/
plugins
/
gpulib
/
gpu.h
diff --git
a/plugins/gpulib/gpu.h
b/plugins/gpulib/gpu.h
index
d9ad416
..
7e1d18b
100644
(file)
--- a/
plugins/gpulib/gpu.h
+++ b/
plugins/gpulib/gpu.h
@@
-17,10
+17,9
@@
extern "C" {
#define CMD_BUFFER_LEN 1024
struct psx_gpu {
#define CMD_BUFFER_LEN 1024
struct psx_gpu {
- uint16_t vram[1024 * 512];
- uint16_t guard[1024 * 512]; // overdraw guard
uint32_t cmd_buffer[CMD_BUFFER_LEN];
uint32_t regs[16];
uint32_t cmd_buffer[CMD_BUFFER_LEN];
uint32_t regs[16];
+ uint16_t *vram;
union {
uint32_t reg;
struct {
union {
uint32_t reg;
struct {
@@
-66,6
+65,9
@@
struct psx_gpu {
uint32_t fb_dirty:1;
uint32_t old_interlace:1;
uint32_t allow_interlace:2;
uint32_t fb_dirty:1;
uint32_t old_interlace:1;
uint32_t allow_interlace:2;
+ uint32_t blanked:1;
+ uint32_t enhancement_enable:1;
+ uint32_t enhancement_active:1;
uint32_t *frame_count;
uint32_t *hcnt; /* hsync count */
struct {
uint32_t *frame_count;
uint32_t *hcnt; /* hsync count */
struct {
@@
-84,27
+86,36
@@
struct psx_gpu {
uint32_t frame_ready:1;
const int *advice;
uint32_t last_flip_frame;
uint32_t frame_ready:1;
const int *advice;
uint32_t last_flip_frame;
+ uint32_t pending_fill[3];
} frameskip;
} frameskip;
+ int useDithering:1; /* 0 - off , 1 - on */
+ uint16_t *(*get_enhancement_bufer)
+ (int *x, int *y, int *w, int *h, int *vram_h);
+ void *(*mmap)(unsigned int size);
+ void (*munmap)(void *ptr, unsigned int size);
};
extern struct psx_gpu gpu;
extern const unsigned char cmd_lengths[256];
};
extern struct psx_gpu gpu;
extern const unsigned char cmd_lengths[256];
-
void do_cmd_list(uint32_t *list, int count
);
+
int do_cmd_list(uint32_t *list, int count, int *last_cmd
);
struct rearmed_cbs;
int renderer_init(void);
struct rearmed_cbs;
int renderer_init(void);
+void renderer_finish(void);
void renderer_sync_ecmds(uint32_t * ecmds);
void renderer_update_caches(int x, int y, int w, int h);
void renderer_flush_queues(void);
void renderer_set_interlace(int enable, int is_odd);
void renderer_set_config(const struct rearmed_cbs *config);
void renderer_sync_ecmds(uint32_t * ecmds);
void renderer_update_caches(int x, int y, int w, int h);
void renderer_flush_queues(void);
void renderer_set_interlace(int enable, int is_odd);
void renderer_set_config(const struct rearmed_cbs *config);
+void renderer_notify_res_change(void);
int vout_init(void);
int vout_finish(void);
void vout_update(void);
int vout_init(void);
int vout_finish(void);
void vout_update(void);
+void vout_blank(void);
void vout_set_config(const struct rearmed_cbs *config);
/* listing these here for correct linkage if rasterizer uses c++ */
void vout_set_config(const struct rearmed_cbs *config);
/* listing these here for correct linkage if rasterizer uses c++ */