Commit Graph

7073 Commits

Author SHA1 Message Date
twinaphex 87c82797fd Start cutting down on macro usage 2017-11-13 10:26:56 +01:00
twinaphex da15f9d730 Cleanups 2017-11-13 09:19:33 +01:00
twinaphex 6493b79324 Some buildfixes for CXX_BUILD 2017-11-13 09:11:09 +01:00
twinaphex d861d2b0ae Updates 2017-11-13 09:02:22 +01:00
twinaphex e5ed1acc0a (gl1_renderchain.c) Cleanups 2017-11-13 08:58:49 +01:00
twinaphex 67fea30406 Remove remaining references to HAVE_FBO 2017-11-13 08:55:41 +01:00
twinaphex ec123ef6ca Get rid of most of the HAVE_FBO usage 2017-11-13 06:20:30 +01:00
twinaphex 6fa5fcfa1f Add has_fbo member variable - fixes GL issues 2017-11-13 05:23:44 +01:00
twinaphex 9c791e7fb5 CLeanups 2017-11-12 17:45:23 +01:00
twinaphex 60d96b60b5 Start adding gl1_renderchain.c 2017-11-12 17:32:18 +01:00
twinaphex 3ab26b6738 Prevent warning 2017-11-12 17:17:40 +01:00
twinaphex 5eadf021cf early return 2017-11-12 17:16:14 +01:00
twinaphex c5292025c3 Cut down on HAVE_FBO usage and make sure gl->fbo_inited is set to
false if HAVE_FBO is not defined
2017-11-12 17:15:29 +01:00
Brad Parker 23527a82ca free VAO before the renderchain is destroyed 2017-11-11 13:55:05 -05:00
Brad Parker 69f69849be fix circular dependency of renderchain and core context init 2017-11-11 13:51:33 -05:00
twinaphex c1c9e1897c Expand conditional 2017-11-11 19:12:32 +01:00
twinaphex 40cfde0eba (MSVC 2010) Buildfix 2017-11-10 04:53:08 +01:00
twinaphex 063fc96736 Use gl_bind_texture 2017-11-10 04:28:22 +01:00
twinaphex faab2526c8 Create gl_bind_texture 2017-11-10 03:55:10 +01:00
twinaphex b3d8146009 Try to fix PS3 build 2017-11-10 02:19:25 +01:00
twinaphex 0ff54e7bd7 Define GLsync 2017-11-09 01:26:11 +01:00
twinaphex 77ac13b2e9 Buildfix 2017-11-09 01:16:35 +01:00
twinaphex a4c9c738b8 Add init_textures_reference 2017-11-08 22:06:10 +01:00
twinaphex 4f016b2c2c Update 2017-11-08 19:31:00 +01:00
twinaphex 3e1f4defb8 Buildfix 2017-11-08 18:54:15 +01:00
twinaphex 3e0b4552d6 Cleanups 2017-11-08 18:49:45 +01:00
twinaphex 9ab13b719b Get rid of another ifdef 2017-11-08 18:48:01 +01:00
twinaphex 5f7527df08 Move readback function to renderchain 2017-11-08 18:45:28 +01:00
twinaphex c825f849f5 CLeanups 2017-11-08 18:31:17 +01:00
twinaphex d6cc447aa0 Add PBO callback functions 2017-11-08 18:22:05 +01:00
twinaphex 7c6377a7fa Cleanups 2017-11-08 17:45:39 +01:00
twinaphex 9f987dd97b Get rid of NO_GL_READ_PIXELS 2017-11-08 17:42:02 +01:00
twinaphex 3428e3d80a Cleanup 2017-11-08 17:10:41 +01:00
twinaphex e91cc7aced Get rid of one extraneous HAVE_GLSL ifdef 2017-11-08 17:08:03 +01:00
twinaphex 9f79b99c94 Init renderchain prior to calling renderchain_driver 2017-11-08 16:58:23 +01:00
twinaphex f28d6009ec Update 2017-11-08 16:53:43 +01:00
twinaphex 6fefc71aa2 Cleanups 2017-11-08 16:49:42 +01:00
twinaphex c1d5622255 Get rid of another ifdef 2017-11-08 16:41:37 +01:00
twinaphex 4b0932ffb3 Move copy_frame to renderchain 2017-11-08 16:38:56 +01:00
twinaphex 64ac26b7d1 Get rid of ifdefs 2017-11-08 16:28:58 +01:00
twinaphex bc45ba38bf Cleanups 2017-11-08 16:25:57 +01:00
twinaphex a295169a3b Add restore_default_state callback - remove more ifdefs 2017-11-08 16:20:55 +01:00
twinaphex 308818afd1 Add VAO callback functions 2017-11-08 16:16:17 +01:00
twinaphex 5b268b79d2 Cleanups 2017-11-08 16:00:37 +01:00
twinaphex 9dd253adea Cleanup 2017-11-08 15:52:23 +01:00
twinaphex 5252d3216a Fix heap use after free error 2017-11-08 15:49:02 +01:00
twinaphex 4a7e8b03b2 Cache core context setting 2017-11-08 05:59:08 +01:00
twinaphex 24434db9d9 (GL) Cleanups 2017-11-08 05:47:37 +01:00
twinaphex a72461c16b Create disable_client_arrays function pointer 2017-11-08 05:44:12 +01:00
twinaphex bd1f04554e Implement ff_matrix/ff_vertex 2017-11-08 05:06:19 +01:00
twinaphex 96876c66ce Updates 2017-11-08 02:36:38 +01:00
twinaphex dc664ff4f2 Cleanups 2017-11-08 01:53:24 +01:00
twinaphex c1f0fceb4f More buildfixes 2017-11-08 00:59:16 +01:00
twinaphex e7599e8952 More buildfixes 2017-11-08 00:55:38 +01:00
twinaphex 97e0ffde9f Buildfix for iOS 2017-11-08 00:53:57 +01:00
twinaphex 0085b24fd5 Cut down on gl_check_capability calls 2017-11-08 00:49:01 +01:00
twinaphex 4cae577ade Cleanups 2017-11-08 00:07:04 +01:00
twinaphex dc700c5d8b Get rid of more ifdefs 2017-11-08 00:05:12 +01:00
twinaphex 0f6a3c8f9d Start cutting down on HAVE_GL_ASYNC_READBACK ifdef 2017-11-07 23:19:54 +01:00
twinaphex 5ea63f3b08 Get rid of HAVE_GL_SYNC ifdef 2017-11-07 23:13:26 +01:00
twinaphex 1bc30331a7 Cleanups 2017-11-07 22:59:36 +01:00
twinaphex 7a33bfe924 Get rid of more HAVE_FBO ifdefs 2017-11-07 22:54:38 +01:00
twinaphex 3ccf8c19f1 Start getting rid of HAVE_FBO ifdefs 2017-11-07 21:34:25 +01:00
twinaphex 0100e7b673 Update 2017-11-07 21:08:54 +01:00
twinaphex fc43a14637 Updates 2017-11-07 21:03:29 +01:00
twinaphex fe2bf47b98 Add more to renderchain driver 2017-11-07 20:56:08 +01:00
twinaphex 00d52a4783 Cleanups 2017-11-07 11:06:18 +01:00
twinaphex a7cd8d94b0 Start going through renderchain driver interface for GL 2017-11-07 11:01:30 +01:00
twinaphex 9c6edaff30 Update renderchain driver for GL 2017-11-07 10:10:52 +01:00
twinaphex f681cb455c Prepare GL renderchains 2017-11-07 07:56:18 +01:00
twinaphex 7d2e9290e2 Convert another file to C 2017-11-06 19:49:06 +01:00
twinaphex f5d9427d48 Convert shader_hlsl.cpp to C 2017-11-06 19:44:00 +01:00
twinaphex 40a7755fe2 Cleanups 2017-11-06 19:39:21 +01:00
Brad Parker 1771b11a39 wayland: fix heap buffer overflows 2017-11-05 19:31:34 -05:00
Twinaphex b8df76271c
Merge pull request #5654 from QuarkTheAwesome/wiiu-warnings
[WiiU] Various warning fixes
2017-11-05 16:14:18 +01:00
orbea 10032affcb Fix compile with --disable-fbo.
Fixes https://github.com/libretro/RetroArch/issues/5647
2017-11-04 07:47:03 -07:00
Ash 0d38612f4a
[WiiU] Various warning/format string fixes
All things from unsigned comparisons to missing initializers; we got it
here.
2017-11-04 20:37:30 +11:00
vanfanel 91c9da529f VC EGL context: Fixed hard freeze when toggling the bilinear filter option 2017-11-01 12:19:08 +01:00
Brad Parker fc856c76a8 fix race condition reading OSD message in video driver 2017-10-29 23:28:02 -04:00
Brad Parker 3098b5e3df gdi: fix uninitialized usage warning 2017-10-24 00:37:50 -04:00
twinaphex 8072dab6fe Clean this up 2017-10-22 05:24:57 +02:00
twinaphex d203e4dc9c video_shader_driver_resolve_parameters - fix crash at startup with
MSVC
2017-10-22 05:21:31 +02:00
twinaphex bb051f185b MSVC/C89 buildfixes 2017-10-22 05:13:22 +02:00
Twinaphex ba2f79a8c3 Merge pull request #5566 from vanfanel/master
Moved original max_swapchain=2 implementation to proper location for future use or reference
2017-10-19 18:50:51 +02:00
vanfanel b40d50bba4 Moved commented old implementation to proper location. 2017-10-19 14:21:47 +00:00
Twinaphex ef5cbfed61 Merge pull request #5560 from orbea/xshm
Fix compilation with --enable-xshm.
2017-10-19 13:15:30 +02:00
Jean-André Santoni 628acf5296 Merge pull request #5564 from vanfanel/master
Add experimental way to make max_swapchain=2 work Rpi with GLES on dispmanx
2017-10-19 16:53:27 +07:00
Brad Parker fd18c2c942 win32: use W-function for file drag&drop 2017-10-18 15:08:01 -04:00
orbea 5ec052b675 Fix compilation with --enable-xshm.
Fixes https://github.com/libretro/RetroArch/issues/5551.
2017-10-18 09:33:09 -07:00
vanfanel d9ec2267f7 Change max_swapchain=2 implementation to actually working code. 2017-10-18 12:06:58 +00:00
vanfanel 65ef37706c Add experimental way to make max_swapchain=2 work on EGL/GLES VideoCore (Raspberry Pi) 2017-10-18 03:06:30 +00:00
twinaphex 8464ad30bd (Xbox 360) Buildfixes 2017-10-16 01:33:17 +02:00
Brad Parker 38c30667c5 fix include paths 2017-10-14 23:08:43 -04:00
Brad Parker ee7590868a add option to remove frame count from FPS display 2017-10-13 20:35:55 -04:00
rz5 0a0c538e2b (gl driver) Set flags after detecting GL core context 2017-10-13 22:48:17 +01:00
rz5 677229d541 (video driver) Style nit 2017-10-12 19:59:20 +01:00
rz5 24c1ad72ce (video driver) If we can't set flag data, do it later
Currently, there is at least one instance where video_context_driver_set_flags() is called when current_video_context.set_flags is set to NULL (see #5538). To solve this, we create 2 new global variables - one to store flag data and the other to symbolize we deferred setting flag data.
This way, the next time we do get_flags(), we first check if we have anything stored first.

Should fix #5538
2017-10-12 17:38:07 +01:00
Twinaphex 59cabfe80f Merge pull request #5454 from rz5/master
Prevent crashes caused by loading shaders in incompatible contexts
2017-10-11 17:25:25 +02:00
Brad Parker fff3e225d2 comments 2017-10-10 15:28:29 -04:00
Brad Parker 072b347c0f fix OSD background alignment with non-default X/Y positions 2017-10-10 15:16:58 -04:00
Brad Parker a4bc1c9768 add menu options for OSD background color 2017-10-10 14:53:32 -04:00
Brad Parker 7aadb0ee13 allow transparency for OSD background 2017-10-10 14:00:49 -04:00
Brad Parker f156f7cd94 initial working OSD background color (only when content not loaded) 2017-10-09 23:30:11 -04:00
Brad Parker a153ed0b42 testing 2017-10-09 21:19:32 -04:00
twinaphex 6a5ad56bc6 Start undoing C++ comments 2017-10-07 17:19:20 +02:00
twinaphex 7dcafe4b40 (HLSL) Cleanups 2017-10-03 05:18:32 +02:00
twinaphex a1b39b9c8b (360) Buildfix 2017-10-03 05:15:18 +02:00
twinaphex 0a3a30c99c (xdk360_fonts.cpp) Use some d3d_common functions 2017-10-03 05:12:21 +02:00
twinaphex 86f5cc6571 xdk360_fonts.cpp - use C comments 2017-10-03 04:46:36 +02:00
twinaphex 0695d93cee (xdk360_fonts.cpp) Start using d3d_common functions 2017-10-03 04:43:54 +02:00
twinaphex cf9ab18cab (360) Buildfix 2017-10-03 04:21:25 +02:00
twinaphex 51ea984f4f Create d3d_texture_get_level_desc 2017-10-03 04:18:27 +02:00
twinaphex d10de20bff Start compiling Griffin as C for 360 - C89 fixes 2017-10-03 04:11:41 +02:00
twinaphex bd94f265fa Cleanups 2017-10-03 03:57:28 +02:00
twinaphex 51a173fc83 Fix CXX_BUILD 2017-10-03 02:57:24 +02:00
twinaphex 6c262fe44f Convert to C 2017-10-03 02:49:06 +02:00
twinaphex d23d742439 Convert d3d9_cg_renderchain to C 2017-10-03 02:45:06 +02:00
Brad Parker 2bb20a0b4f add generic vector_list for custom types, use it to remove std::vector from D3D9 Cg renderchain 2017-10-02 19:19:12 -04:00
twinaphex 71dd8f9084 Silence more warnings 2017-10-03 00:56:18 +02:00
twinaphex 702f1276d6 Silence warnings 2017-10-03 00:53:09 +02:00
Alcaro 8d274f4f43 let's not include unneeded headers. 2017-10-03 00:03:55 +02:00
Alcaro b97853a536 Rename STRING_REP_ULONG to STRING_REP_USIZE 2017-10-02 22:51:51 +02:00
twinaphex bb2702ef2f (Xbox) Some buildfixes 2017-10-02 22:35:06 +02:00
twinaphex 345e1ae419 Buildfix for Xbox 2017-10-02 22:31:20 +02:00
twinaphex 721afe22d8 (MSVC 2010) Compile griffin.c as C 2017-10-02 22:06:32 +02:00
twinaphex 7ff34f8efe Update 2017-10-02 21:58:06 +02:00
twinaphex 590cdeb130 Convert d3d_w32_font to C 2017-10-02 21:52:10 +02:00
twinaphex 8aef6dff1c Convert d3d8_renderchain to C 2017-10-02 21:39:35 +02:00
twinaphex fa0728d6b7 (NGC/Wii) BUildfix 2017-10-02 20:31:38 +02:00
twinaphex 9abd790353 Remove some more D3DX dependencies 2017-10-02 20:18:36 +02:00
twinaphex bceb8000dd Use replacement D3DXMatrix functions 2017-10-02 19:01:23 +02:00
twinaphex 6eb23efb54 Start implementing D3DXMatrix functions inside d3d_common.c 2017-10-02 18:50:54 +02:00
twinaphex af9ec3f7a2 Start adding C codepath 2017-10-02 18:25:54 +02:00
twinaphex bd66937112 Convert d3d_ctx.cpp to C 2017-10-02 07:57:49 +02:00
twinaphex c3bcbaea14 Convert d3d.cpp to C 2017-10-02 07:48:57 +02:00
twinaphex 9c639ec529 Don't use std::vector 2017-10-02 06:12:33 +02:00
twinaphex 5ef6de4d4e C codepath for D3D9 works now 2017-10-02 03:52:53 +02:00
twinaphex 22b14142b6 Update d3d_common.cpp 2017-10-02 03:27:44 +02:00
twinaphex f6fb1fd953 Create d3d_create_device 2017-10-02 03:15:49 +02:00
twinaphex 4dd209696b Cleanups 2017-10-02 03:02:22 +02:00
twinaphex 6b1a1272a7 Remove d3d->d3d_err 2017-10-02 01:41:23 +02:00
twinaphex cf9147ff66 Remove <string> include 2017-10-02 01:40:20 +02:00
twinaphex ace611798e No longer include <string> for d3d.h 2017-10-02 01:38:48 +02:00
twinaphex 52b479fb22 Turn std::string shader_path into char * 2017-10-02 01:38:06 +02:00
twinaphex c4c41b277e Create d3d_begin_scene/d3d_end_scene 2017-10-02 01:15:23 +02:00
twinaphex c1cf1af265 Update d3d_device_create_offscreen_plain_surface 2017-10-02 00:49:29 +02:00
twinaphex 86096e677c Update 2017-10-02 00:48:31 +02:00
twinaphex b8253284e6 Create D3D9 C codepath 2017-10-02 00:47:14 +02:00
twinaphex 95d035883c Create d3d_surface_lock_rect 2017-10-02 00:45:33 +02:00
twinaphex 0559be4e72 Create d3d_device_create_offscreen_plain_surface 2017-10-02 00:38:05 +02:00
twinaphex 95ca5a3876 Cleanups 2017-10-02 00:30:29 +02:00
twinaphex ebe5f65893 Create d3d_device_get_render_target_data 2017-10-02 00:21:06 +02:00
twinaphex d960cc8c0f (D3D) Cleanups 2017-10-01 23:22:35 +02:00
twinaphex 8b1ae9427e Create d3d_device_set_render_target 2017-10-01 23:19:44 +02:00
twinaphex 30af756969 Create d3d_device_get_render_target 2017-10-01 22:38:30 +02:00
twinaphex 563024502f Create d3d_surface_free 2017-10-01 22:28:48 +02:00
twinaphex ff40cba3de Create d3d_vertex_declaration_free - wrap more D3D functions 2017-10-01 22:23:28 +02:00
Hans-Kristian Arntzen 5c67fc3040 Vulkan: Enable VK_KHR_sampler_mirror_clamp_to_edge extension. 2017-10-01 20:20:45 +02:00
Twinaphex 59f7a59b3f (Cocoa) Fix small leak 2017-10-01 09:33:53 +02:00
twinaphex 851af0532d d3d_set_vertex_shader - add D3D9 C codepath 2017-09-29 17:46:57 +02:00
twinaphex a40692f0c4 More fleshing out of d3d_common.cpp 2017-09-29 17:40:27 +02:00
twinaphex 028c04f358 Buildfixes 2017-09-29 17:34:08 +02:00
twinaphex 9ca4b9baf0 Implement more D3D C codepaths 2017-09-29 17:32:06 +02:00
twinaphex 9eba2c8e39 Fix CXX_BUILD on Windows 2017-09-28 18:53:09 +02:00
twinaphex c7975d8e36 Take out RARCH_INTERNAL ifdef 2017-09-28 00:06:13 +02:00
twinaphex a3ded01b64 Cleanups 2017-09-27 23:16:37 +02:00
twinaphex e9a072c1ce uniquely name D3D function for initing renderchain 2017-09-20 14:53:40 +02:00
twinaphex 105b98b837 Rename gl_legacy_renderchain to gl2_renderchain 2017-09-19 15:06:49 +02:00
twinaphex 2fb68c7007 (D3D9 HLSL) Cleanups 2017-09-19 15:02:51 +02:00
twinaphex 0ddc349557 (D3D9 HLSL) Cleanups 2017-09-19 14:58:56 +02:00
twinaphex 52970c773b Cleanup 2017-09-19 14:55:18 +02:00
r5 d5321c2001 Fix missing include 2017-09-19 13:49:51 +01:00
r5 cc5adc56ac (shaders) Change RARCH_WARN message, add missing newline 2017-09-18 18:12:00 +01:00
r5 33431b7b36 (shaders) Fix a bug when context is Vulkan. Remove smart code. 2017-09-18 10:51:38 +01:00
r5 f5988b2323 (shaders) Log a warning when using the shader fallback type
Only allow using Cg shaders when HAVE_CG is set
2017-09-18 04:43:08 +01:00
r5 fdccf4a6b0 (C89) Should be able to build now
@bparker06 to the rescue again.
2017-09-18 04:21:59 +01:00
r5 da0abc3126 Try to fix C89 build 2017-09-18 04:09:28 +01:00
r5 4a9325d01d (shaders) Avoid certain shader types when context isn't compatible.
@bparker06 to the rescue.
2017-09-18 03:46:17 +01:00
twinaphex d149d590cf Fix some Xbox unresolved symbols 2017-09-14 22:24:04 +02:00
twinaphex 3ab07fc43f Fix some Xbox unresolved symbol errors 2017-09-14 22:17:05 +02:00
twinaphex 557c6c1d19 (D3D) Try to treat HLSL shaders same as Cg shaders for now 2017-09-13 04:37:29 +02:00
twinaphex 88b593e4af (360) Builds again(360) Builds again(360) Builds again(360) Builds
again(360) Builds again(360) Builds again(360) Builds again(360) Builds
again(360) Builds again
2017-09-13 04:33:43 +02:00
twinaphex 170b368044 (360) Some buildfixes 2017-09-13 04:21:00 +02:00
twinaphex 07148293a5 (Xbox) Some buildfixes 2017-09-13 03:18:31 +02:00
twinaphex dbb6adb453 C89_BUILD fixes 2017-09-11 04:17:28 +02:00
twinaphex ba77d862a3 video_shader_parse.c - reduce stack usage 2017-09-09 22:54:55 +02:00
twinaphex 06a33aada8 Cleanups 2017-09-09 04:22:38 +02:00
twinaphex 30bff1ffab Cleanups 2017-09-09 04:11:46 +02:00
twinaphex 0a6c8122d0 Cleanups 2017-09-09 02:36:08 +02:00
twinaphex 2dee343ec7 Rearrange variables 2017-09-09 01:35:15 +02:00
twinaphex 3a92a60a8e Cleanups 2017-09-09 01:30:47 +02:00
twinaphex 0488415329 Cleanups 2017-09-09 01:18:40 +02:00
twinaphex 36e0ff8268 Rearrange variables 2017-09-09 01:10:00 +02:00
twinaphex c0207e9b56 Revert "Reduce size of variables"
This reverts commit 79f1166c6e.
2017-09-09 00:20:39 +02:00
twinaphex 330d8dc59e Cleanups 2017-09-09 00:02:38 +02:00
twinaphex 79f1166c6e Reduce size of variables 2017-09-08 23:44:10 +02:00
twinaphex 02ac92b91d Cleanups 2017-09-08 16:43:34 +02:00
twinaphex c3bb76a05e Try to reduce variable sizes 2017-09-08 05:58:48 +02:00
Twinaphex 1cc4239e2b Merge pull request #5409 from Scheiker/xvideo
Better error handling in *xv_init()
2017-09-07 20:34:43 +02:00
Brad Parker cacef3866a vc6: use int instead of INT_PTR for callback to DialogBoxParam 2017-09-07 13:48:11 -04:00