Commit Graph

692 Commits

Author SHA1 Message Date
twinaphex
5516ff05b5 Create GFX_CTL_SET_VIDEO_MODE 2016-02-14 02:12:18 +01:00
twinaphex
6413449944 (Android/EGL Images) Buildfixes 2016-02-14 02:00:14 +01:00
twinaphex
154f85c6fa Add GFX_CTL_SUPPRESS_SCREENSAVER 2016-02-13 23:39:12 +01:00
twinaphex
f6afe72a1e Add GFX_CTL_IMAGE_BUFFER_WRITE 2016-02-13 23:35:47 +01:00
twinaphex
0a9787ec49 Create GFX_CTL_INPUT_DRIVER 2016-02-13 23:26:33 +01:00
twinaphex
ce41c5bbca Create GFX_CTL_TRANSLATE_ASPECT 2016-02-13 22:07:56 +01:00
twinaphex
f94e9c532e Create GFX_CTL_PROC_ADDRESS_GET 2016-02-13 22:02:49 +01:00
twinaphex
254d2d1fff Avoid crash in gl_frame 2016-02-13 21:15:18 +01:00
twinaphex
9e186b4587 Create GFX_CTL_SWAP_INTERVAL 2016-02-13 20:45:45 +01:00
twinaphex
46c9ff36ef Create GFX_CTL_CHECK_WINDOW 2016-02-13 19:53:14 +01:00
twinaphex
b9a5c326cd Create GFX_CTX_GET_VIDEO_OUTPUT_SIZE 2016-02-13 19:36:02 +01:00
twinaphex
7c28ddbfc5 Add GFX_CTL_IMAGE_BUFFER_INIT 2016-02-13 18:51:16 +01:00
twinaphex
ef6ef13143 Add GFX_CTL_GET_VIDEO_OUTPUT_PREV/GFX_CTL_GET_VIDEO_OUTPUT_NEXT 2016-02-13 18:47:38 +01:00
twinaphex
00e4793bed Add GFX_CTL_BIND_HW_RENDER 2016-02-13 18:36:23 +01:00
twinaphex
b7c41c9fcd Remove gfx_ctx_show_mouse 2016-02-13 18:29:07 +01:00
twinaphex
8721c857e9 Add GFX_CTL_SET 2016-02-13 18:27:05 +01:00
twinaphex
6a697ef2e1 GFX_CTL_SHOW_MOUSE added 2016-02-13 17:48:25 +01:00
twinaphex
425a290ced Remove gfx_ctx_destroy 2016-02-13 16:33:38 +01:00
twinaphex
ef1b0b0965 Add GFX_CTL_UPDATE_WINDOW_TITLE 2016-02-13 08:50:22 +01:00
twinaphex
f079ca29e4 Add GFX_CTL_HAS_WINDOWED 2016-02-13 08:37:10 +01:00
twinaphex
752e9abd4e Add GFX_CTL_SWAP_BUFFERS 2016-02-13 08:33:33 +01:00
twinaphex
0a7c481ff0 Create GFX_CTL_FOCUS 2016-02-13 08:29:58 +01:00
twinaphex
fab6c9b8c4 Add GFX_CTL_FREE 2016-02-13 08:26:54 +01:00
twinaphex
45a663c100 Add header 2016-02-13 05:08:29 +01:00
twinaphex
af1e698b05 Add retro_assert.h to sdl_gfx.c 2016-02-13 04:49:42 +01:00
netux79
a2851ab70b (GX) Resolution Saving's Video Corruption Fix.
Also some cleanups for the RA GX version included.
2016-02-12 16:58:59 -05:00
Alcaro
03e9577686 Fix compile fail. 2016-02-12 15:27:48 +01:00
twinaphex
863b5306f8 CLeanups 2016-01-25 00:06:08 +01:00
twinaphex
372d673a26 Rename event_command to event_cmd_ctl - add second parameter 2016-01-22 15:34:43 +01:00
twinaphex
fbd2e9aa84 Use string_is_equal more 2016-01-21 02:48:00 +01:00
twinaphex
157eb71606 Use string_is_equal more 2016-01-20 06:16:55 +01:00
twinaphex
54f46f4ee3 Update headers 2016-01-10 04:41:52 +01:00
twinaphex
c2d7cbe18b Use string_is_empty 2015-12-26 07:59:15 +01:00
vanfanel
36d079f104 fixed segfault on exit caused by gl driver trying to free font context driver when osd mesages were disabled 2015-12-25 05:47:47 +01:00
vanfanel
886acba67f fixed segfault when osd message rendering was disabled 2015-12-25 05:27:28 +01:00
thedax
0565a92486 Update CTR (3DS) driver for the latest ctrulib SDK, fix a typo, and fix compilation errors. 2015-12-21 13:43:05 -05:00
twinaphex
f53711f791 Change return type of load_texture to uintptr_t 2015-12-20 22:38:18 +01:00
twinaphex
6362c86c31 Buildfixes 2015-12-20 21:08:03 +01:00
twinaphex
aa488dda25 Create video driver poke load_texture / unload_texture 2015-12-20 20:52:23 +01:00
twinaphex
6feff79547 (GL) Store major/minor version 2015-12-13 14:55:19 +01:00
twinaphex
8a213b8ab4 (sdl_gfx.c) Avoid warning by casting directly 2015-12-12 17:54:27 +01:00
twinaphex
1b768f7dcd Create RARCH_DRIVER_CTL_SET_REFRESH_RATE 2015-12-11 11:00:12 +01:00
twinaphex
b7988a33fe shader_driver_ctx_init_first renamed 2015-12-09 08:45:55 +01:00
Higor Eurípedes
962455fafa (vg) Fix build again 2015-12-08 21:59:59 -03:00
Higor Eurípedes
dc371da6ed (vg) Fix build 2015-12-08 21:51:29 -03:00
Higor Eurípedes
9e90efacbb (videocore) Convert to new egl common api 2015-12-08 17:33:59 -03:00
Higor Eurípedes
c257374dcd (video_context_driver) Make better use of the data argument in context calls 2015-12-08 12:19:08 -03:00
twinaphex
c614118ed8 Move context_bind_hw_render inline function to gl.c 2015-12-08 09:44:19 +01:00
twinaphex
75f10bfcdb Remove unused variable 2015-12-08 09:33:36 +01:00
twinaphex
df60523f6c Move current_shader pointer to video_shader_driver.c 2015-12-08 09:27:25 +01:00
twinaphex
77b7e5b791 (GX) Remove dependency on menu_driver_get_ptr 2015-12-07 15:58:41 +01:00
twinaphex
2d55dc3bda Complete namespace changes 2015-12-07 15:32:14 +01:00
twinaphex
e8a3bd99d8 (3DS/CTR) Buildfix 2015-12-07 09:32:58 +01:00
twinaphex
99ea0095a3 Create RARCH_MENU_CTL_FRAME 2015-12-06 18:28:37 +01:00
twinaphex
18ab12ab83 Take header include record_driver.h out of driver.h 2015-12-05 16:12:29 +01:00
twinaphex
736f343d9f Create RARCH_MENU_CTL_IS_ALIVE 2015-12-05 13:49:34 +01:00
twinaphex
2f29d9f18c Take out menu/menu_driver.h include from driver.h 2015-12-05 13:22:50 +01:00
twinaphex
c8d8176c0c Get rid of unused variables 2015-12-05 12:50:56 +01:00
twinaphex
df1c6344be Merge font_renderer_driver.c and font_driver.c 2015-12-05 12:07:22 +01:00
twinaphex
988162ed62 Cut down on code duplication 2015-12-05 11:29:06 +01:00
twinaphex
5f27366cb3 Expand font_driver_init_first 2015-12-05 11:18:05 +01:00
twinaphex
a26e64e24d Expand font_driver_free 2015-12-05 10:54:53 +01:00
twinaphex
e196fdf141 font_driver_render_msg - make it possible to pass special font data 2015-12-05 10:49:28 +01:00
twinaphex
c88d795734 Start using font driver wrapper functions 2015-12-05 10:33:50 +01:00
twinaphex
89721b8837 Start creating font driver wrapper functions 2015-12-05 10:31:15 +01:00
twinaphex
e735f84baa Refactor shader subsystem 2015-12-05 07:33:32 +01:00
twinaphex
ab3f0f0652 Create remaining video_shader_driver_* functions 2015-12-04 16:45:38 +01:00
twinaphex
6d37cfc2fb Create video_shader_driver_get_prev_textures 2015-12-04 16:34:58 +01:00
twinaphex
a2da59ac9b Create video_shader_driver_set_coords and video_shader_driver_set_mvp 2015-12-04 16:33:07 +01:00
twinaphex
827b3cc89b Create video_shader_driver_num_shaders 2015-12-04 16:19:12 +01:00
twinaphex
0ed77247a8 Create video_shader_driver_mipmap_input 2015-12-04 16:16:40 +01:00
twinaphex
c8f2ef7734 Create video_shader_driver_get_ident 2015-12-04 16:05:42 +01:00
twinaphex
1956dffe9b Create video_shader_driver_use 2015-12-04 16:01:09 +01:00
twinaphex
bdf099a19c Create video_shader_driver_deinit 2015-12-04 15:56:36 +01:00
twinaphex
de555d6040 Replace all instances of shader->init 2015-12-04 15:54:10 +01:00
twinaphex
3f6540dd58 Start using video_shader_driver_init for D3D too 2015-12-04 15:53:02 +01:00
twinaphex
11109a198b Create video_shader_driver_init 2015-12-04 15:50:40 +01:00
twinaphex
e73224c5c2 Get rid of superfluous log 2015-12-03 23:24:54 +01:00
twinaphex
eda3e06898 (GL) Guard against possible segfaults in threaded video mode 2015-12-03 23:16:37 +01:00
twinaphex
beb01b5d57 Create gl_init_textures_reference 2015-12-03 22:42:54 +01:00
Twinaphex
96da691728 Revert "Revert "(gl) Fix gl->should_resize being always true""
This reverts commit d35840ebcd.
2015-12-01 07:15:06 +01:00
Twinaphex
d35840ebcd Revert "(gl) Fix gl->should_resize being always true"
This reverts commit 0f339caf30.
2015-12-01 04:58:47 +01:00
Higor Eurípedes
0dfccf2785 (sdl2_video) Fix floating point exception 2015-11-30 21:32:32 -03:00
Higor Eurípedes
0f339caf30 (gl) Fix gl->should_resize being always true 2015-11-30 21:32:32 -03:00
twinaphex
0db7cda264 Start moving rewind code to rewind.c 2015-11-30 22:25:13 +01:00
twinaphex
9824eb7ea9 Rename rarch_main_ctl to runloop_ctl 2015-11-30 21:42:59 +01:00
twinaphex
4e333302ae Rename RARCH_MAIN_CTL* to RUNLOOP_CTL* 2015-11-30 21:35:50 +01:00
twinaphex
1c867cedf0 Move nonblock_state to input_driver.c (NOTE: we probably need
to relocate this later on)
2015-11-29 17:53:11 +01:00
twinaphex
b8df5fd584 (exynos_gfx.c) Nits 2015-11-29 01:43:58 +01:00
twinaphex
127448f848 Use video_driver_window_get 2015-11-29 01:39:28 +01:00
twinaphex
0044d853f8 Move display_type / display_window etc all to gfx/video_driver.c -
no more dependencies on driver_t
2015-11-29 01:12:49 +01:00
twinaphex
8ce6582fa4 Create drm_wait_flip 2015-11-28 17:16:19 +01:00
twinaphex
200b41bb58 (dispmanx_gfx.c) Nit 2015-11-28 17:07:52 +01:00
twinaphex
70850c8ca3 (dispmanx_gfx.c) Cleanups 2015-11-28 17:00:44 +01:00
Higor Eurípedes
9bc10fef7a (gl) Fix invalid enum error 2015-11-27 21:53:31 -03:00
Higor Eurípedes
428bc30a61 (gl) Add checks for full npot support 2015-11-27 21:21:23 -03:00
twinaphex
dd68465f74 (exynos_gfx.c) Cleanups 2015-11-26 19:38:17 +01:00
twinaphex
7c52d380bf Move memsetting of fds and evctx to drm_common.c 2015-11-26 18:59:36 +01:00
twinaphex
00cf57eac0 Header include drm_common.h already includes essential
DRM headers
2015-11-26 18:57:29 +01:00
twinaphex
25680ec8a6 Create more DRM common functions 2015-11-26 18:47:07 +01:00
twinaphex
60ead8f6b1 Create drm_get_encoder 2015-11-26 18:23:51 +01:00
twinaphex
2693e16f1e (Exynos/DRM EGL context driver) Unify more code 2015-11-26 18:05:27 +01:00
twinaphex
7e08f5d908 Create drm_free 2015-11-26 17:34:35 +01:00
twinaphex
e06121b661 Move more common code to drm_common.c 2015-11-26 17:30:01 +01:00
twinaphex
8f9c652693 Add gfx/common/drm_common.c and gfx_common/drm_common.h 2015-11-26 17:12:06 +01:00
twinaphex
c720bce8a9 Update variable name/buildfix 2015-11-26 02:29:43 +01:00
aliaspider
be5755fe59 (3DS) build fix. 2015-11-24 12:02:02 +01:00
Twinaphex
0958acd0b1 Merge pull request #2455 from aliaspider/master
(3DS) update.
2015-11-24 11:36:00 +01:00
aliaspider
38579e56ff (3DS) gfx driver: add missing d-cache flush. 2015-11-24 11:25:28 +01:00
twinaphex
516422b1d1 Build fix 2015-11-24 00:23:32 +01:00
twinaphex
a3e52a9369 Put M_PI inside retro_miscellaneous.h 2015-11-24 00:05:37 +01:00
twinaphex
deae90e0bb Move use_rgba to gfx/video_driver.c - get rid of driver_t dependencies 2015-11-23 23:58:40 +01:00
twinaphex
32b363c75e Cleanups 2015-11-23 21:32:05 +01:00
twinaphex
6f18656baa driver->video_context should be self-contained now to video_context_driver.c 2015-11-23 21:20:21 +01:00
Alcaro
7b66b65823 Add some error messages if the null drivers are used. 2015-11-23 19:42:46 +01:00
twinaphex
c0cc5fac53 Cleanups 2015-11-23 18:25:42 +01:00
twinaphex
8030f91667 Don't use video_driver_get_ptr inside shader_null 2015-11-23 16:41:50 +01:00
twinaphex
4cccd6d596 (sdl2_gfx.c) Buildfix 2015-11-23 14:55:20 +01:00
twinaphex
beceaf4a8c Merge video_pixel_converter.c with video_driver.c 2015-11-23 13:02:24 +01:00
twinaphex
86504392b9 Create video_driver_set_size 2015-11-23 12:54:15 +01:00
twinaphex
074f14b132 Add verbosity.c/verbosity.h 2015-11-23 12:03:38 +01:00
twinaphex
85dbeeb8f9 No more video_monitor.h 2015-11-22 13:32:46 +01:00
twinaphex
892d99b3a6 Add SET_VIEWPORT_CONFIG 2015-11-21 13:13:55 +01:00
twinaphex
806c124eae Merge video_viewport.c and video_driver.c 2015-11-21 13:01:23 +01:00
twinaphex
5b44bd0e6b Create RARCH_DISPLAY_CTL_SET_VIEWPORT_SQUARE_PIXEL 2015-11-21 12:54:38 +01:00
twinaphex
4db97a5300 Refactor away video_viewport_set_core 2015-11-21 12:45:36 +01:00
twinaphex
cf5533ccaa Refactor away video_viewport_reset_custom 2015-11-21 12:36:14 +01:00
twinaphex
0f33722f5d Refactor Wii per-game resolution mode to be somewhat generic 2015-11-21 08:56:24 +01:00
twinaphex
6286e4b74c Add RARCH_DISPLAY_CTL_CACHED_FRAME_RENDER 2015-11-20 15:34:10 +01:00
aliaspider
7f5ae4bdba (3DS) can compile with latest ctrulib/great-refactor.
fix some warnings.
2015-11-19 23:15:48 +01:00
twinaphex
c8130120bc Turn g_x11_has_focus into static variable 2015-11-19 12:23:01 +01:00
twinaphex
655520aeec Create x11_install_quit_atom 2015-11-19 12:18:35 +01:00
twinaphex
9b44a2496b (xvideo.c) Cleanup 2015-11-19 12:15:37 +01:00
twinaphex
e3aba24e42 (X11) Code de-duplication 2015-11-19 12:05:32 +01:00
twinaphex
50cd3bc185 Create x11_colormap_destroy 2015-11-19 11:55:05 +01:00
twinaphex
48495980ba Create x11_window_destroy 2015-11-19 11:49:09 +01:00
twinaphex
ce2b973beb Create x11_input_ctx_new/x11_input_ctx_destroy 2015-11-19 11:27:41 +01:00
twinaphex
56e5d0bf3e Create g_x11_xim 2015-11-19 11:24:56 +01:00
twinaphex
f868cbab31 Create x11_update_window_title 2015-11-19 11:18:57 +01:00
twinaphex
eb31cf4d43 Cleanup xv_focus 2015-11-19 11:14:28 +01:00
twinaphex
d23557d38e Start restricting scope of g_x11_has_focus 2015-11-19 11:13:59 +01:00
twinaphex
95a5818ccb Create x11_install_sighandlers 2015-11-19 11:04:17 +01:00
twinaphex
704709f82e (xvideo.c) Reorder headers 2015-11-19 10:54:30 +01:00
twinaphex
8480bc3c19 Create x11_alive - get rid of some code duplication in xvideo.c 2015-11-19 10:46:16 +01:00
twinaphex
66c15314e2 Get rid of some header files 2015-11-19 08:56:08 +01:00
twinaphex
9d98bfbe6b (GX) Move defines to defines/gx_defines.h 2015-11-18 12:55:28 +01:00
twinaphex
3b7e53bf58 (GX) Cleanups 2015-11-18 12:18:43 +01:00
twinaphex
a3a5a82d47 (GL) doesn't access global state anymore 2015-11-18 03:08:19 +01:00
twinaphex
b5929e800f Get rid of useless cast 2015-11-17 08:47:42 +01:00
twinaphex
2078331495 Move gfx/pixman to gfx/include 2015-11-17 08:35:00 +01:00
twinaphex
239ae7de53 Move gl_common to gfx/common 2015-11-17 08:01:33 +01:00
twinaphex
68421a7521 (GX) Rollback 2015-11-17 04:29:09 +01:00
twinaphex
656edd4477 (GX) Buildfix 2015-11-15 21:16:29 +01:00
twinaphex
8a43aecb11 (GX) Style nits 2015-11-15 21:09:32 +01:00
twinaphex
5e7f90eae8 (GX) Style nits 2015-11-15 21:06:55 +01:00
twinaphex
37b4735c4c (GX) move variables to gx_video_t 2015-11-15 20:44:30 +01:00
twinaphex
1009f12939 (GX) Add framebuf to gx video struct 2015-11-15 20:33:31 +01:00
twinaphex
1ef9601966 Revert "(GL) Cleanups"
This reverts commit 36d5cc890b.
2015-11-14 05:27:44 +01:00
aliaspider
13699280b4 (3ds) video driver:
- fix frame dupes
- bypass DMA for small frames.
2015-11-12 15:00:53 +01:00
twinaphex
7e592df3e8 (vg.c) Variable rename 2015-11-11 03:28:40 +01:00
twinaphex
36d5cc890b (GL) Cleanups 2015-11-10 15:32:07 +01:00
twinaphex
ed35db13e8 Fix some linking errors with CXX_BUILD 2015-11-09 05:23:11 +01:00
twinaphex
7e207626ad (gl.c) Add video_texture.h header include 2015-11-09 02:08:40 +01:00
twinaphex
8a55aae0a5 Move gl_load_texture_data to video_texture_c 2015-11-09 02:07:17 +01:00
Andrés
d638a12c87 Merge pull request #2328 from aliaspider/master
(3DS) implement dynamic memory management.
2015-11-01 19:27:27 -05:00
aliaspider
8741ec48d5 (3DS) implement dynamic memory management.
heap/linear heap and stack sizes can now change dynamically at runtime,
depending on usage, no need to specify those on a per-core basis
anymore.
2015-11-02 01:24:11 +01:00
twinaphex
40a4a7a354 (OSX PPC/PS3) Forcibly disable mipmapped textures 2015-11-01 16:11:17 +01:00
twinaphex
922e6f868b Don't assume we can use NPOT mipmapped textures for anything GLES2 2015-10-30 16:23:44 +01:00
Twinaphex
c85414c7be (iOS) Force mipmapping off for textures on iOS 2015-10-29 23:23:56 +01:00
twinaphex
df01279cf3 Add non-HAVE_MENU ifdefs 2015-10-28 00:55:11 +01:00
Twinaphex
0447c1b442 Merge pull request #2293 from aliaspider/master
(3DS) - add an audio driver using the DSP.
2015-10-27 01:38:38 +01:00
aliaspider
aeeb2a62d6 (3DS) - add an audio driver using the DSP.
- add some hooks to inspect memory usage.
2015-10-27 01:06:34 +01:00
twinaphex
02a43c6b2a Change 'rarch' to 'retro' namespace in libretro-common 2015-10-26 03:18:13 +01:00
aliaspider
ac119b04f6 (CTR/3DS) improve memory management.
- use a custom crt0 to allow overriding __heap_size and
__linear_heap_size
- add a setting for maximum heap size. unallocated memory can be freely
mapped by the core.
- add better detection of the extra memory available when running from
the HBL.
2015-10-22 20:35:22 +01:00
aliaspider
339acfecf1 (CTR/3DS) update code to use ctrulib/great-refactor 2015-10-21 15:41:06 +01:00
aliaspider
3a30baab57 (CTR/3DS) add support for RETRO_PIXEL_FORMAT_XRGB8888 2015-10-20 16:03:39 +01:00
aliaspider
8cc805c38a (CTR/3DS) reduce memory usage.
build fix.
2015-10-20 12:34:53 +01:00
twinaphex
2b9e5539fb Add another HAVE_FBO ifdef 2015-10-11 16:54:01 +02:00
twinaphex
6683ab16ef (GL) Add HAVE_FBO ifdef around FBO feedback code 2015-10-11 16:53:18 +02:00
twinaphex
ab2aec9b66 xshm.c - buildfix 2015-10-11 16:22:59 +02:00
Alcaro
f4a5cbbe5b Add this half-finished (okay, 5%-finished) driver. 2015-10-11 09:50:49 +02:00
twinaphex
a61104dba3 Create video_shader_scale 2015-10-07 18:18:49 +02:00
aliaspider
fc1524be5d (CTR/3DS) nit. 2015-10-06 19:57:46 +01:00
aliaspider
44dc270c87 (CTR/3DS) use an aptHook to enable the LCD when the app is suspended. 2015-10-06 19:56:11 +01:00
aliaspider
b7be1862a3 (CTR/3DS) increase the default size of the linear heap.
makefile: allow changing stack/linear heap size without requiring a
clean.
2015-10-05 21:45:17 +01:00
aliaspider
b9978317cc (CTR/3DS) video driver: increase texture width. 2015-10-04 19:22:23 +01:00
aliaspider
71efe15bce (CTR/3DS) don't turn off the LCD for 2DS models. 2015-10-03 19:37:01 +01:00
aliaspider
68e2c306a9 (CTR/3DS) video driver: better detection of frames allocated with
linearAlloc.
2015-10-02 04:59:16 +01:00
Francisco José García García
8e652f613a (Vita) OSD messages 2015-10-02 00:11:54 +02:00
aliaspider
c9acd9156c (CTR/3DS) gfx driver: remove useless printf. 2015-10-01 18:28:27 +01:00
aliaspider
63ab3b02b8 (CTR/3DS) shut down the LCD backlight when toggling the buttom display
off.
courtesy of @thedax.
2015-10-01 18:12:59 +01:00
twinaphex
e4a781b489 (GX) Buildfix 2015-09-29 21:47:43 +02:00
Francisco José García García
4f7be65f32 (Vita) Add Overlays 2015-09-29 20:01:42 +02:00
twinaphex
87d44af218 Static code analysis cleanups 2015-09-29 18:08:33 +02:00
twinaphex
e986b9e42a Static code analysis cleanups 2015-09-29 17:35:28 +02:00
Twinaphex
4f02326171 Merge pull request #2179 from aliaspider/master
(CTR/3DS) improve audio/video sync.
2015-09-28 21:50:10 +02:00
aliaspider
48ec5190ba (CTR/3DS) improve audio/video sync. 2015-09-28 20:09:07 +01:00
twinaphex
0cc56e2a1a More static code analysis nits 2015-09-28 18:44:28 +02:00
twinaphex
631da50dfa More static code analysis nits 2015-09-28 18:22:27 +02:00
twinaphex
4ca5d31f9b Some more static code analysis nits when ran with enable=all 2015-09-28 18:12:02 +02:00