Commit Graph

2873 Commits

Author SHA1 Message Date
aliaspider a43af8622d (windows) add a shader parameters popup windows. 2015-03-23 17:36:37 +01:00
vanfanel 429948cae3 Sunxi driver simplifying, round 1: rewrote buffering code for stability and simplicity. 2015-03-22 23:44:25 +00:00
twinaphex a760d25384 Create menu_driver_frame 2015-03-22 05:27:19 +01:00
twinaphex 508ade73f9 Rename menu_driver_resolve to menu_driver_get_ptr 2015-03-21 23:56:42 +01:00
twinaphex d7d92cf83e (PSP) Style nits 2015-03-21 23:27:18 +01:00
twinaphex f517c41070 (PSP) Style nits 2015-03-21 23:25:46 +01:00
vanfanel 25d9fc301d Free menu resources when exiting RA from menu. Changed console restore function name to a more appropiate one. 2015-03-21 11:53:44 +01:00
Twinaphex fc09ad68be (GL) Fix unused variable warning 2015-03-21 06:24:37 +01:00
twinaphex 5a443d229a global_get_ptr update pt. 2 2015-03-21 05:42:49 +01:00
twinaphex e6f0d366cb Go through global_get_ptr 2015-03-21 04:43:18 +01:00
twinaphex f130b00596 Updates pt. 3 2015-03-20 22:08:36 +01:00
vanfanel d7a2a7c4c1 Fixed lockup issue on the dispmanx driver. Rewrote some parts for simplicity. 2015-03-19 12:23:18 +01:00
twinaphex 3670ef2ac5 Go through driver_get_ptr to grab pointer to driver struct 2015-03-18 19:40:00 +01:00
twinaphex 7378299282 Create rarch_main_get_ptr 2015-03-18 06:47:22 +01:00
Higor Eurípedes b979e81b61 (sdl2_gfx.c) Fix CXX build 2015-03-16 14:01:23 -03:00
twinaphex a0f242e1a2 Capitalize enum names 2015-03-16 16:33:23 +01:00
twinaphex 02913851da (GL) Rearrange some variables 2015-03-16 16:28:30 +01:00
twinaphex 1edddcbd98 (GL) Initialize buffer and buffer_texture to NULL 2015-03-16 16:27:40 +01:00
twinaphex 29e3c79e8b (GL) Deal with some potential memory leaks 2015-03-16 16:22:48 +01:00
aliaspider 83df686965 gl_read_frame_raw: flip frame only when using hardware render. 2015-03-16 15:29:52 +01:00
aliaspider a9f6a369bb (GL) add a test implementation for gl_read_frame_raw.
(inactive by default)
2015-03-16 13:39:25 +01:00
aliaspider 7a72d46f9a add a read_frame_raw callback to the video_driver_t structure. 2015-03-16 09:33:16 +01:00
twinaphex c410e24d58 (vg.c) Add runloop.h 2015-03-15 18:29:16 +01:00
vanfanel 9b6d336983 Fixed building with dispmanx only with no OpenGL/GLES. Corrected comment. 2015-03-15 16:20:03 +01:00
twinaphex 6c0f4eb5f0 (dispmanx_gfx.c) Cleanups 2015-03-15 05:41:29 +01:00
twinaphex 7a9d2c6358 (sunxi_gfx.c) Style nits 2015-03-15 05:38:31 +01:00
twinaphex 61d6f69aa8 Backport Vanfanel mutex fix 2015-03-15 05:35:46 +01:00
twinaphex 31c5e2fea5 (sunxi gfx) Change signature of thread callback function 2015-03-15 05:30:57 +01:00
twinaphex af0aea78b4 (Dispmanx) Use rthreads 2015-03-15 05:23:13 +01:00
twinaphex bbb61f0d3d (SunXI gfx) Use rthreads 2015-03-15 05:19:04 +01:00
twinaphex 84e9f2fa7d Use retro_inline throughout 2015-03-15 04:52:46 +01:00
twinaphex 26f2bd4cbf Start going through retro_inline INLINE 2015-03-15 04:37:54 +01:00
twinaphex 00239a30d6 Create wrapper functions for passing a message to the runloop's
message queue
2015-03-15 02:47:23 +01:00
twinaphex 75598e5e60 (dispmanx_gfx) Turn a bunch of functions static 2015-03-13 22:46:26 +01:00
twinaphex 299aa1d1f2 (Dispman Graphics driver) Cleanups 2015-03-13 22:39:18 +01:00
vanfanel 2f1e6600d9 Added native Raspebbry Pi Dispmanx API backend 2015-03-13 05:59:52 +01:00
aliaspider af3461c256 (PSP) fix display bug with 32bpp cores. 2015-03-11 03:37:47 +01:00
twinaphex 9970768dd2 (XVideo) Implement mouse wheel up/down for Xvideo too 2015-03-09 17:48:24 +01:00
twinaphex dd0d81eba8 (XEGL context/Xvideo) Add it to these video drivers/ context
drivers too
2015-03-09 16:55:27 +01:00
twinaphex ee1654d695 (GX) Use g_settings.fps_show 2015-03-08 15:07:19 +01:00
Toad King 2a64450af2 [GX] fix build 2015-03-07 22:48:41 -06:00
twinaphex 9627117166 Take out fps_monitor_enable 2015-03-07 23:03:56 +01:00
aliaspider 7e2a1ed4ab (PSP) disable hardcoded FPS display 2015-03-07 22:42:19 +01:00
Tobias Jakobi 3183149c8c exynos_gfx: fix error handling of fd open
Opening an fd can fail for multiple reasons, we would
just error out on EPERM. Handle the other cases as well.
2015-03-07 14:58:30 +01:00
twinaphex f2d2e9a4f1 Reorganize recording variables in global struct 2015-03-07 14:02:50 +01:00
twinaphex 3276781b4f Don't increment g_runloop.frames.video.count inside video driver
implementation's 'frame' function - do this outside
2015-03-07 13:28:45 +01:00
twinaphex d11006e041 Move frame_count to g_runloop 2015-03-07 13:14:04 +01:00
twinaphex 795ef467ac Move msg_queue and nbio/http to runloop struct 2015-03-07 13:01:41 +01:00
twinaphex a74cb0574b Create g_runloop and start moving variables there 2015-03-07 12:36:50 +01:00
notaz a63dba42ce omap_gfx: implement _set_texture_frame 2015-03-07 02:43:08 +02:00
notaz b33630b8dc omap_gfx: don't allocate vram if enough is available
this allows to use the layer even if it's already in use by some display
2015-03-07 02:42:56 +02:00
notaz 8df0dd990e omap_gfx: fix build 2015-03-07 02:42:43 +02:00
twinaphex e1dca5de36 (sunxi_gfx.c) Style nits #2 2015-03-06 23:36:13 +01:00
twinaphex 4cb819543e (sunxi_gfx.c) Style nits 2015-03-06 23:25:46 +01:00
twinaphex f32abcf532 (sunxi_gfx.c) Turn a whole bunch of functions static 2015-03-06 23:10:47 +01:00
twinaphex c06558972b (sunxi_gfx.c) style nits 2015-03-06 22:59:10 +01:00
Twinaphex 5132b410a8 Merge pull request #1471 from aliaspider/master
(PSP) add missing screenshot function.
2015-03-06 22:41:11 +01:00
aliaspider c708453f06 (PSP) add missing screenshot function. 2015-03-06 22:27:06 +01:00
vanfanel 9831f8f1d0 Added sunxi graphics backend. No additional libs or blobs required. 2016-01-10 11:04:32 +00:00
twinaphex b9a17d0d05 (PS3) Take out hacky hack HAVE_GCMGL ifdefs 2015-03-05 14:26:34 +01:00
Toad King 23f2e3b0e1 [GX] reset menu pitch & custom viewport when changing resolution 2015-02-28 22:42:06 -06:00
Toad King 14fe8623bb [GX] fix menu pitch 2015-02-28 22:18:23 -06:00
aliaspider 4317c4f1cb (PSP) fix build.
add 7-zip support.
fix cores filenames detection in core_info_list_new.
use sceRtcGetCurrentTick instead of the less precise gettimeofday for
the performance counter.
2015-02-25 13:30:46 +01:00
twinaphex f08160396b Get rid of unneeded gfx_gfx.h header 2015-02-24 22:13:40 +01:00
twinaphex f80e3740aa Implement set_video_mode in video poke interface 2015-02-24 21:57:51 +01:00
twinaphex 13a391c165 Implement get_video_output_prev/get_video_output_next 2015-02-24 21:36:23 +01:00
twinaphex 7e9aeee05d (GX) Implement get_video_output_size for Wii/Gamecube 2015-02-24 20:22:45 +01:00
twinaphex 523d9503da (GL) Implement get_video_output_size for GL driver 2015-02-24 20:09:10 +01:00
twinaphex f9ede9d00a Add get_video_output_size to video driver's poke interface 2015-02-24 20:06:58 +01:00
Tobias Jakobi dab91b0c73 exynos_gfx: actually turn off the crtc during cleanup
Disabling the crtc is completly independent of the used
connectors. Use the correct parameters so that the drm
core actually disables the crtc.
2015-02-24 16:53:54 +01:00
Toad King 509e7f8fc8 [GX] compile fix 2015-02-23 21:54:44 -06:00
twinaphex d09574bb1f Move files around 2015-02-22 04:56:18 +01:00
Higor Eurípedes c281f0fc68 (griffin) Fix glx, xegl and xvideo build 2015-02-20 23:35:39 -03:00
Higor Eurípedes cb7b6ef45c (gl.c) Fix undefined gl_get_proc_address 2015-02-20 23:35:39 -03:00
Tobias Jakobi cf3eea13df exynos_gfx: handle drmModeSetCrtc failing
This shouldn't happen anymore after the connector ID fix, but
the checks don't hurt and protect us from future mishaps.
2015-02-20 10:54:23 +01:00
Tobias Jakobi 551123d4d6 exynos_gfx: set connector_id in exynos_init
The connector ID is only used for initial setup of the CRTC
and when deinitializing the backend, so this bug probably
wasn't noticed at all.
2015-02-20 10:44:54 +01:00
Tobias Jakobi 5574d95add exynos_gfx: fix memory leak in exynos_free
The exynos_device object was never freed, so we had a tiny
memory leak when reinitializing the gfx backend.
2015-02-20 10:43:18 +01:00
Tobias Jakobi 6327f45d4f exynos_gfx: update copyright 2015-02-20 10:39:27 +01:00
twinaphex 8f5809ee46 Take out make_current_context 2015-02-16 23:41:49 +01:00
sergiobenrocha2 ab3f821c64 Fix build with vg enabled. 2015-02-14 14:49:21 -02:00
twinaphex 64446ef497 Rename and move rarch_viewport 2015-02-14 05:52:05 +01:00
twinaphex 7df7201b31 Go through menu_driver_resolve 2015-02-13 23:41:34 +01:00
twinaphex d1483d1530 (GX) Buildfix 2015-02-13 19:11:53 +01:00
twinaphex 4d31687899 Create menu_driver_resolve to avoid having to pass state pointer
around between functions
2015-02-13 19:00:59 +01:00
twinaphex 948847edc1 (GL) Style nits 2015-02-13 02:21:54 +01:00
twinaphex fafd472b2f (GL) Refactor gl_check_fbo_dimensions 2015-02-13 02:02:03 +01:00
twinaphex 7daf9fae03 Fix crash on startup with threaded video 2015-02-12 21:58:35 +01:00
twinaphex 4d478434c7 (Menu) Start getting rid of void * pointer 2015-02-11 20:28:54 +01:00
twinaphex 539c26c611 Refactor gl_set_texture_fmts 2015-02-11 16:11:05 +01:00
twinaphex 821a3283dc Refactor gl_set_texture_frame 2015-02-11 16:05:11 +01:00
twinaphex 118ce66dec Refactor gl_load_texture_data 2015-02-11 15:53:37 +01:00
twinaphex 77f6b98aa9 Reuse gl_load_texture_data some more 2015-02-11 15:46:55 +01:00
twinaphex f3002c334f Move GLSL driver higher up the priority list 2015-02-09 21:49:29 +01:00
twinaphex e0184f0877 We don't want to allow the user to disable fonts and lock himself
out of seeing a GUI - gets rid of hack in gl.c
2015-02-09 19:11:53 +01:00
twinaphex 90e5cffab8 Add RETRO_ENVIRONMENT_MAKE_CURRENT_CONTEXT 2015-02-08 18:39:12 +01:00
SuperrSonic 2e61bafb1e (GX) Use custom viewports in 240p 2015-02-05 16:19:00 -04:00
twinaphex 847cd0521a (psp1_gfx.c) Style nits 2015-01-26 19:55:19 +01:00
twinaphex 44a609b0c2 (exynos_gfx.c) Style nits 2015-01-26 19:53:21 +01:00
twinaphex 91cba8094d (omap_gfx.c) Style nits 2015-01-26 19:42:04 +01:00
twinaphex 1db3789090 (SDL2) Cleanup driver 2015-01-22 01:08:20 +01:00
twinaphex 9c7f3c30a0 (sdl_gfx.c) cleanups 2015-01-22 00:32:24 +01:00
twinaphex f1eee5554f Add performance.h header to sdl_gfx.c 2015-01-22 00:26:50 +01:00
twinaphex a1f12dd570 (PSP) Buildfix 2015-01-21 06:33:31 +01:00
twinaphex da88bcdd91 Rename gfx_shader* to video_shader* 2015-01-19 21:24:08 +01:00
twinaphex b0548e1329 Properly namespace video_shader_parse.c functions 2015-01-19 21:09:39 +01:00
Alcaro fcf7f4faa5 Fix build failure - pass in the new parameter 2015-01-19 17:38:53 +01:00
twinaphex 51d97c3fbb Rename gfx_common.c to win32_dwm_common.c 2015-01-19 01:49:08 +01:00
twinaphex 80d4de7c3f Add gfx/video_viewport.c/viewport.h 2015-01-18 23:59:57 +01:00
twinaphex c4310ec813 Implement suspend_screensaver callback 2015-01-18 22:32:14 +01:00
twinaphex de76884bb8 Rename gfx_get_fps to video_monitor_get_fps 2015-01-18 20:03:33 +01:00
twinaphex e3897c8641 Less dependencies on driver.h 2015-01-18 19:01:13 +01:00
twinaphex 5c32acf91f Split up video_monitor code into separate file 2015-01-18 18:28:14 +01:00
twinaphex 0286078f8f Start properly namespacing monitor_* functions 2015-01-18 18:17:59 +01:00
twinaphex ba5a31e33b Build fixes 2015-01-12 23:38:21 +01:00
twinaphex 7f6a9fe594 Build fixes 2015-01-12 23:35:40 +01:00
twinaphex 8111567d3e Move some files around 2015-01-12 23:34:10 +01:00
twinaphex 64411558eb Rename gfx/shader/ to gfx/drivers_shader 2015-01-12 22:23:48 +01:00
twinaphex 069fb556f0 Rename graphics context drivers 2015-01-12 22:19:31 +01:00
twinaphex 0b2d518531 Rename video_context.c to video_context_driver.c 2015-01-12 21:53:04 +01:00
twinaphex cec3af8e4a Rename shader_context.c to video_shader_driver.c 2015-01-12 21:41:27 +01:00
twinaphex bd0f0c3f63 Rename gfx_context.c to video_context.c 2015-01-12 18:47:39 +01:00
twinaphex b9ab7a545d Move psp and gx drivers to gfx/drivers 2015-01-12 06:55:31 +01:00
twinaphex a002208f59 Start moving graphics driver to gfx/drivers 2015-01-12 06:45:12 +01:00