Commit Graph

4387 Commits

Author SHA1 Message Date
twinaphex 3ea560d516 Change WndProcCommon 2015-11-30 06:27:00 +01:00
twinaphex 7cc7305263 (HLSL) No longer depend on driver struct 2015-11-30 02:28:35 +01:00
twinaphex 321322ab7d (GLSL) Don't use driver struct anymore 2015-11-30 02:20:49 +01:00
twinaphex b996645f46 (shader_gl_cg.c) No longer use driver ptr 2015-11-30 02:08:15 +01:00
twinaphex ef591c416d Cleanups 2015-11-29 23:01:37 +01:00
twinaphex b62738465c Move video_active to gfx/video_driver.c 2015-11-29 21:38:47 +01:00
twinaphex e2fde41124 Move current_msg to gfx/video_driver.c 2015-11-29 20:59:52 +01:00
twinaphex a2399bc2cf Remove unused variable 2015-11-29 20:45:23 +01:00
twinaphex 1d44619f41 Move driver->video_cache_context and driver->video_cache_context_ack
to video_driver.c
2015-11-29 20:44:51 +01:00
twinaphex df9f0fc6d1 Move input_data_own to input_driver.c 2015-11-29 20:34:35 +01:00
twinaphex c62150c2a2 Move video_data_own to gfx/video_driver.c 2015-11-29 20:23:16 +01:00
twinaphex d181870caa No more dependency on driver_t for driver->input 2015-11-29 19:18:59 +01:00
twinaphex 7a6f444823 No more references to driver->input from outside 2015-11-29 19:07:02 +01:00
twinaphex 778c9a25d6 Remove another call to driver->input from inside 2015-11-29 19:03:23 +01:00
twinaphex 4ff0492e3d Start getting rid of driver->input references 2015-11-29 19:02:27 +01:00
twinaphex d76d9d3411 (gfx/video_driver.c) Cleanup 2015-11-29 18:30:22 +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 6fd6288337 Move block_libretro_input to input_driver.c 2015-11-29 17:33:29 +01:00
twinaphex a02728fee3 Cleanups 2015-11-29 03:35:19 +01:00
twinaphex 9fd9fd10e8 Create input_x11_common 2015-11-29 03:34:09 +01:00
twinaphex be0857aff2 move video_pixel_scalar struct to gfx/video_driver.c 2015-11-29 01:48:25 +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 c75885b7b4 Remove gfx/video_driver.h dependency from driver.h 2015-11-29 01:15:40 +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 c82fc11ba3 Get rid of now unused win32_video_get_ident 2015-11-28 22:01:44 +01:00
twinaphex a0aecd097e (Win32) Buildfix 2015-11-28 22:01:02 +01:00
twinaphex 7eb441a50f (Win32) Cut down on code duplication 2015-11-28 22:00:22 +01:00
twinaphex d810ba607b Get rid of extern "C" for WndProc 2015-11-28 21:55:46 +01:00
twinaphex c20c6a5438 (Win32) Buildfixes 2015-11-28 21:54:32 +01:00
twinaphex 883179bc40 (Win32) Buildfix 2015-11-28 21:52:09 +01:00
twinaphex ef3cbed13e Create separate WndProc for GL and D3D 2015-11-28 21:50:28 +01:00
twinaphex 3b903adea1 Don't try to access driver->input_data from outside 2015-11-28 18:26:05 +01:00
twinaphex be71e654f3 Create input_driver_get_data_ptr 2015-11-28 18:22:05 +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
twinaphex 2b4464f30a Implement RARCH_MAIN_CTL_IS_IDLE 2015-11-28 15:03:59 +01:00
twinaphex a6ccc188a8 Rename input_common.c to input_config.c 2015-11-28 02:22:58 +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 265e36a5d0 Some CXX_BUILD buildfixes 2015-11-28 00:33:01 +01:00
twinaphex a8d868f187 (Android) Implement 'focused' callback for androidegl_ctx 2015-11-27 20:38:29 +01:00
twinaphex dd68465f74 (exynos_gfx.c) Cleanups 2015-11-26 19:38:17 +01:00
twinaphex 5c28a8389a (DRM/EGL) No need to grab context data pointer anymore 2015-11-26 19:12:47 +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 9c2813a757 Turn a bunch of variables static 2015-11-26 18:49:58 +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 0225e2e65a Cleanups 2015-11-26 18:18:44 +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
twinaphex 73ce9c0d23 Add another RARCH_INPUT_CTL_* command 2015-11-25 18:33:18 +01:00
twinaphex 14b2b8ada7 Start creating input_driver_ctl 2015-11-25 18:21:21 +01:00
twinaphex c9db73e944 Contain driver->input_data usage pt. 2 2015-11-25 03:25:31 +01:00
twinaphex d2f771440b Contain driver->input_data usage 2015-11-25 03:15:22 +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 1639f27f8c Turn check_block_hotkey into static function 2015-11-24 01:54:21 +01:00
twinaphex cd51102281 Remove scaler_get_ptr 2015-11-24 01:50:37 +01:00
twinaphex 009813a694 Derp - ininite loop 2015-11-24 01:36:27 +01:00
twinaphex 51291067eb video_driver.c) Turn some functions static 2015-11-24 01:30:52 +01:00
twinaphex 1f62479068 move video_frame to gfx/video_driver.c 2015-11-24 01:26:59 +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 ffbaef13b9 driver->threaded_video never used - buildfix for Windows 2015-11-23 22:29:27 +01:00
twinaphex 06035875f2 Divorce video poke interface from driver_t struct 2015-11-23 22:14:39 +01:00
twinaphex 32b363c75e Cleanups 2015-11-23 21:32:05 +01:00
twinaphex 866501703f Cleanups 2015-11-23 21:28:54 +01:00
twinaphex f234996b49 Divorce driver->video_context from driver_t struct 2015-11-23 21:24:02 +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
twinaphex 0520a1b3c7 Divorce video_context_data from driver_t 2015-11-23 21:09:40 +01:00
twinaphex f98cda3c33 video_context_data only accessed now from one file 2015-11-23 21:06:15 +01:00
twinaphex 3ad52d0f08 Cleanups 2015-11-23 21:00:56 +01:00
twinaphex 1f87c6d9e2 Dont' try to access driver->video_context_data directly 2015-11-23 20:56:06 +01:00
twinaphex 41b46975f9 Cleanups - go through standard functions 2015-11-23 20:45:09 +01:00
twinaphex d23d1f6cb0 (D3D) Attempted buildfix 2015-11-23 20:30:56 +01:00
Higor Eurípedes d665f8a6e4 (video_driver) Fix crash in deinit_pixel_converter() 2015-11-23 15:46:56 -03:00
Alcaro 7b66b65823 Add some error messages if the null drivers are used. 2015-11-23 19:42:46 +01:00
twinaphex 24400bc797 Divorce audio_data from driver_t struct 2015-11-23 19:22:18 +01:00
twinaphex be7e4ad96b Move video_data to gfx/video_driver.c 2015-11-23 19:05:49 +01:00
twinaphex 389cf13db5 Don't reference driver->video_data outside of gx/video_driver.c anymore 2015-11-23 18:51:04 +01:00
twinaphex c0cc5fac53 Cleanups 2015-11-23 18:25:42 +01:00
twinaphex f9671333b5 Divorce current_video from driver_t struct 2015-11-23 18:11:17 +01:00
twinaphex 672a3814d6 Create more VIDEO_DRIVER_CTL_ commands 2015-11-23 18:01:46 +01:00
twinaphex 8030f91667 Don't use video_driver_get_ptr inside shader_null 2015-11-23 16:41:50 +01:00
twinaphex c7dc83533a Add param to video_driver_get_ptr for grabbing the nonthreaded
data state
2015-11-23 16:06:09 +01:00
twinaphex 76d6378228 Go through video_driver_ctl 2015-11-23 15:01:49 +01:00
twinaphex 4cccd6d596 (sdl2_gfx.c) Buildfix 2015-11-23 14:55:20 +01:00
twinaphex 2e3c3d25b5 Create video_driver_frame 2015-11-23 14:53:56 +01:00
twinaphex 9b41061143 Rename driver->video 2015-11-23 14:14:12 +01:00
twinaphex daedeced2c (render_chain_xdk.cpp) Add verbosity.h header include 2015-11-23 13:15:37 +01:00
twinaphex 6fbd7dce35 render_chain_cg.cpp - add verbosity.h 2015-11-23 13:14:09 +01:00
twinaphex 1bd2f2eb8a Make some pixel converter functions static 2015-11-23 13:05:50 +01:00
twinaphex beceaf4a8c Merge video_pixel_converter.c with video_driver.c 2015-11-23 13:02:24 +01:00
twinaphex e970372959 (D3D) Buildfix 2015-11-23 13:02:02 +01:00
twinaphex 86504392b9 Create video_driver_set_size 2015-11-23 12:54:15 +01:00
twinaphex b434689d39 (Win32) Buildfixes 2015-11-23 12:14:53 +01:00
Twinaphex 5974f81ed8 (OSX) Buildfixes 2015-11-23 12:07:00 +01:00
twinaphex 074f14b132 Add verbosity.c/verbosity.h 2015-11-23 12:03:38 +01:00
twinaphex 6470253f0d (Win32) Buildfixes 2015-11-22 22:25:01 +01:00
twinaphex 85dbeeb8f9 No more video_monitor.h 2015-11-22 13:32:46 +01:00
twinaphex aa1e8dc543 (menu_setting) Refactor this macro mess 2015-11-21 16:32:22 +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 aad6a3a2a6 CXX_BUILD - buildfixes 2015-11-21 12:32:12 +01:00
twinaphex 96b41b43b5 Cleanups 2015-11-21 11:24:02 +01:00
twinaphex e3c09e00b9 Move setting to function 2015-11-21 11:22:34 +01:00
twinaphex 35aef696ea Add RARCH_DISPLAY_CTL_DEFAULT_SETTINGS 2015-11-21 09:55:08 +01:00
twinaphex b69caea6c1 Set g_egl_inited to false after egl_destroy 2015-11-21 09:39:25 +01:00
twinaphex efa673c7b0 Make g_egl_use_hw_ctx a static variable 2015-11-21 09:37:26 +01:00
twinaphex 30272dd413 Create 'loading and saving' of configuration settings for video_driver_ctl 2015-11-21 09:32:51 +01:00
twinaphex 0f33722f5d Refactor Wii per-game resolution mode to be somewhat generic 2015-11-21 08:56:24 +01:00
twinaphex de44911092 (PS3/Wii) Reimplement video resolution code 2015-11-21 08:39:46 +01:00
twinaphex ad75d00bd4 Implement get_video_output_size 2015-11-21 08:18:14 +01:00
twinaphex 1c3ba76e67 (PS3) Implement video output get prev/next 2015-11-21 07:54:42 +01:00
twinaphex 60aad558d8 (PS3) Cleanups 2015-11-21 07:43:53 +01:00
twinaphex 658c5d4ceb (PS3) Cleanups 2015-11-21 07:32:08 +01:00
twinaphex e09e65e348 Add RARCH_DISPLAY_CTL_GET_NEXT_VIDEO_OUT 2015-11-20 21:20:12 +01:00
twinaphex b4ec6e208b init_video_input - cleanups 2015-11-20 21:07:15 +01:00
twinaphex d0ccd7065b Turn another function static 2015-11-20 21:05:27 +01:00
twinaphex daadda2553 Cleanups 2015-11-20 20:49:49 +01:00
twinaphex a7cb5b8491 Add RARCH_DISPLAY_CTL_MONITOR_ADJUST_SYSTEM_RATES 2015-11-20 20:47:47 +01:00
twinaphex e1ac9aed6b Add RARCH_DISPLAY_CTL_MONITOR_RESET 2015-11-20 19:04:00 +01:00
twinaphex 21cabec759 Add RARCH_DISPLAY_CTL_{DEINIT/INIT} 2015-11-20 19:01:13 +01:00
twinaphex c1fa9dc637 Make video_driver_unset_callback a static function 2015-11-20 18:57:04 +01:00
twinaphex 0184a73de8 init_video - cleanups 2015-11-20 18:55:01 +01:00
twinaphex ddde58caf4 Simplify video_driver_get_ptr 2015-11-20 18:50:21 +01:00
twinaphex 9ea40f5e32 Add RARCH_DISPLAY_CTL_SET_ASPECT_RATIO 2015-11-20 18:45:00 +01:00
twinaphex 5069d71295 Cleanups 2015-11-20 18:41:25 +01:00
twinaphex 225757f68c video_driver_ctl - cleanups 2015-11-20 18:38:08 +01:00
twinaphex 993da04e3b simplify video_driver_ctl 2015-11-20 18:36:38 +01:00
twinaphex d68401aa4d Add RARCH_DISPLAY_CTL_SHOW_MOUSE 2015-11-20 17:26:39 +01:00
twinaphex 3e986f9562 Add RARCH_DISPLAY_CTL_SET_NONBLOCK_STATE 2015-11-20 17:22:19 +01:00
twinaphex 7c10d0f796 (vc_eg_ctx.c) Move header below egl_common.h 2015-11-20 16:58:31 +01:00
twinaphex a59ca22457 Add RARCH_DISPLAY_CTL_FIND_DRIVER 2015-11-20 15:59:01 +01:00
twinaphex 704ff87b12 Add RARCH_DISPLAY_CTL_APPLY_STATE_CHANGES 2015-11-20 15:55:09 +01:00
twinaphex 09dda14549 Add RARCH_DISPLAY_CTL_READ_VIEWPORT 2015-11-20 15:41:20 +01:00
twinaphex d8eeed0a9e Add RARCH_DISPLAY_CTL_CACHED_FRAME_HAS_VALID_FB 2015-11-20 15:38:10 +01:00
twinaphex 6286e4b74c Add RARCH_DISPLAY_CTL_CACHED_FRAME_RENDER 2015-11-20 15:34:10 +01:00
twinaphex 0d5c928e68 video_driver_ctl - avoid cost of grabbing the pointers for actions
where it isn't needed
2015-11-20 15:25:25 +01:00
twinaphex 5cea9e5400 Add RARCH_DISPLAY_CTL_IS_FOCUSED 2015-11-20 15:24:24 +01:00
twinaphex 7141210d15 Remove video_driver_has_windowed 2015-11-20 15:20:54 +01:00
twinaphex ba4643a7c1 Add RARCH_DISPLAY_CTL_FRAME_FILTER_IS_32BIT 2015-11-20 15:16:58 +01:00
twinaphex 7b1f57b1cd Add RARCH_DISPLAY_CTL_FRAME_FILTER_ALIVE 2015-11-20 15:14:12 +01:00
twinaphex 533b799692 Create video_driver_ctl and get rid of video_driver_get_frame_count 2015-11-20 15:08:27 +01:00
twinaphex 1686eb8f7f (vc_egl_ctx.c) Cleanup 2015-11-20 14:34:40 +01:00
twinaphex 990bffcc27 (wgl_ctx.cpp) Cleanups 2015-11-20 14:32:46 +01:00
twinaphex e466995c70 (xegl_ctx.c) Get rid of forward declaration 2015-11-20 14:31:09 +01:00
twinaphex c6e962a43e (bbqnx) Use g_egl_api 2015-11-20 14:30:32 +01:00
twinaphex 1d4b5691c9 (DRM/EGL) Add goto error 2015-11-20 13:50:17 +01:00
twinaphex 259674fee2 (vivante fbdev) Add function pointer for rendering hardware contexts 2015-11-20 13:46:41 +01:00
twinaphex 2f151896eb use egl_create_surface everywhere 2015-11-20 13:43:05 +01:00
twinaphex fc0f5f8889 Create egl_create_surface 2015-11-20 13:36:16 +01:00
twinaphex 1101bb34d3 Create g_egl_api/g_egl_inited 2015-11-20 13:27:31 +01:00
aliaspider 7f5ae4bdba (3DS) can compile with latest ctrulib/great-refactor.
fix some warnings.
2015-11-19 23:15:48 +01:00
twinaphex 3c842823bc (Mali/Wayland) Use egl_create_context 2015-11-19 18:36:24 +01:00
twinaphex 01614bb7f4 Start using egl_create_context in more drivers 2015-11-19 18:29:15 +01:00
twinaphex f84c58e777 (Android) Start using egl_create_context 2015-11-19 18:25:19 +01:00
twinaphex 033e0ac3ad (drm_egl_ctx.c) Start using egl_create_context 2015-11-19 18:18:44 +01:00
twinaphex c1e61f7ff0 Start using egl_init_context for most GLES context drivers 2015-11-19 18:10:59 +01:00
twinaphex 4c1ac3222c Start using egl_init_context in more drivers 2015-11-19 18:01:37 +01:00
twinaphex 6048025544 (Android) Use egl_init_context too 2015-11-19 17:55:49 +01:00
twinaphex ad260fcb7b Create egl_init_context 2015-11-19 17:52:25 +01:00
twinaphex 512585f673 (DRM/EGL) Cleanups 2015-11-19 17:02:02 +01:00
twinaphex 64bfea11f6 (DRM/EGL) Cleanups 2015-11-19 16:46:38 +01:00
twinaphex a0ac41f49f (DRM/EGL) Cleanups 2015-11-19 16:32:58 +01:00
twinaphex b35c5e244f (DRM/EGL) Cleanups 2015-11-19 16:06:16 +01:00
twinaphex ee3f625a83 Remove signal includes 2015-11-19 15:57:09 +01:00
twinaphex 80369a8823 Create egl_install_sighandlers 2015-11-19 15:55:57 +01:00
twinaphex ad311d3bb0 Set g_egl_quit to 0 at end of egl_destroy 2015-11-19 15:49:49 +01:00
twinaphex 2fe6686ced Create g_egl_quit 2015-11-19 15:47:30 +01:00
twinaphex 34543c3f1c (vc_egl_ctx.c) Remove g_quit variable 2015-11-19 15:43:10 +01:00
twinaphex 5bf5c7d790 (mali_fbdev) Cleanup 2015-11-19 15:40:13 +01:00
twinaphex 55591e97c3 (DRM/EGL) Nit 2015-11-19 15:39:25 +01:00
twinaphex e84d77bf64 (BBQNX) Cleanup 2015-11-19 15:37:43 +01:00
twinaphex 774542fc62 Simplify egl_destroy 2015-11-19 15:34:40 +01:00
twinaphex 36b278fb84 (DRM/EGL) Use g_interval variable 2015-11-19 15:32:02 +01:00
twinaphex 46fb98e21c Create egl_get_video_size 2015-11-19 15:21:04 +01:00
twinaphex 5aedc1c4ca Create egl_set_swap_interval 2015-11-19 15:16:37 +01:00
twinaphex 00be95159d Create x11_event_queue_check 2015-11-19 15:05:17 +01:00
twinaphex 21124ec80a (GLX) Simplification 2015-11-19 15:00:12 +01:00
twinaphex 7c9f357c1b Simplify glx_wait_notify 2015-11-19 14:59:26 +01:00
Twinaphex 61b4236079 Merge pull request #2432 from heuripedes/master
Fix warnings
2015-11-19 14:49:00 +01:00
twinaphex 599f68bf63 (DRM/EGL) Always focused 2015-11-19 14:48:35 +01:00
twinaphex 200c42e7ee No longer need context data struct for Android 2015-11-19 14:43:22 +01:00
twinaphex 7b39fd50a3 Create egl_swap_buffers 2015-11-19 14:38:55 +01:00
twinaphex e2c82900d1 Create egl_bind_hw_render 2015-11-19 14:32:39 +01:00
twinaphex 6dee1fcc92 Move g_use_hw_ctx to egl_common.c 2015-11-19 14:28:21 +01:00
twinaphex 9705dc8d04 Create egl_destroy 2015-11-19 14:23:14 +01:00
twinaphex 36579ae58d Start moving identical state variables to egl_common.c 2015-11-19 14:09:51 +01:00