Commit Graph

5392 Commits

Author SHA1 Message Date
twinaphex ef93f92ea2 Cleanups 2016-02-29 17:22:57 +01:00
twinaphex a8ccf2531d Cleanups 2016-02-29 17:21:40 +01:00
twinaphex e6da374bb5 Cleanups 2016-02-29 17:18:28 +01:00
twinaphex a4c9d02953 Add DestroyImage funcptr 2016-02-29 17:16:01 +01:00
twinaphex 874b5b7e17 Go through more funcptrs 2016-02-29 17:13:13 +01:00
twinaphex 8fd280967b Go through funcptr 2016-02-29 17:08:25 +01:00
twinaphex 5863996d83 Go through VKFUNC 2016-02-29 17:06:41 +01:00
twinaphex 8f69470c25 Go through VKFUNC macro 2016-02-29 17:00:08 +01:00
twinaphex d6005c224c Go through VKFUNC 2016-02-29 16:55:50 +01:00
twinaphex 6836b5f868 vkCreateImage - go through funcptr 2016-02-29 16:48:55 +01:00
twinaphex 3677144d18 Start going through VKFUNC 2016-02-29 16:47:21 +01:00
twinaphex 6c9e8041c6 Add function pointer for vkCreateCommandPool 2016-02-29 16:41:49 +01:00
twinaphex 6dce80ea07 Add function pointers for vkCreatePipelineCache and vkCreatePipelineLayout 2016-02-29 16:37:15 +01:00
twinaphex 778b50fc28 Add funcptr for vkCreateFramebuffer 2016-02-29 16:32:34 +01:00
twinaphex 361cce328d vkCreateRenderPass - add funcptr 2016-02-29 16:30:45 +01:00
twinaphex 277e2977ff (Vulkan) Add function pointer to vkDestroyDevice 2016-02-29 16:28:12 +01:00
twinaphex 4248e244a8 Go through funcptr for vkCmdCopyImage 2016-02-29 06:52:08 +01:00
twinaphex 01f5a7ad84 Go through vkQueueWaitIdle function pointer 2016-02-29 06:31:55 +01:00
twinaphex 89ee08214d We need to grab a function pointer to vkCmdDraw later after
vkCreateDevice
2016-02-29 06:21:42 +01:00
twinaphex be5333371b (Vulkan) More funcptrs 2016-02-29 06:16:31 +01:00
twinaphex bfd38e171b (Vulkan) More Vulkan funcptrs 2016-02-29 05:57:38 +01:00
twinaphex 3abea50cbf Move function pointers to vulkan_context 2016-02-29 05:49:05 +01:00
twinaphex 2a621a8424 Go through vkEnumeratePhysicalDevices funcptr 2016-02-29 05:37:37 +01:00
twinaphex cf03851cc8 Add vkGetDeviceQueue funcptr 2016-02-29 05:37:37 +01:00
twinaphex 5e970637d4 (Vulkan) Add more function pointers 2016-02-29 05:32:10 +01:00
twinaphex 25d741e26a Start setting up more function pointers 2016-02-29 04:21:08 +01:00
twinaphex 82f5d917f0 Start trying to roll our own Vulkan loader based on PPSSPP
approacha
2016-02-29 03:14:17 +01:00
twinaphex a8185f0b81 Cleanups 2016-02-29 02:54:46 +01:00
twinaphex b4e872476b Prevent some more crashes 2016-02-29 02:09:10 +01:00
twinaphex 4f1ab1f9c3 (gl_raster_font.c) Add early return in case gl pointer is NULL 2016-02-29 01:54:54 +01:00
twinaphex 65b628cf20 Cover more edge cases for crashes initiated by Zarch 2016-02-29 01:49:58 +01:00
twinaphex 09f2b64c1f gl_render_overlay -add early return 2016-02-29 01:43:40 +01:00
twinaphex 34f3963e4e Simplify RUNLOOP_CTL_IS_SLOWMOTION 2016-02-29 01:33:14 +01:00
twinaphex 6fbad68561 (gl.c) Cleanup 2016-02-29 01:29:49 +01:00
twinaphex 7d346d627f Robustness fixes 2016-02-29 01:22:39 +01:00
twinaphex ca497533db Fix C89_BUILD warning 2016-02-28 22:47:46 +01:00
Monroe88 a669039523 Add option for menu linear filter 2016-02-27 17:30:12 -06:00
twinaphex ac3cb48302 (VG) Style nits 2016-02-26 17:36:39 +01:00
twinaphex d9b86c4f6b Remove stub xshm video driver for now 2016-02-26 17:29:35 +01:00
twinaphex 2746bf0cb1 (xvideo.c) Cleanups 2016-02-26 17:26:26 +01:00
twinaphex 94b8e8820e (xvideo.c) Style nits 2016-02-26 17:24:36 +01:00
Twinaphex ea2094126b (iOS) Buildfix(iOS) Buildfix(iOS) Buildfix(iOS) Buildfix(iOS) Buildfix(iOS) Buildfix(iOS) Buildfix(iOS) Buildfix(iOS) Buildfix 2016-02-26 14:25:57 +01:00
Twinaphex 7e641b7274 (OSX) Silence deprecation warnings 2016-02-26 13:44:45 +01:00
twinaphex 4dfed7e930 Cast to NSOpenGLContext * 2016-02-26 13:39:01 +01:00
twinaphex dcefb740f2 Create glcontext_get_ptr 2016-02-26 13:36:12 +01:00
twinaphex c4b80e0e44 Fix CXX_BUILD - doesn't like a variable being named 'template' 2016-02-23 17:11:30 +01:00
Alcaro 7a6463a300 Add escape hatch if rarch (or the core) is in an infinite loop. 2016-02-23 16:11:39 +01:00
Alcaro 04ac09f579 One thing less to worry about when copypasting this, less risk of repeating 2d5e10e840. 2016-02-23 16:08:57 +01:00
Alcaro f8452e23c8 Don't use uninitialized variables. 2016-02-23 16:06:37 +01:00
FIX94 1ed54b8683 Merge branch 'master' of https://github.com/FIX94/RetroArch 2016-02-23 03:40:40 +01:00
FIX94 4f48e61b98 (GX) allow all resolutions to use aspect ratio settings and allow custom viewport x and y to use as much of the screen as possible while making sure to keep the system screen position in mind 2016-02-23 03:40:14 +01:00
twinaphex 6f6ba98576 (DRM) Add more HAVE_EGL ifdefs 2016-02-23 01:34:28 +01:00
twinaphex ffd94d3ac0 We cannot rely on vulkan_intel.h being available, so just
include its contents inside vulkan_common.h
2016-02-23 01:24:15 +01:00
twinaphex 6429bb6a40 (X context) rename g_api to x_api 2016-02-22 13:29:32 +01:00
twinaphex e688770e64 (SDL GL Ctx) Rename g_api to sdl_api 2016-02-22 13:26:26 +01:00
twinaphex f8a2014b7e (DRM) Rename g_drm to drm 2016-02-22 13:25:48 +01:00
twinaphex aa4015837f (DRM) DRM context driver should compile now without OpenGL 2016-02-22 13:04:34 +01:00
twinaphex d537b6ee9f Rename some files 2016-02-22 13:01:16 +01:00
twinaphex 1a5d2ce85c Start divorcing DRM context from EGL 2016-02-22 12:59:13 +01:00
twinaphex 85804838ad (DRM) More refactors 2016-02-22 12:56:16 +01:00
twinaphex 09fba6016b (DRM) Cleanups 2016-02-22 12:50:45 +01:00
twinaphex 034f1769c9 (DRM) Cleanups 2016-02-22 12:43:18 +01:00
twinaphex cc622b6905 Start getting rid of 'egl' namespace conventions in drm_egl context
driver
2016-02-22 12:37:38 +01:00
twinaphex ef1feca097 Some C89_BUILD fixes 2016-02-22 12:25:41 +01:00
twinaphex 47b34b38d2 (DRM) More HAVE_EGL ifdefs 2016-02-22 12:10:23 +01:00
twinaphex 7da0739b61 Get rid of global g_egl_api now too 2016-02-22 11:54:55 +01:00
twinaphex 22a677b3a8 Don't use egl_common's 'api' variable anymore 2016-02-22 11:54:19 +01:00
twinaphex fd7a62f5ca (Wayland) Context driver doesn't use egl api anymore 2016-02-22 11:48:17 +01:00
twinaphex a8a871bd4e (DRM) Create drm_api 2016-02-22 11:47:18 +01:00
twinaphex e4935d490c (DRM) Uses its own sighandler and atomic quit variable 2016-02-22 11:46:08 +01:00
twinaphex 3bebc2284f DRM gets its own interval variable inside data struct 2016-02-22 11:42:36 +01:00
twinaphex b421bdf687 (drm_egl_ctx.c) More ifdefs 2016-02-22 11:37:37 +01:00
twinaphex eceadcde2b (drm_egl_ctx.c) Add HAVE_EGL/HAVE_OPENGL ifdefs 2016-02-21 23:49:50 +01:00
Hans-Kristian Arntzen c4104ae37c Wayland: Add metrics support. 2016-02-21 22:04:56 +01:00
Hans-Kristian Arntzen 52a515f0d3 Wayland: Add HiDPI awareness. 2016-02-21 21:35:06 +01:00
Hans-Kristian Arntzen cece4e5ae2 Vulkan: Add workaround for broken VkImageView swizzling.
Certain early drivers fail to apply swizzle mask.
2016-02-21 13:52:30 +01:00
Hans-Kristian Arntzen f09338b1b8 Set alphaBlendOp correctly. 2016-02-21 13:40:19 +01:00
Hans-Kristian Arntzen 6e7f1371dd Vulkan: Fix scenario where we limit the number of frames too much. 2016-02-21 13:03:26 +01:00
Hans-Kristian Arntzen 9e060bf088 Fix STATIC texture upload. 2016-02-21 13:01:53 +01:00
Hans-Kristian Arntzen 0dddd671f8 Vulkan: Use more approriate barrier 2016-02-21 12:59:11 +01:00
Hans-Kristian Arntzen 4259ea3d06 Merge branch 'master' of git://github.com/libretro/RetroArch 2016-02-21 12:45:26 +01:00
Hans-Kristian Arntzen 36eb07e067 Vulkan: Use copy paths if needed. 2016-02-21 12:33:16 +01:00
twinaphex 254e0bbd90 vulkan_common.h - style nits 2016-02-21 10:11:35 +01:00
twinaphex f462954609 Style nits pt. 2 2016-02-21 10:09:41 +01:00
twinaphex 8ce2665383 Style nits 2016-02-21 10:08:36 +01:00
twinaphex 5f50034514 Refactor gfx_ctx_x_bind_api 2016-02-20 20:47:06 +01:00
twinaphex fbc7eaf287 (vulkan.c) Style nits 2016-02-20 20:29:52 +01:00
twinaphex 1426cf7fb2 (vulkan.c) Style nits 2016-02-20 20:15:46 +01:00
twinaphex 25c1c6202f Silence warning 2016-02-20 19:46:35 +01:00
twinaphex 9aeceadee6 Style nits for header 2016-02-20 16:37:59 +01:00
twinaphex 4bb3f35a02 80-char width limit style nits 2016-02-20 16:36:54 +01:00
Hans-Kristian Arntzen 8550c16f86 Always try to use cached memory if we can for linear textures.
Should improve cores which use SOFTWARE_FRAMEBUFFER.
2016-02-20 15:17:25 +01:00
Hans-Kristian Arntzen b61c05e10f Log the number of swapchain images we get. 2016-02-20 14:24:36 +01:00
Hans-Kristian Arntzen 111c37832a Make sure we get a queue which also supports compute.
Graphics + Compute queue must be supported.
2016-02-20 14:20:17 +01:00
Hans-Kristian Arntzen fa449646e9 Bug fixes for Vulkan readback.
We were getting weird and inconsistent viewport sizes back.
2016-02-20 14:04:33 +01:00
Hans-Kristian Arntzen bcac4a204f Vulkan: Set initial viewport after keep_aspect is correct.
Fixes fullscreen recording.
2016-02-20 13:46:20 +01:00
Hans-Kristian Arntzen 5542427246 Try to use cached memory for readbacks.
Speeds up nVidia readbacks by order of magnitude.
2016-02-20 12:04:53 +01:00
Hans-Kristian Arntzen 459c55989a Use vkCmdCopyImage for readbacks.
Blits often imply render targets.
2016-02-20 11:21:39 +01:00
twinaphex dbe6bc5cfb Move wayland context driver up the context driver foodchain,
should hopefully have Gnome Wayland default to it instead of the
slower X11/XCB context
2016-02-20 09:23:17 +01:00
twinaphex 481fa56f2c Move some code 2016-02-20 06:36:32 +01:00
twinaphex fde9f1ce2c Start making GL optional (previously we assumed pretty much - hardware
context = GL) Still have the issue where the menu driver auto-switches
back to rgui instead of glui/xmb
2016-02-20 06:16:34 +01:00
twinaphex 9bc889b908 Add improved preprocessor conditionals for x context 2016-02-20 05:50:37 +01:00
twinaphex 11c1535fe3 Rename glx context driver to x 2016-02-20 05:48:45 +01:00
Hans-Kristian Arntzen 4540369fcb Use correct cast for WSI_XLIB. 2016-02-19 22:25:51 +01:00
Hans-Kristian Arntzen 0bcdf6ebe0 More properly enumerate GPUs.
Just pick the first one for now.
2016-02-19 21:55:11 +01:00
Hans-Kristian Arntzen 88ec0f522b Vulkan: Add Vulkan backend to GLX context.
Also fixes some snags with libretro-test-vulkan.
2016-02-19 21:37:24 +01:00
Hans-Kristian Arntzen 1b5cc1ca9c Fix some types for WSI. 2016-02-19 19:50:04 +01:00
twinaphex d6906ee7df (xcb) Buildfix 2016-02-19 15:43:12 +01:00
twinaphex 11831a8b47 move shareable vulkan initialization code to vulkan_common.c 2016-02-19 14:38:15 +01:00
twinaphex 5cb0aa51c0 Add includes to vulkan_common.h 2016-02-19 14:26:45 +01:00
twinaphex e1a1843edc Start moving code to vulkan_common.h 2016-02-19 14:23:51 +01:00
twinaphex 2d5e10e840 Fix this 2016-02-19 13:17:03 +01:00
twinaphex 140d65b994 Setup specific WSI extensions 2016-02-19 13:11:30 +01:00
twinaphex 7ec1a6836c (Vulkan WSI) Add Mir bits (we don't have Mir context driver yet
but whatever, add them all)
2016-02-19 13:06:38 +01:00
twinaphex 50efe142b9 Go through function pointers 2016-02-19 13:03:35 +01:00
twinaphex eb1fe0476d Start implementing xlib/xcb bits (for when these context drivers
get added)
2016-02-19 12:46:42 +01:00
twinaphex 14d39be698 Move code around 2016-02-19 12:30:18 +01:00
twinaphex 72fed0d871 Add VULKAN_WSI_MIR (for when we ever get around to adding Mir support) 2016-02-19 12:24:20 +01:00
twinaphex cebefa6ae1 Refactor vulkan_surface_create 2016-02-19 12:23:16 +01:00
twinaphex db074e1c1a Start implementing more WSI variants 2016-02-19 12:15:16 +01:00
twinaphex 353c421a5c Add function pointer for vkCreateAndroidSurfaceKHR 2016-02-19 12:08:34 +01:00
twinaphex 6fcd097e4c Start setting up vulkan_init_context for multiple WSI types 2016-02-19 12:04:56 +01:00
twinaphex 1c412eea5a Start adding preliminary implementation for vulkan_surface_create 2016-02-19 12:00:52 +01:00
twinaphex 96c9687a8a Create vulkan_surface_create 2016-02-19 11:55:57 +01:00
twinaphex 98990d6afc Add more WSI enum types 2016-02-19 11:50:25 +01:00
twinaphex 7205d76ab0 Cleanups 2016-02-19 11:36:46 +01:00
twinaphex c105fb22f3 Style nits 2016-02-19 11:29:15 +01:00
twinaphex a61536ffdc More refactors - create vulkan_destroy_context 2016-02-19 11:12:43 +01:00
twinaphex 6be1453d9c Create vulkan_init_context 2016-02-19 11:04:51 +01:00
twinaphex 50a605e9db Cleanups 2016-02-19 10:54:00 +01:00
twinaphex 1165d1c0b7 Create gfx_ctx_vulkan_data_t 2016-02-19 10:35:59 +01:00
twinaphex 02e3d6eba7 Only one Wayland context driver now 2016-02-19 07:58:14 +01:00
Hans-Kristian Arntzen c74c7ae053 Vulkan: Work around broken push constants on Ivy Bridge.
Use UBOs instead, should be more compatible with early drivers.
2016-02-18 18:36:49 +01:00
Hans-Kristian Arntzen a1ae86a808 Remove obsolete shaders. 2016-02-18 18:36:49 +01:00
twinaphex 0b85951abe (Wayland context) Cleanup some defines 2016-02-18 07:40:13 +01:00
twinaphex a21444fc9a (Wayland ctx) More improvements to Vulkan support 2016-02-18 07:29:20 +01:00
twinaphex f5c5c82729 Add extra conditionals for all possible usecases (HAVE_EGL/HAVE_OPENGL/HAVE_OPENGLES/etc) 2016-02-18 07:18:58 +01:00
twinaphex bd672b8b72 Add vulkan path in registry_handle_global 2016-02-18 05:31:24 +01:00
twinaphex 620fbe8976 Forgot to set this 2016-02-18 00:20:23 +01:00
twinaphex eeada0c458 Start making general-purpose Wayland context driver that could work
for both Vulkan and EGL/GL
2016-02-17 23:22:54 +01:00
twinaphex 56a14ffc3c Start adding HAVE_OPENGL/HAVE_VG ifdefs 2016-02-17 22:20:43 +01:00
twinaphex 51a94d6ac7 Remove unix_common 2016-02-17 22:09:37 +01:00
twinaphex 17e5e57bed Add unix_common 2016-02-17 08:01:30 +01:00
twinaphex a539a6512b (D3D) Buildfix 2016-02-17 02:25:24 +01:00
twinaphex 2e853b3f04 Another ifdef 2016-02-17 01:24:38 +01:00
twinaphex 22452f6cb2 Ifdef hw_render_context_is_vulkan 2016-02-17 01:23:55 +01:00
Hans-Kristian Arntzen adbf9fed16 Vulkan implementation. 2016-02-16 20:42:02 +01:00
twinaphex f8b866c8c1 Combine file_ops.c and content.c 2016-02-15 21:49:29 +01:00
twinaphex 0784608604 Buildfix 2016-02-14 22:23:30 +01:00
twinaphex 954ac39b91 Create SHADER_CTL_GET_PREV_TEXTURES 2016-02-14 22:22:40 +01:00
twinaphex 5a2816c6da Remove unused functions
t# Please enter the commit message for your changes. Lines starting
2016-02-14 22:18:46 +01:00
twinaphex e790b503d9 Add SHADER_CTL_GET_IDENT 2016-02-14 22:17:00 +01:00
twinaphex debb5dd0ce Add SHADER_CTL_GET_CURRENT_SHADER 2016-02-14 22:13:21 +01:00
twinaphex 38034abce6 Add SHADER_CTL_DIRECT_GET_CURRENT_SHADER 2016-02-14 21:55:19 +01:00
twinaphex 46b963619a Create SHADER_CTL_WRAP_TYPE 2016-02-14 21:41:16 +01:00
twinaphex bd74390cde Add SHADER_CTL_USE 2016-02-14 20:01:39 +01:00
twinaphex b4dcbb235f Add SHADER_CTL_FILTER_TYPE 2016-02-14 19:51:32 +01:00
twinaphex 37c2b47915 Add SHADER_CTL_SET_MVP 2016-02-14 19:43:47 +01:00
twinaphex 02ec7830d9 Create SHADER_CTL_INFO 2016-02-14 19:30:48 +01:00
twinaphex cdd6684bb9 Create SHADER_CTL_SCALE 2016-02-14 19:21:54 +01:00
twinaphex 47cf62cdbd Header cleanups 2016-02-14 19:01:37 +01:00
twinaphex 6c1b96f50d Add SHADER_CTL_SET_COORDS 2016-02-14 18:59:42 +01:00
twinaphex 20441299e1 Add SHADER_CTL_MIPMAP_INPUT 2016-02-14 18:48:17 +01:00
twinaphex fab6903522 Create SHADER_CTL_INIT 2016-02-14 18:41:45 +01:00
twinaphex 8c867394a0 Cleanups 2016-02-14 18:23:47 +01:00
twinaphex 678cabc48c Add SHADER_CTL_DEINIT 2016-02-14 18:22:38 +01:00
twinaphex 7c4b372208 Add SHADER_CTL_GET_FEEDBACK_PASS 2016-02-14 18:19:48 +01:00
twinaphex fe3c3f5203 Create SHADER_CTL_INIT_FIRST 2016-02-14 18:17:43 +01:00
twinaphex f906e828ba Add SHADER_CTL_SET_PARAMS 2016-02-14 18:14:51 +01:00
twinaphex 8b714895a8 Create video_shader_driver_ctl 2016-02-14 18:12:42 +01:00
twinaphex f9824dd53e Simplify video_shader_driver_set_params 2016-02-14 18:09:12 +01:00
twinaphex 3f265360db Style nits 2016-02-14 17:40:20 +01:00
twinaphex 5e1f289cd4 80-char width limit, style nits 2016-02-14 17:02:55 +01:00
twinaphex 57c4db4338 Style nits 2016-02-14 16:59:21 +01:00
twinaphex cbf84b8d6e Style nits 2016-02-14 16:39:27 +01:00
twinaphex 64e891124c (ps3_ctx.c) Cleanups 2016-02-14 16:36:06 +01:00
twinaphex b0995e6eee (GLX) 80-char width limit style nits 2016-02-14 16:34:31 +01:00
twinaphex e842ebbfc4 80-char width limit style nits 2016-02-14 16:31:39 +01:00
twinaphex 602c40c228 (bbqnx) Style nits 2016-02-14 16:29:58 +01:00
twinaphex 5b581e70ba 80-char width limit style nits 2016-02-14 16:27:29 +01:00
twinaphex c2d7b330aa vg.c - buildfix 2016-02-14 16:15:01 +01:00
twinaphex 76f7114b47 Remove duplicate prototype 2016-02-14 05:44:10 +01:00
twinaphex f1a572822b Create RARCH_DISPLAY_CTL_VIEWPORT_INFO 2016-02-14 05:42:27 +01:00
twinaphex d078682a3c Add RARCH_DISPLAY_CTL_GET_CURRENT_SOFTWARE_FRAMEBUFFER 2016-02-14 05:31:33 +01:00
twinaphex 4fcb1469cc Cleanups 2016-02-14 05:26:17 +01:00
twinaphex 4941cd7dbd gl_ff_vertex - avoid glLoadIdentity 2016-02-14 03:47:33 +01:00
twinaphex 9f26e3bc69 Move static local variables to gfx_ctx_ctl - and other cleanups 2016-02-14 02:30:24 +01:00
twinaphex 68969d1363 Add GFX_CTL_GET_VIDEO_SIZE 2016-02-14 02:26:20 +01:00
twinaphex bcaf08ad2d Add GFX_CTL_SET_RESIZE 2016-02-14 02:15:43 +01:00
twinaphex 5516ff05b5 Create GFX_CTL_SET_VIDEO_MODE 2016-02-14 02:12:18 +01:00
twinaphex 637ee33ab6 Add GFX_CTL_IDENT_GET 2016-02-14 02:05:20 +01:00
twinaphex 6413449944 (Android/EGL Images) Buildfixes 2016-02-14 02:00:14 +01:00
twinaphex 1d7fdc64ba (D3D) Buildfix 2016-02-13 23:59:45 +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 098fc0a860 Cleanups 2016-02-13 23:20:04 +01:00
twinaphex 82dcd2cd94 Cleanups 2016-02-13 23:17:09 +01:00
twinaphex 75d73ab658 (D3D) Buildfix 2016-02-13 23:12:49 +01:00
twinaphex 3140e5f980 Implement GFX_CTL_GET_METRICS 2016-02-13 22:14: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 39bc6c1e9e Add structs 2016-02-13 21:58:35 +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 46d210e977 Create GFX_CTL_FIND_NEXT_DRIVER/GFX_CTL_FIND_PREV_DRIVER 2016-02-13 19:12:08 +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 753fd86c2e Create gfx_ctx_ctl 2016-02-13 08:21:35 +01:00
twinaphex e3b2abed9e video_context_driver - cleanups 2016-02-13 08:19:56 +01:00
twinaphex 6d8ee1f8d4 Remove input_driver_data_ptr_is_same 2016-02-13 07:40:02 +01:00
twinaphex 8c8ea6c167 Cleanups 2016-02-13 05:22:07 +01:00
twinaphex f1ea400456 Refactor away runloop_msg_queue_pull 2016-02-13 05:17:36 +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 c75557d204 Cleanups 2016-02-11 01:42:47 +01:00
twinaphex 712a38083b Style nits 2016-02-11 01:40:43 +01:00
twinaphex f8051d846f Turn function static 2016-02-08 00:36:32 +01:00
twinaphex b3e72f6f42 Respect 80-char width limit 2016-02-08 00:31:11 +01:00
twinaphex c30a2ec990 Cleanups 2016-02-08 00:28:05 +01:00
twinaphex 95deab8f1d Cleanup 2016-02-08 00:26:33 +01:00
twinaphex 29d1326c4f We assume deinit/init is going to be correct from now on on
console
2016-02-08 00:24:20 +01:00
twinaphex cd578521e4 Cleanups 2016-02-08 00:23:03 +01:00
twinaphex b578ffb056 Create RARCH_DISPLAY_CTL_HW_CONTEXT_GET 2016-02-07 21:53:38 +01:00
twinaphex a2b2869ca6 Cleanup 2016-02-07 21:46:57 +01:00
twinaphex 0584b3c072 Create RARCH_DISPLAY_CTL_IS_HW_CONTEXT 2016-02-07 20:32:53 +01:00
twinaphex d8bfa7ab7d Rename RARCH_DISPLAY_CTL_DEINIT_VIDEO_CACHE_CONTEXT to RARCH_DISPLAY_CTL_DEINIT_HW_CONTEXT 2016-02-07 20:15:58 +01:00
twinaphex 702d9d4728 Create RARCH_DISPLAY_CTL_DEINIT_VIDEO_CACHE_CONTEXT 2016-02-07 20:11:16 +01:00
twinaphex 3e69eb5a8e video_driver_unset_callback - have destroy_callback do this
implicitly
2016-02-07 20:06:07 +01:00
Alcaro b600e6e032 Fix typo. 2016-02-07 16:23:36 +01:00
twinaphex 71a8098037 Refactor RARCH_DISPLAY_CTL_HAS_WINDOWED 2016-02-07 01:11:07 +01:00
twinaphex b8b7ee530c Respect 80-char width limits 2016-02-06 21:51:37 +01:00
twinaphex ca2c38cd9f Respect 80-char width limit 2016-02-06 21:41:26 +01:00
twinaphex ab64daf5aa Cleanups 2016-02-05 13:51:30 +01:00
twinaphex 2fa46bcef8 Cleanups 2016-02-05 13:36:18 +01:00
Twinaphex 9c9fdcfa58 (iOS 9) Fix iOS 9 build 2016-02-04 20:17:26 +01:00
Twinaphex 667e33e82b Buildfix 2016-02-04 20:05:20 +01:00
twinaphex 12d1de4232 Set these static variables initially to NULL 2016-02-04 20:03:31 +01:00
twinaphex 321690b416 Refactors to do with set_fork method 2016-02-03 14:36:34 +01:00
twinaphex 2cbb18b4e4 Create RARCH_DRIVER_CTL_FIND_INDEX 2016-02-01 13:15:53 +01:00
twinaphex a7a8ff387a (drivers_font_renderer/stb.c) Use retro_read_file 2016-01-30 04:00:46 +01:00
twinaphex 9ab31824f8 Use retro_read_file in more places 2016-01-30 03:58:33 +01:00
twinaphex 9371d3ae48 video_texture_image_load_tga - use retro_read_file instead 2016-01-30 03:54:28 +01:00
twinaphex 04c17f1f9a Cleanups 2016-01-30 03:51:24 +01:00
twinaphex 7decd1e230 (GX) Buildfix 2016-01-30 03:30:56 +01:00
twinaphex 8cf1acb7c6 (gfx/video_texture_image.c) Refactors 2016-01-30 02:48:43 +01:00
twinaphex a267bdfbe3 MOve gfx/image/image.c to gfx/video_texture_image.c 2016-01-30 02:39:08 +01:00
twinaphex 195520fcb6 (D3D) Attempt to fix build error 2016-01-29 10:40:37 +01:00
twinaphex 673aab5282 (PATCH) Strip lines with #pragma parameter.
It's not valid GLSL to have quotes in them, and it's meaningless to pass in the #pragmas to the driver.
2016-01-29 02:07:37 +01:00
twinaphex eb9be6409f Use core callbacks 2016-01-28 04:07:54 +01:00
twinaphex 2542e4a04e Use CORE_CTL_* callbacks 2016-01-28 03:22:23 +01:00
twinaphex 6151e1c425 Create CORE_CTL_RETRO_CTX_FRAME_CB and CORE_CTL_RETRO_CTX_POLL_CB 2016-01-27 04:49:38 +01:00
twinaphex 863b5306f8 CLeanups 2016-01-25 00:06:08 +01:00
twinaphex a15f2519a5 Cleanup 2016-01-23 05:10:47 +01:00
twinaphex df972d0fd5 (shader_glsl.c) Uniquely name functions 2016-01-23 04:53:20 +01:00
twinaphex 372d673a26 Rename event_command to event_cmd_ctl - add second parameter 2016-01-22 15:34:43 +01:00
twinaphex df43c1f99b Try to avoid crash in gfx_ctx_get_metrics 2016-01-21 21:27:54 +01:00
twinaphex fbd2e9aa84 Use string_is_equal more 2016-01-21 02:48:00 +01:00
radius 89d9336b08 fix some shaders in GL 2016-01-20 18:52:24 -05:00
twinaphex 63e2d13b8f Create string_is_equal_noncase - try not to use strcasecmp so much 2016-01-20 17:34:19 +01:00
twinaphex 157eb71606 Use string_is_equal more 2016-01-20 06:16:55 +01:00
twinaphex 64e43a9935 Start using string_is_equal in more places 2016-01-20 04:14:55 +01:00
twinaphex 454abdee48 stdstring - create string_is_equal 2016-01-20 04:07:24 +01:00
twinaphex 0e1d00a85c (CocoaTouch) Cleanup 2016-01-18 22:13:35 +01:00
aliaspider 2ff854177c (WIN32) build fix 2016-01-18 20:03:34 +01:00
aliaspider ee8e05050a (WIN32) fix runtime availability check for PowerCreateRequest. 2016-01-18 18:05:49 +01:00
Twinaphex c68e824eb9 This AVFoundation code needs to work for both iOS and OSX 2016-01-18 13:19:28 +01:00
Phillip Ponson 6ca58a4d6e iOS: Refactoring support for background Music.app. 2016-01-17 19:51:28 -06:00
twinaphex dd239fc85d Add HAVE_AVFOUNDATION ifdefs 2016-01-16 22:02:49 +01:00
Phillip Ponson 48b99b1f48 Fixing a build issue. syntax errors. 😣
.
'
2016-01-16 12:48:33 -06:00
pponso1 212337c7c1 iOS audio support 2016-01-16 11:57:00 -06:00
twinaphex fcc8c5dae7 This is still necessary unfortunately 2016-01-16 16:46:20 +01:00
twinaphex 9f27b9b56d Remove another compile-time ifdef 2016-01-16 16:22:55 +01:00
Twinaphex fbdc30e7bb (OSX) Buildfix 2016-01-16 16:21:39 +01:00
twinaphex b4687fdb2b Check if convertRectToBacking is available at runtime instead
of compile-time
2016-01-16 16:20:19 +01:00
twinaphex a5c83da839 Simplify cocoagl_gfx_ctx_get_video_size 2016-01-16 16:14:25 +01:00
Twinaphex c824f7af15 get_video_size - don't need screen pointer anymore 2016-01-16 13:31:43 +01:00
twinaphex 6a1d423700 (OSX) Cleanup 2016-01-16 13:30:38 +01:00
twinaphex 14ec006412 Cleanup 2016-01-16 13:29:33 +01:00
neville 9a38ec28b0 Get rid of compile-time ifdefs inside get_chosen_screen 2016-01-16 13:23:00 +01:00
Twinaphex 2c42ad3c96 (cocoa_gl_ctx.m) Cleanups 2016-01-16 12:12:07 +01:00
Twinaphex dfe79c3fcd setWantsBestResolutionOpenGLSurface - determine at runtime if we can call
this instead of compile-time
2016-01-16 12:09:50 +01:00
Twinaphex 21dc363e0f backingScaleFactor - cut down on compile-time ifdef - attempt to detect it at runtime 2016-01-16 11:58:36 +01:00
Twinaphex 64fe30281c Cleanup 2016-01-16 11:51:24 +01:00
Twinaphex 302089e8d8 Cleanup 2016-01-16 11:50:44 +01:00
Twinaphex 5a4db266e8 (OSX) Change get_from_selector 2016-01-16 11:49:10 +01:00
Twinaphex 5cc163a10b (OSX) Cleanup 2016-01-16 11:40:48 +01:00
Twinaphex 794bcc53c3 (iOS) Buildfix 2016-01-15 23:15:49 +01:00
twinaphex 09a183df3f (OSX) Create get_backing_scale_factor 2016-01-15 22:15:23 +01:00
twinaphex e920e5f1b9 Add early return in case settings is NULL 2016-01-15 15:38:21 +01:00
twinaphex 039e2acc49 Make switch stop complaininig 2016-01-15 14:08:38 +01:00
twinaphex 5f513d2af0 (cocoa_gl_ctx.m) Cleanups 2016-01-15 14:03:56 +01:00
Twinaphex 58ebbdeada Attempt to prevent race issue in get_chosen_screen 2016-01-15 13:58:16 +01:00
Twinaphex 26bcfa8d89 Revert "Refactor function get_float_from_selector - obsolete"
This reverts commit 1b2632e7fa.
2016-01-15 13:03:40 +01:00
twinaphex 1b2632e7fa Refactor function get_float_from_selector - obsolete
hardcoded ifdef
2016-01-15 12:53:33 +01:00
twinaphex 3a16acaa40 Prevent crash 2016-01-14 07:23:11 +01:00
Twinaphex 50a7686931 (iOS) Fix ARC issues 2016-01-14 07:03:35 +01:00
twinaphex 3eb6ef0251 (OSX 10.6) Buildfix 2016-01-13 21:21:11 +01:00
twinaphex 54f46f4ee3 Update headers 2016-01-10 04:41:52 +01:00
twinaphex 5c716339de N/A 2016-01-09 07:26:45 +01:00
twinaphex c9017a5e09 buildfix 2016-01-09 07:14:46 +01:00
twinaphex 4178950483 move translate_filter to d3d_common.cpp 2016-01-09 06:28:42 +01:00
twinaphex a25d2d65f0 Revert "Move this down"
This reverts commit df70a067d5.
2016-01-09 05:46:54 +01:00
twinaphex df70a067d5 Move this down 2016-01-09 05:45:06 +01:00
twinaphex c774fb2447 Change #ifndef _XBOX to #ifdef HAVE_WINDOW 2016-01-09 05:37:03 +01:00
twinaphex 8327302d6b Have win32_set_video_mode use this code too 2016-01-09 05:28:52 +01:00
twinaphex dad51f5677 Create win32_set_style 2016-01-09 05:24:27 +01:00
twinaphex a549b86b51 Already done inside win32_set_window 2016-01-09 05:05:37 +01:00
twinaphex 3e9820f6ae (D3D) Use win32_set_window 2016-01-09 05:04:47 +01:00
twinaphex c1d79c2205 (Win32) Buildfix 2016-01-09 05:00:56 +01:00
twinaphex c18cfee6d0 Create win32_set_window 2016-01-09 04:59:12 +01:00
twinaphex 8b7bd46612 (D3D) Cleanups 2016-01-09 04:44:44 +01:00
twinaphex 4a7efdf3c5 Move d3d_init_imports around 2016-01-09 04:13:11 +01:00
twinaphex ae4febc993 (D3D) Move code around 2016-01-09 04:12:33 +01:00
twinaphex 5788801dab (D3D) Move code around 2016-01-09 04:11:20 +01:00
twinaphex 782190c43b Move code around 2016-01-09 04:10:36 +01:00
twinaphex b90d324150 Cleanup d3d_set_shader 2016-01-09 04:09:50 +01:00
twinaphex c52fb8c90e Cleanup d3d_set_shader 2016-01-09 04:07:22 +01:00
twinaphex 344c7def0d (XDK) BUildfix
t# Please enter the commit message for your changes. Lines starting
2016-01-09 03:58:56 +01:00
twinaphex 9029bd96d6 Move renderchain->init_driver_shader to top of renderchain->init
function
2016-01-09 03:57:13 +01:00
twinaphex 436180ce95 Move to renderchain_init 2016-01-09 03:53:06 +01:00
twinaphex a26321f53f N/A 2016-01-09 03:44:58 +01:00
twinaphex 2871aa0950 Include this back - C++ string header conflicts with min definition
inside retro_miscellaneous.h
2016-01-09 03:37:24 +01:00
twinaphex 5caf49458c Take out init_shader_fvf callback 2016-01-09 03:22:16 +01:00
twinaphex 25a997e354 (D3D) Rearrange 2016-01-09 03:19:03 +01:00
twinaphex 710d2b9b27 Cleanup 2016-01-09 03:13:58 +01:00
twinaphex bbe4b0e286 Fix warning 2016-01-09 03:11:13 +01:00
twinaphex ba97047cc2 Get rid of some forward declarations 2016-01-09 03:10:37 +01:00
twinaphex 97d146e7c8 (D3D) N/A 2016-01-09 03:10:08 +01:00
twinaphex 7a55c2b8eb Revert "Don't attempt to use std::string anymore in gfx/d3d/d3d.cpp"
This reverts commit f76b7f2b60.
2016-01-09 03:06:18 +01:00
twinaphex 14950cefc2 Revert "(D3D) N/A"
This reverts commit cfa4170c64.
2016-01-09 03:06:11 +01:00
twinaphex cfa4170c64 (D3D) N/A 2016-01-09 03:01:25 +01:00
twinaphex f76b7f2b60 Don't attempt to use std::string anymore in gfx/d3d/d3d.cpp 2016-01-09 03:00:33 +01:00
twinaphex 26e59c2037 N/A 2016-01-09 02:56:47 +01:00
twinaphex 620ea3af74 (D3D) N/A 2016-01-09 02:37:48 +01:00
twinaphex 0f0e21441d Add path_is_file argument to function 2016-01-09 02:17:43 +01:00
twinaphex d80db66795 Revert "Cleanups"
This reverts commit 3e731916ca.
2016-01-09 02:16:09 +01:00
twinaphex 3e731916ca Cleanups 2016-01-09 02:12:34 +01:00
twinaphex 24779fda97 Rename stock_program variables 2016-01-09 02:09:24 +01:00
twinaphex 12aa94f70f Rename renderchain_compile_shaders 2016-01-09 02:06:45 +01:00
twinaphex 699f2dba1e (D3D) N/A 2016-01-09 02:02:02 +01:00
twinaphex c64b761f80 Buildfix 2016-01-09 01:53:10 +01:00
twinaphex 56b64689b7 N/A 2016-01-09 01:12:50 +01:00
twinaphex 6ff10c5591 (D3D) N/A 2016-01-09 01:10:56 +01:00
twinaphex 6b81cfae9d (D3D) Cleanups 2016-01-09 01:05:40 +01:00
twinaphex 2fc957d369 Cleanups 2016-01-08 21:01:41 +01:00
twinaphex 2fa87013f1 Cleanups 2016-01-08 21:01:41 +01:00
twinaphex 93fed31e3a N/A 2016-01-08 20:51:30 +01:00
twinaphex 1014513e91 N/A 2016-01-08 20:46:33 +01:00
twinaphex 856e6dab64 N/A 2016-01-08 20:40:26 +01:00
twinaphex 3786f5e4f6 (D3D) Use GFX_MAX_VARIABLES 2016-01-08 20:36:20 +01:00
twinaphex 9f6c607a68 (D3D Cg) Cleanups 2016-01-08 20:28:18 +01:00
twinaphex 2829bb9217 (Cg D3D9) Cleanups 2016-01-08 19:16:11 +01:00
twinaphex 770fee3684 Revert "Cleanups"
This reverts commit 340751559e.
2016-01-08 18:38:00 +01:00
twinaphex 340751559e Cleanups 2016-01-08 18:34:15 +01:00
twinaphex 208ce772cf Cleanups 2016-01-08 18:23:40 +01:00
twinaphex e334278696 Cleanups 2016-01-08 18:12:49 +01:00
twinaphex 39dc2a0d05 Get rid of this messy code 2016-01-08 17:58:53 +01:00
twinaphex 3a7c219e6f N/A 2016-01-08 17:56:13 +01:00
twinaphex 9540d4ccb5 (D3D) Buildfixes 2016-01-08 17:51:03 +01:00
twinaphex d8f851365f Cleanups 2016-01-08 09:48:46 +01:00
twinaphex 0314b1f811 Take out HAVE_D3D ifdef 2016-01-08 09:02:51 +01:00
twinaphex deb66a885e (D3D) Fixes courtesy of aliaspider 2016-01-08 08:16:26 +01:00
twinaphex 3d9f7117e4 Cleanups 2016-01-08 05:46:14 +01:00
twinaphex ed6e35f7e3 (D3D) Buildfix 2016-01-08 05:44:36 +01:00
twinaphex 3a30649876 Pass through data variable to win32_window_create correctly 2016-01-08 05:13:10 +01:00
twinaphex 5453055135 Move resize handling to d3d_alive 2016-01-08 05:06:12 +01:00
twinaphex 377c1f2661 N/A 2016-01-08 04:52:49 +01:00
twinaphex 8635d19b9b (D3D) N/A 2016-01-08 03:46:02 +01:00
twinaphex 30d98d0693 d3d_calculate_rects - cleanups 2016-01-08 03:14:49 +01:00
twinaphex 1d07c6306e Buildfixes 2016-01-08 03:09:41 +01:00
twinaphex eb5db8ca60 Create d3d_calculate_rect 2016-01-08 03:07:58 +01:00
twinaphex 7bcf33bff3 Remove d3d->frame_count 2016-01-08 01:09:16 +01:00
twinaphex 281de92d79 Fix function name clashes pt. 1 2016-01-07 09:22:04 +01:00
twinaphex 186a9fe61b Try to set g_inited to true 2016-01-07 07:18:52 +01:00
twinaphex 8a124bb530 N/A 2016-01-07 07:10:02 +01:00
twinaphex f1bdfaf0ed Cleanups 2016-01-07 06:50:32 +01:00
twinaphex 682071288a N/A 2016-01-07 06:49:10 +01:00
twinaphex cda09fb6ca N/A 2016-01-07 06:44:35 +01:00
twinaphex 63c35472a9 Don't go through d3dr pointers 2016-01-07 06:38:28 +01:00
twinaphex 23a9715f26 don't grab pointer to d3d device 2016-01-07 06:33:50 +01:00
twinaphex fbe0b5cb5f N/A 2016-01-07 06:31:26 +01:00
twinaphex 5322b05545 Move freeing of d3d->menu to d3d_free 2016-01-07 04:59:39 +01:00
twinaphex 8c1e371d1c use new / delete for d3d->menu 2016-01-07 04:52:59 +01:00
twinaphex e2e308d652 (render_chain_cg.cpp) use new/delete 2016-01-07 04:50:11 +01:00
twinaphex 196278305b Change bound_tex back to std::vector 2016-01-07 04:47:28 +01:00
twinaphex 99a8690b50 Change luts back to std::vector list 2016-01-07 04:42:49 +01:00
twinaphex 7bd822e032 (shader_gl_cg.c) Reuse GFX_MAX_VARIABLES 2016-01-07 04:31:31 +01:00
twinaphex f45f3da8fb bound_tex is no longer a vector 2016-01-07 04:27:21 +01:00
twinaphex a425ca98ed reimplement d3d_restore 2016-01-07 02:55:27 +01:00
twinaphex e8656333f1 Make it possible to manually set one of the devices with d3d_device_free 2016-01-07 02:22:53 +01:00
twinaphex 8b9c6d099f Set g_pD3D back to NULL 2016-01-07 02:20:30 +01:00
twinaphex 0b655fdd89 Set g_pD3D to NULL in d3d_free 2016-01-07 02:19:01 +01:00
twinaphex d6377cb183 Turn g_pD3D into static variable 2016-01-07 01:23:52 +01:00
twinaphex 5a60055aa9 Make curD3D a static variable 2016-01-07 01:18:51 +01:00
twinaphex e5f327edda N/A 2016-01-07 01:11:26 +01:00
twinaphex 9f616cca07 Check if device is NULL inside d3d_set_resize 2016-01-07 01:10:37 +01:00
twinaphex b4b3574665 use void pointer 2016-01-07 01:00:11 +01:00
twinaphex 3b8932b302 Turn returntype of set_resize into bool 2016-01-07 00:58:33 +01:00
twinaphex 28b615e62c (D3D) Buildfixes 2016-01-07 00:45:09 +01:00
twinaphex 3b34d6b6f1 WM_SIZE - we need to call the context driver's d3d_resize function 2016-01-07 00:43:16 +01:00
twinaphex 38a58a2a8a Call d3d_restore from d3d.cpp 2016-01-07 00:38:42 +01:00
twinaphex 70a6da0491 (D3D) Cleanups 2016-01-07 00:29:12 +01:00
twinaphex 949c4b6dc3 One cleanup 2016-01-07 00:26:38 +01:00
twinaphex 8d83d4bf81 (D3D) Buildfix 2016-01-07 00:20:23 +01:00
twinaphex 56a17b21f1 Create d3d_device_free 2016-01-07 00:19:27 +01:00
twinaphex b345d04407 Always call gfx_ctx_free 2016-01-07 00:03:05 +01:00
twinaphex 3b516cacd7 Remove _XBOX ifdef 2016-01-06 23:59:23 +01:00
twinaphex 8cd7cb203e Revert "(D3D) Remove some more _XBOX ifdefs"
This reverts commit de989f202a.
2016-01-06 23:54:53 +01:00
twinaphex de989f202a (D3D) Remove some more _XBOX ifdefs 2016-01-06 23:52:59 +01:00
twinaphex 054035bd9d Remove some ifndef _XBOX ifdefs 2016-01-06 23:46:46 +01:00
twinaphex e0e69d2d36 Cleanups 2016-01-06 23:45:10 +01:00
twinaphex 2199e22e63 Remove d3d_restore_device 2016-01-06 04:26:24 +01:00
twinaphex b8d41df24f (D3D) Add some logging to d3d_restore_device 2016-01-06 04:17:21 +01:00
twinaphex c64b9bed15 Ifdef global variable for Xbox 2016-01-06 03:59:22 +01:00
twinaphex 08e73ea144 Non_HAVE_MEN codepath fixes - courtesy of Karlton
t # Please enter the commit message for your changes. Lines starting
2016-01-02 02:54:20 +01:00
twinaphex 4fd5f1cad6 Improvements to unsetting the video driver callback 2015-12-28 21:34:57 +01:00
twinaphex f9f6d49ab7 Move macros to top 2015-12-26 11:27:52 +01:00
twinaphex c2d7cbe18b Use string_is_empty 2015-12-26 07:59:15 +01:00
twinaphex dde68de466 Add new environment callback - RETRO_ENVIRONMENT_GET_CURRENT_SOFTWARE_FRAMEBUFFER 2015-12-25 19:29:14 +01:00
twinaphex 7df9efbffe Get rid of some warnings when compiling for targets with no threaded
video defined
2015-12-25 07:11:34 +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
Monroe88 e4894ded6d (video_shader_parse.h) Increase max parameters to 128 2015-12-23 19:39:09 -06:00
twinaphex 466953fae8 remove this 2015-12-22 21:59:24 +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
Higor Eurípedes 3bce2b494f (d3d) Fix context initialization 2015-12-20 21:48:46 -03:00
twinaphex fd644cb434 Revert "(video_driver.c) Ensure input is initialized in init_video_input"
This reverts commit d191e29d1b.
2015-12-20 23:52:50 +01:00
Higor Eurípedes d191e29d1b (video_driver.c) Ensure input is initialized in init_video_input 2015-12-20 19:12:14 -03:00
Higor Eurípedes f6729c0b74 (d3d_ctx) Return video_data as the context data
The d3d context shares the d3d video driver data.
2015-12-20 19:12:14 -03:00
twinaphex f53711f791 Change return type of load_texture to uintptr_t 2015-12-20 22:38:18 +01:00
twinaphex 20170ef2b0 (D3D) Buildfix 2015-12-20 21:59:57 +01:00
twinaphex 4f499fc5c3 Buildfixes 2015-12-20 21:09:00 +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
radius f64fc93c44 silence a warning 2015-12-17 17:48:58 -05:00
Jean-André Santoni 6f5d09b235 (Mali) Fix mali fbdev build 2015-12-15 10:23:02 +07: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 fc6505e408 Get rid of rarch_system_info_get_ptr 2015-12-10 22:30:25 +01:00
Alcaro 9e3994408e What is that typecast dance good for? 2015-12-10 14:10:42 +01:00
twinaphex 9b706085c9 C89_BUILD fix 2015-12-10 14:06:55 +01:00
twinaphex e1331fa6a5 CXX_BUILD fixes 2015-12-10 14:05:56 +01:00
twinaphex 3df5b50d4b Remove header include 2015-12-10 13:38:35 +01:00
twinaphex 71d9a89de9 Revert "gl_glsl_destroy_resources - use glIsBuffer to check if buffer is"
This reverts commit 0deb243c62.
2015-12-09 22:36:43 +01:00
twinaphex 0deb243c62 gl_glsl_destroy_resources - use glIsBuffer to check if buffer is
bound
2015-12-09 18:23:39 +01:00
twinaphex a710d7057f gl_glsl_destroy_resources - use glIsProgram as a final check 2015-12-09 17:57:25 +01:00
twinaphex 47161af73f video_shader_driver_set_mvp - check if mat is NULL 2015-12-09 17:50:20 +01:00
twinaphex b4fa396470 Cleanup 2015-12-09 10:14:43 +01:00
twinaphex 7bdc1da676 Create RARCH_DISPLAY_CTL_CACHED_FRAME_SET_PTR 2015-12-09 10:13:48 +01:00
twinaphex ebb0906f3e Remove function 2015-12-09 09:10:21 +01:00
twinaphex 902997c579 Remove gfx_ctx_data_get_ptr 2015-12-09 09:05:55 +01:00
twinaphex b7988a33fe shader_driver_ctx_init_first renamed 2015-12-09 08:45:55 +01:00
Higor Eurípedes d602b8ed5a (d3d) Fix build 2015-12-08 22:16:55 -03: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 1f51a0d948 (videocore) Fix build 2015-12-08 19:34:26 -03:00
Higor Eurípedes 39b238151f (androidegl_ctx) Lock android_app before accessing it 2015-12-08 19:26:32 -03:00
Higor Eurípedes 7dcecc500f (cocoa) Fix warning 2015-12-08 17:33:59 -03:00
Higor Eurípedes c2d4da4660 (mali) Convert to new egl common api 2015-12-08 17:33:59 -03:00
Higor Eurípedes 9e90efacbb (videocore) Convert to new egl common api 2015-12-08 17:33:59 -03:00
Higor Eurípedes 98baf27a99 (vivante-fbdev) Convert to new egl common api 2015-12-08 17:33:59 -03:00
twinaphex 77f1bbdb26 (D3D) Buildfix 2015-12-08 20:55:19 +01:00
Higor Eurípedes 7135dfb597 (d3d) Fix build 2015-12-08 16:03:25 -03:00
twinaphex a5d0770268 (PS3) Get rid of gfx_ctx_free_data 2015-12-08 19:56:43 +01:00
twinaphex 39499eb107 Silence 'cannot be reached' warnings 2015-12-08 19:54:36 +01:00
Higor Eurípedes 5b7069b377 (bbqnx_ctx.c) Convert to the new egl common api 2015-12-08 14:56:46 -03:00
Higor Eurípedes 3a7f93d459 (android_ctx.c) Use the new egl common api 2015-12-08 14:30:45 -03:00
Higor Eurípedes 1cf574cfbe Move most of egl_common globals into egl_ctx_data_t 2015-12-08 13:54:03 -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 a95762e5cb Create egl_has_config 2015-12-08 14:42:02 +01:00
twinaphex 0f94353b28 Create egl_get_native_visual_id 2015-12-08 14:38:06 +01:00
twinaphex 34dbd35642 Revert "Remove some unnecesary functions"
This reverts commit 1f13f26ba4.
2015-12-08 12:55:43 +01:00
twinaphex 91dcce5d58 Rearrange header 2015-12-08 11:52:32 +01:00
twinaphex 1f13f26ba4 Remove some unnecesary functions 2015-12-08 11:21:57 +01:00
twinaphex bae51fb3bd Turn rarch_threaded_video_send_and_wait to static function 2015-12-08 11:17:26 +01:00
twinaphex 1ea3b54411 Move definition of thread_packet to video_thread_wrapper.c 2015-12-08 11:09:09 +01:00
twinaphex aa6c7a5ed3 Create two new threading command wrapper functions 2015-12-08 11:05:18 +01:00
twinaphex a18811bff6 Remove some obsolete state 2015-12-08 10:34:27 +01: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 9f96742576 Take out some header includes 2015-12-08 09:30:44 +01:00
twinaphex f11bed2bdd Get rid of gl->shader parameter 2015-12-08 09:29:23 +01:00
twinaphex df60523f6c Move current_shader pointer to video_shader_driver.c 2015-12-08 09:27:25 +01:00
twinaphex 9736713279 Create RARCH_DISPLAY_CTL_SET_STUB_FRAME/UNSET_STUB_FRAME 2015-12-07 21:16:15 +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 0df4a8d2a2 Put message from video_driver_frame into separate buffer
temporarily for safety
2015-12-07 10:59:53 +01:00
twinaphex e8a3bd99d8 (3DS/CTR) Buildfix 2015-12-07 09:32:58 +01:00
Twinaphex 15cb1c560a (gfx/video_texture_c.c) Add HAVE_D3D/HAVE_OPENGL ifdefs 2015-12-07 08:06:50 +01:00
Twinaphex c1bb8f711d Fix some warnings for non-HAVE_THREADS targets 2015-12-07 08:00:27 +01:00
twinaphex cbdd305626 Add HAVE_THREADS ifdef 2015-12-06 22:42:22 +01:00
twinaphex a4de5895d8 nit 2015-12-06 21:58:51 +01:00
twinaphex 137757d832 gfx/video_texture_c.c - add HAVE_THREADS ifdef 2015-12-06 21:58:12 +01:00
twinaphex 7f433a36d5 Move rthreads.h header include to video_thread_wrapper.c 2015-12-06 21:35:55 +01:00
twinaphex 9b65988682 Create rarch_threaded_video_send_and_wait 2015-12-06 21:34:39 +01:00
twinaphex 37286ca894 header cleanup 2015-12-06 21:31:20 +01:00
twinaphex ae58a9ed19 Check if shader->deinit function is bound first 2015-12-06 21:19:52 +01:00
twinaphex 6fbdd319f4 Add header include 2015-12-06 19:59:15 +01:00
twinaphex c6359d6dbc Divorce g_system_menu from global state 2015-12-06 19:31:47 +01:00
Twinaphex 4e14e6e6fa Merge pull request #2529 from heuripedes/master
(shader_glsl.c) Fix memory leak
2015-12-06 18:31:50 +01:00
twinaphex 99ea0095a3 Create RARCH_MENU_CTL_FRAME 2015-12-06 18:28:37 +01:00
Higor Eurípedes 9bb36cac38 (shader_glsl.c) Fix memory leak 2015-12-06 14:23:51 -03:00
twinaphex 0389474e12 Set dangling pointers to null for RARCH_DISPLAY_CTL_DEINIT
and RARCH_AUDIO_CTL_DEINIT too
2015-12-06 18:15:00 +01:00
twinaphex a3033c2f66 Buildfixes 2015-12-06 18:12:49 +01:00
twinaphex 09ecd04d67 Make sure gpu_buffer is set back to NULL too upon
RARCH_DISPLAY_CTL_DESTROY time
2015-12-06 17:33:51 +01:00
twinaphex 0f9ba38b76 Make sure all static local variables from video_driver_ctl are
reset back to default state after calling RARCH_DISPLAY_CTL_DESTROY
2015-12-06 17:17:08 +01:00
twinaphex 083d1fec69 video_driver_frame - cleanup 2015-12-06 15:24:06 +01:00
twinaphex bbbf6513fd move gpu record buffer to video_driver.c 2015-12-06 15:22:20 +01:00
twinaphex a23598e553 Don't need video_driver_current_msg anymore 2015-12-06 14:32:30 +01:00
twinaphex 39e9d5c5ba Start cutting down on the size of some char local variables - we
don't need PATH_MAX_LENGTH for everything
2015-12-06 13:28:20 +01:00
twinaphex 38a7338592 Fix video_shader_driver_get_current_shader 2015-12-06 11:22:16 +01:00
twinaphex 693e684b4f (font_driver.c) Turn some functions static and remove others that
are unused
2015-12-05 22:58:52 +01:00
twinaphex ec1b1c3e54 Header cleanups 2015-12-05 21:23:34 +01:00
twinaphex c79c205a0d Header include cleanup 2015-12-05 20:26:37 +01:00
twinaphex f45867d1cd More CXX_BUILD fixes 2015-12-05 18:56:37 +01:00
twinaphex 05b1097d37 Rearrange some headers 2015-12-05 18:45:15 +01:00
twinaphex 5b939e810c Get rid of driver_t and driver_get_ptr 2015-12-05 16:54:13 +01:00
twinaphex 18ab12ab83 Take header include record_driver.h out of driver.h 2015-12-05 16:12:29 +01:00
twinaphex 7e5d1f3117 Only rcord_driver.c references driver->recording now 2015-12-05 16:05:35 +01:00
twinaphex 736f343d9f Create RARCH_MENU_CTL_IS_ALIVE 2015-12-05 13:49:34 +01:00
twinaphex 03e2873296 (D3D) Buildfixes 2015-12-05 13:31:02 +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 6a00c1cf9a Take font driver handles out of driver_t struct 2015-12-05 12:25:53 +01:00
twinaphex 612c05ac71 (Xbox) Buildfix 2015-12-05 12:21:20 +01:00
twinaphex 78fef6422b Create font_driver_get_message_width 2015-12-05 12:17:58 +01:00
twinaphex df813ad58b Create font_driver_flush 2015-12-05 12:10:12 +01:00
twinaphex df1c6344be Merge font_renderer_driver.c and font_driver.c 2015-12-05 12:07:22 +01:00
twinaphex 44b708642c Expand font_driver_bind_block 2015-12-05 11:34:56 +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 4c8a2a3f88 Create font_driver_bind_block 2015-12-05 10:59:03 +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 ddff980161 Remove unused variables 2015-12-05 09:14:55 +01:00
twinaphex f72b69e8d1 Don't include frontend_driver.h as part of driver.h 2015-12-05 09:09:31 +01:00
twinaphex c36b8e1ae9 Don't touch driver->frontend outside of frontend_driver.c anymore 2015-12-05 08:52:01 +01:00
twinaphex 1fcf63735f Header include changes 2015-12-05 07:45:36 +01:00
twinaphex e735f84baa Refactor shader subsystem 2015-12-05 07:33:32 +01:00
twinaphex 8c3c22f15a Move rewind.h header include to shader_glsl.c 2015-12-04 16:54:09 +01:00
twinaphex 7b1fb48034 (D3D) Use new video_shader_driver_* functions 2015-12-04 16:46:43 +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 351077dc78 Start reimplementing audio/video/input driver deiniting 2015-12-04 14:30:59 +01:00
twinaphex c0a1a6a3fe Move system->shutdown to runloop_ctl, turn it into a local
static variable
2015-12-04 12:44:12 +01:00
twinaphex bdb54d91b7 video_monitor_fps_statistics - small cleanup 2015-12-04 08:27:47 +01:00
twinaphex 6411a7d0d9 Make video_driver_current_msg smaller 2015-12-04 08:04:16 +01:00
twinaphex 830b3052e5 (video_driver.c) Turn some variables into local static variables 2015-12-04 02:29:49 +01:00
twinaphex 96ddc1f722 egl_destroy - don't do glFlush/glFinish on mobile platforms 2015-12-04 01:44:41 +01:00
Higor Eurípedes f63468d783 Fix some potential null derefs 2015-12-03 21:22:29 -03:00
twinaphex faa02023ce Check if video_driver_poke is false 2015-12-04 01:21:46 +01:00
twinaphex 581c856676 Attempt to make gl_raster_font_flush_block more robust 2015-12-04 01:04:27 +01:00
twinaphex d8b9be9349 Put parentheses around earlier check 2015-12-04 00:26:53 +01:00
twinaphex b6be555809 Try to prevent a NULL pointer dereference for global - rename video_frame 2015-12-04 00:26:09 +01:00
twinaphex 757f0692ad (gfx_ctx_swap_buffers) Guard against video context data being NULL 2015-12-03 23:59:54 +01:00
twinaphex bab243a7a2 (egl_common.c) Cleanups 2015-12-03 23:33:50 +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 60313f7f48 (Android) Don't call eglSwapBuffers if g_egl_dpy and g_egl_surf are not
yet ready
2015-12-03 22:23:20 +01:00
twinaphex 66721e8902 Set g_egl_hw_ctx to NULL in egl_create_context 2015-12-03 22:13:03 +01:00
twinaphex 0c8ed91b36 Nits 2015-12-02 01:02:58 +01:00
twinaphex b7f7b1f3b7 video_thread_wrapper.c - cleanups 2015-12-02 01:01:27 +01:00
twinaphex 6c6beca430 Create x11_save_last_used_monitor 2015-12-01 08:49:35 +01:00
twinaphex c4354ff429 Create g_x11_screen 2015-12-01 08:42:33 +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 d0340d0f80 (GLSL) Fix regression 2015-12-01 07:12:26 +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 e8471ead48 Move rewind state code out of g_extern 2015-11-30 22:29:16 +01: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