From 0b02eb7712f1272fa7f38b0af41968b53af3b5a8 Mon Sep 17 00:00:00 2001 From: notaz Date: Mon, 13 Aug 2012 00:02:23 +0300 Subject: add support for software-enhanced rendering --- frontend/plugin_lib.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'frontend/plugin_lib.h') diff --git a/frontend/plugin_lib.h b/frontend/plugin_lib.h index bcf74ac..7687bf8 100644 --- a/frontend/plugin_lib.h +++ b/frontend/plugin_lib.h @@ -60,6 +60,8 @@ struct rearmed_cbs { unsigned int only_16bpp; // platform is 16bpp-only struct { int allow_interlace; // 0 off, 1 on, 2 guess + int enhancement_enable; + int enhancement_no_main; } gpu_neon; struct { int iUseDither; -- cgit v1.2.3 From 9ee0fd5b333039b1140d90f935aa9299825f1e42 Mon Sep 17 00:00:00 2001 From: notaz Date: Sun, 19 Aug 2012 22:39:49 +0300 Subject: start mmap'ing vram, with hugetlb if possible --- frontend/plugin_lib.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'frontend/plugin_lib.h') diff --git a/frontend/plugin_lib.h b/frontend/plugin_lib.h index 7687bf8..1701d06 100644 --- a/frontend/plugin_lib.h +++ b/frontend/plugin_lib.h @@ -44,6 +44,8 @@ struct rearmed_cbs { void *(*pl_vout_set_mode)(int w, int h, int bpp); void *(*pl_vout_flip)(void); void (*pl_vout_close)(void); + void *(*mmap)(unsigned int size); + void (*munmap)(void *ptr, unsigned int size); // these are only used by some frontends void (*pl_vout_raw_flip)(int x, int y); void (*pl_vout_set_raw_vram)(void *vram); -- cgit v1.2.3 From fa56d36096cd4ab2b227ce2aa61c8404b8874689 Mon Sep 17 00:00:00 2001 From: notaz Date: Mon, 29 Oct 2012 01:08:35 +0200 Subject: move blit to core, allow filtering while blitting also adds libpicofe to pull filters from, and filter related UI stuff --- frontend/plugin_lib.h | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'frontend/plugin_lib.h') diff --git a/frontend/plugin_lib.h b/frontend/plugin_lib.h index 1701d06..332fbc2 100644 --- a/frontend/plugin_lib.h +++ b/frontend/plugin_lib.h @@ -31,7 +31,8 @@ void pl_text_out16(int x, int y, const char *texto, ...); void pl_start_watchdog(void); void *pl_prepare_screenshot(int *w, int *h, int *bpp); void pl_init(void); -void pl_print_hud(int xborder); +void pl_print_hud(int width, int height, int xborder); +void pl_switch_dispmode(void); void pl_timing_prepare(int is_pal); void pl_frame_limit(void); @@ -41,14 +42,15 @@ void pl_update_gun(int *xn, int *xres, int *y, int *in); struct rearmed_cbs { void (*pl_get_layer_pos)(int *x, int *y, int *w, int *h); int (*pl_vout_open)(void); - void *(*pl_vout_set_mode)(int w, int h, int bpp); - void *(*pl_vout_flip)(void); + void (*pl_vout_set_mode)(int w, int h, int bpp); + void (*pl_vout_flip)(const void *vram, int stride, int bgr24, + int w, int h); void (*pl_vout_close)(void); void *(*mmap)(unsigned int size); void (*munmap)(void *ptr, unsigned int size); - // these are only used by some frontends - void (*pl_vout_raw_flip)(int x, int y); + // only used by some frontends void (*pl_vout_set_raw_vram)(void *vram); + void (*pl_set_gpu_caps)(int caps); // some stats, for display by some plugins int flips_per_sec, cpu_usage; float vsps_cur; // currect vsync/s @@ -82,10 +84,17 @@ struct rearmed_cbs { int iUseMask, bOpaquePass, bAdvancedBlend, bUseFastMdec; int iVRamSize, iTexGarbageCollection; } gpu_peopsgl; + // misc + int gpu_caps; }; extern struct rearmed_cbs pl_rearmed_cbs; +enum gpu_plugin_caps { + GPU_CAP_OWNS_DISPLAY = (1 << 0), + GPU_CAP_SUPPORTS_2X = (1 << 1), +}; + #ifndef ARRAY_SIZE #define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0])) #endif -- cgit v1.2.3 From 2c5d0a55b2b48b33f6d15b59d6f04a06c90b2ab5 Mon Sep 17 00:00:00 2001 From: notaz Date: Sat, 10 Nov 2012 01:14:46 +0200 Subject: frontend: improve pandora nub to PSX analog mapping --- frontend/plugin_lib.h | 1 + 1 file changed, 1 insertion(+) (limited to 'frontend/plugin_lib.h') diff --git a/frontend/plugin_lib.h b/frontend/plugin_lib.h index 332fbc2..a96dc4e 100644 --- a/frontend/plugin_lib.h +++ b/frontend/plugin_lib.h @@ -20,6 +20,7 @@ enum { extern int in_type1, in_type2; extern int in_keystate, in_state_gun, in_a1[2], in_a2[2]; extern int in_adev[2], in_adev_axis[2][2]; +extern int in_adev_is_nublike[2]; extern int in_enable_vibration; extern void *pl_vout_buf; -- cgit v1.2.3 From 841ba5ee5bfeb32bb1194c423a047f98825d26fd Mon Sep 17 00:00:00 2001 From: notaz Date: Sun, 11 Nov 2012 21:01:43 +0200 Subject: frontend: move text drawing to libpicofe + some minor fixes --- frontend/plugin_lib.h | 1 - 1 file changed, 1 deletion(-) (limited to 'frontend/plugin_lib.h') diff --git a/frontend/plugin_lib.h b/frontend/plugin_lib.h index a96dc4e..a7c48bb 100644 --- a/frontend/plugin_lib.h +++ b/frontend/plugin_lib.h @@ -28,7 +28,6 @@ extern void *pl_vout_buf; extern int g_layer_x, g_layer_y; extern int g_layer_w, g_layer_h; -void pl_text_out16(int x, int y, const char *texto, ...); void pl_start_watchdog(void); void *pl_prepare_screenshot(int *w, int *h, int *bpp); void pl_init(void); -- cgit v1.2.3 From e4c83ca67cf7ad13db3995909605ce01ff915824 Mon Sep 17 00:00:00 2001 From: notaz Date: Tue, 13 Nov 2012 19:19:36 +0200 Subject: fix gun handling in enhancement mode --- frontend/plugin_lib.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'frontend/plugin_lib.h') diff --git a/frontend/plugin_lib.h b/frontend/plugin_lib.h index a7c48bb..2f6c680 100644 --- a/frontend/plugin_lib.h +++ b/frontend/plugin_lib.h @@ -37,12 +37,10 @@ void pl_switch_dispmode(void); void pl_timing_prepare(int is_pal); void pl_frame_limit(void); -void pl_update_gun(int *xn, int *xres, int *y, int *in); - struct rearmed_cbs { void (*pl_get_layer_pos)(int *x, int *y, int *w, int *h); int (*pl_vout_open)(void); - void (*pl_vout_set_mode)(int w, int h, int bpp); + void (*pl_vout_set_mode)(int w, int h, int raw_w, int raw_h, int bpp); void (*pl_vout_flip)(const void *vram, int stride, int bgr24, int w, int h); void (*pl_vout_close)(void); -- cgit v1.2.3 From c9099d020a1e523d97541f426f7d44da1392526f Mon Sep 17 00:00:00 2001 From: notaz Date: Sun, 18 Nov 2012 00:31:30 +0200 Subject: frontend: overlay improvements work directly on psx vram --- frontend/plugin_lib.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'frontend/plugin_lib.h') diff --git a/frontend/plugin_lib.h b/frontend/plugin_lib.h index 2f6c680..bec16b2 100644 --- a/frontend/plugin_lib.h +++ b/frontend/plugin_lib.h @@ -93,6 +93,12 @@ enum gpu_plugin_caps { GPU_CAP_SUPPORTS_2X = (1 << 1), }; +// platform hooks +extern void (*pl_plat_clear)(void); +extern void (*pl_plat_blit)(int doffs, const void *src, + int w, int h, int sstride, int bgr24); +extern void (*pl_plat_hud_print)(int x, int y, const char *str, int bpp); + #ifndef ARRAY_SIZE #define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0])) #endif -- cgit v1.2.3