Commit Graph

1556 Commits

Author SHA1 Message Date
orbea
a4ab4794cf C89_BUILD: Remove c++ style comments 2018-01-03 14:56:22 -08:00
twinaphex
3a3776ba24 Create d3d_initialize_symbols 2018-01-03 18:38:13 +01:00
twinaphex
30ba656f5c Create d3d_create 2018-01-03 18:09:31 +01:00
twinaphex
dddfbe311a (XBox OG) Buildfix 2018-01-03 14:42:09 +01:00
twinaphex
88a91af0dc Remove this rule from the conditional 2018-01-03 14:40:41 +01:00
twinaphex
7a481236bf (Xbox OG) Some more buildfixes 2018-01-03 14:37:35 +01:00
twinaphex
82d44e9ad3 Cut down on more HAVE_MENU ifdefs 2017-12-31 18:02:14 +01:00
twinaphex
bd16fd49ab Fix ./configure --disable-rgui 2017-12-31 17:53:11 +01:00
twinaphex
cf3a010ead Remove some HAVE_MENU ifdefs 2017-12-31 17:42:07 +01:00
aliaspider
0a32642f17 (WIIU) shader: use a single attribute stream. 2017-12-31 14:06:49 +01:00
misson20000
be5ebbc039 (NSW) since we haven't yet gotten the OS graphics driver, upon calling display_finalize, to release some of the (currently global) resouces we give it when we initialized it, we need to maintain a little bit of global state in the graphics driver so it can be freed and reinitialized when we load a core. this should be able to be reverted when we implement alloc_pages in libtransistor. see https://github.com/reswitched/libtransistor/issues/74 and https://github.com/reswitched/libtransistor/issues/69 2017-12-31 03:04:15 +01:00
Twinaphex
d9c0f769c7
Merge pull request #6006 from aliaspider/master
(WIIU) update shader and add alpha blending to menu + overlays.
2017-12-31 00:21:53 +01:00
aliaspider
b371f4bb32 (WIIU) add a color attribute to tex_shader.
+ some fixes to overlay and menu display code.
2017-12-30 23:21:32 +01:00
misson20000
6254ddecf2 (NSW) initial support for menu 2017-12-30 11:14:45 +01:00
twinaphex
893cd2b472 Make this C89-compatible 2017-12-29 04:46:13 +01:00
misson20000
3101ee8036 (NSW) fix compilation errors and warnings for switch drivers 2017-12-29 04:45:25 +01:00
twinaphex
5c876647ed (NSW) Small cleanups 2017-12-29 00:45:00 +01:00
misson20000
6d2a7b1f26 Nintendo Switch (libtransistor) port 2017-12-29 00:10:01 +01:00
twinaphex
4ecb4d5dfb (Wiiu) Add overlays courtesy of r-type, thanks 2017-12-27 08:38:03 +01:00
aliaspider
1f143927ca (CTR) build fix. 2017-12-25 08:51:50 +01:00
gblues
6904101c44 Clean up trailing whitespace
== DETAILS

Really simple code cleanup, because my editor flags trailing whitespaces
and it's pretty annoying.
2017-12-12 00:24:18 -08:00
twinaphex
c4d8a8c800 Free after intfstream_close 2017-12-11 20:24:00 +01:00
twinaphex
1cd7568f1f (gx_gfx) Go through intfstream 2017-12-11 13:26:52 +01:00
twinaphex
61d3f90cae Add hint defines to libretro.h 2017-12-11 12:53:47 +01:00
twinaphex
318f17c4cb Start using VFS API constant defines 2017-12-11 12:15:00 +01:00
twinaphex
2e979ec537 Replace function signatures of file_stream file functions 2017-12-10 22:25:38 +01:00
Themaister
75b84b4f94 Support pending swapchain creation. 2017-12-09 17:28:20 +01:00
Themaister
714684a4d3 Don't wait for WSI fence unless it has been signalled. 2017-12-09 17:28:20 +01:00
twinaphex
48c3a50932 Move more variables 2017-12-04 13:03:14 +01:00
twinaphex
f47888aeda Move more variables to renderchain data 2017-12-04 12:50:22 +01:00
twinaphex
19ad9aa1cb Add resolve extensions callback 2017-12-04 12:43:22 +01:00
twinaphex
05ab278aca Pass chain userdata to renderchain driver 2017-12-04 11:54:30 +01:00
twinaphex
512a1b4cb6 Cleanups 2017-12-04 06:03:11 +01:00
twinaphex
c869cc5102 Refactor GL code 2017-12-04 05:55:18 +01:00
twinaphex
b2fbb9aeda Prepare to map DeleteFramebuffersEXT like this 2017-12-04 04:18:28 +01:00
twinaphex
6221512911 use EXT version of Framebuffer/Renderbuffer functions for MacOS X
PowerPC
2017-12-04 04:04:07 +01:00
radius
2747067f61 this probably fixes the shader on noveau and others 2017-12-03 15:10:24 -05:00
radius
3cd7026819 fix the shader and the label 2017-12-03 12:20:07 -05:00
radius
bada13a215 let it snow 2017-12-02 22:47:44 -05:00
Brad Parker
130203c431 gdi: fix closing window via X button 2017-11-27 20:49:56 -05:00
twinaphex
c0d8a2f093 Cleanup 2017-11-16 14:01:42 +01:00
twinaphex
bfd815985f Rename function callback 2017-11-16 12:02:25 +01:00
twinaphex
721b5f9529 Add set_mvp function callback 2017-11-15 16:51:29 +01:00
twinaphex
b6b6ba9226 No more GL_FF_MATRIX/GL_FF_VERTEX 2017-11-15 14:30:38 +01:00
twinaphex
619acbb5aa Start implementing video_driver_set_mvp properly 2017-11-15 14:16:06 +01:00
twinaphex
b50a667335 Buildfixes for Win32 2017-11-14 21:45:11 +01:00
twinaphex
229841b1c4 Create video_driver_set_coords 2017-11-14 21:43:13 +01:00
twinaphex
683c437941 Updates 2017-11-14 21:34:03 +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
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
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
40cfde0eba (MSVC 2010) Buildfix 2017-11-10 04:53:08 +01:00
twinaphex
faab2526c8 Create gl_bind_texture 2017-11-10 03:55:10 +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
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
dc664ff4f2 Cleanups 2017-11-08 01:53:24 +01:00
twinaphex
c1f0fceb4f More buildfixes 2017-11-08 00:59:16 +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
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
40a7755fe2 Cleanups 2017-11-06 19:39:21 +01: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
twinaphex
bb051f185b MSVC/C89 buildfixes 2017-10-22 05:13:22 +02:00
orbea
5ec052b675 Fix compilation with --enable-xshm.
Fixes https://github.com/libretro/RetroArch/issues/5551.
2017-10-18 09:33:09 -07:00
rz5
0a0c538e2b (gl driver) Set flags after detecting GL core context 2017-10-13 22:48:17 +01: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
d10de20bff Start compiling Griffin as C for 360 - C89 fixes 2017-10-03 04:11:41 +02:00
twinaphex
721afe22d8 (MSVC 2010) Compile griffin.c as C 2017-10-02 22:06:32 +02:00
twinaphex
fa0728d6b7 (NGC/Wii) BUildfix 2017-10-02 20:31:38 +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
f6fb1fd953 Create d3d_create_device 2017-10-02 03:15:49 +02:00
twinaphex
6b1a1272a7 Remove d3d->d3d_err 2017-10-02 01:41:23 +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
ff40cba3de Create d3d_vertex_declaration_free - wrap more D3D functions 2017-10-01 22:23:28 +02:00
twinaphex
9eba2c8e39 Fix CXX_BUILD on Windows 2017-09-28 18:53:09 +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
d149d590cf Fix some Xbox unresolved symbols 2017-09-14 22:24:04 +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
170b368044 (360) Some buildfixes 2017-09-13 04:21:00 +02:00
twinaphex
dbb6adb453 C89_BUILD fixes 2017-09-11 04:17:28 +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
c0207e9b56 Revert "Reduce size of variables"
This reverts commit 79f1166c6e.
2017-09-09 00:20:39 +02:00
twinaphex
79f1166c6e Reduce size of variables 2017-09-08 23:44:10 +02:00
Charlton Head
d29e8c18fa Better error handling in *xv_init() 2017-09-07 12:28:16 -05:00
Brad Parker
0a1b3fedc0 VC6 support (targets NT 3.51) 2017-09-06 23:03:02 -04:00
twinaphex
674dbfed19 Cleanups 2017-09-05 04:57:34 +02:00
twinaphex
bde5a6dc19 Rename renderchain_driver_t to d3d_renderchain_driver_t 2017-09-05 04:21:40 +02:00
twinaphex
3eecbd7135 Fix d3d9_cg_renderchain.cpp 2017-09-05 03:27:00 +02:00
twinaphex
374b6115e1 Update HLSL backend 2017-09-05 03:21:58 +02:00
twinaphex
c691bbaedc Start going through compilation errors 2017-09-05 00:57:58 +02:00
Brad Parker
35c4770c9b gdi: manually convert RGB444 to RGB555 to get around BI_BITFIELDS limitation on non-NT platforms 2017-09-01 20:52:58 -04:00
Brad Parker
c7d7c5c909 gl: don't try to render a blank OSD message on every frame 2017-08-31 11:59:23 -04:00
Brad Parker
5e3531a5f2 win98: fix core video graphics corruption\nbitmapinfoheader size should never include masks, but this is undocumented 2017-08-30 00:48:02 -04:00
Brad Parker
e3d68cd131 GDI: fix flickering of text 2017-08-22 23:39:42 -04:00
twinaphex
9c32d03c1e (Vulkan/Win32) C89_BUILD fixes 2017-08-12 17:56:30 +02:00
twinaphex
c7615fdf00 Add RETRO_ENVIRONMENT_SET_HW_SHARED_CONTEXT 2017-08-07 18:06:03 +02:00
twinaphex
ba36055632 (GX) Buildfix 2017-08-06 13:43:01 +02:00
twinaphex
169aea5ae1 (GX) Another buildfix 2017-08-06 05:54:46 +02:00
twinaphex
740ad823ab (GX) Buildfix 2017-08-06 05:52:40 +02:00
twinaphex
86f7972aa8 (Wii) Backport
0574b91595
- untested
2017-08-06 04:40:55 +02:00
Brad Parker
b1904bcfa6 caca: enable OSD text drawing 2017-08-04 21:51:14 -04:00
Brad Parker
c8e6a98651 gdi: enable OSD text drawing 2017-08-04 21:47:46 -04:00
twinaphex
9fe27117f2 Revert "(iOS) Take this out - see if it solves our issues"
This reverts commit 1cf6f2f20f.
2017-07-21 05:24:41 +01:00
twinaphex
1cf6f2f20f (iOS) Take this out - see if it solves our issues 2017-07-19 18:42:59 +01:00
twinaphex
b11620e1eb Add retro_timers.h/retro_math.h 2017-06-28 04:41:38 +02:00
twinaphex
03ee897ae2 Try implementing core context version of XMB ribbon 2017-06-27 06:31:18 +02:00
ensrha
93ea78772d Add missing verbosity include 2017-06-19 14:38:26 +01:00
twinaphex
c7ac70a923 Combine video_renderchain_driver.c and video_driver.c 2017-06-12 15:45:58 +02:00
Zoran Vuckovic
08b6fdb697 Add missing include directive 2017-06-12 14:13:08 +02:00
Daniel Jimenez
22fc07a839 Fix mirrored images in vertical games on 3DS (bug #4817)
On branch master
 Your branch is up-to-date with 'origin/master'.
 Changes to be committed:
	modified:   ctr_gfx.c
2017-06-11 18:12:37 -07:00
hizzlekizzle
ba2cf008c6 update Cg menu ribbon for additive blending
Fixes solid white ribbon.
2017-05-30 20:13:58 -05:00
aliaspider
934f7c58ba (WiiU) enable networking. 2017-05-23 10:24:23 +01:00
aliaspider
801cc57e82 (WiiU) improve task scheduling. 2017-05-22 11:19:26 +01:00
aliaspider
634de19dc9 (WiiU) enable libretrodb. 2017-05-22 06:07:27 +01:00
aliaspider
db490a69a3 (WiiU) add a menu display driver. enable MATERIALUI and XMB. 2017-05-22 01:45:40 +01:00
Jean-André Santoni
0b1716650b Use additive blending for the ribbon in GL and Vulkan 2017-05-22 01:29:56 +02:00
Jean-André Santoni
1bd07c34c7 Make the Vulkan ribbon consistant with the GL ribbon 2017-05-22 00:39:09 +02:00
aliaspider
8dee95651f (WiiU) add a font driver. 2017-05-21 03:05:41 +01:00
twinaphex
b7b7c67ca3 Windows buildfix 2017-05-20 17:47:56 +02:00
twinaphex
efce4d0abf Revert "Add cb_set_shader_coords"
This reverts commit 06df028722.
2017-05-19 21:21:40 +02:00
twinaphex
06df028722 Add cb_set_shader_coords 2017-05-19 21:13:44 +02:00
twinaphex
d8f5065d64 Add cb_set_shader_mvp 2017-05-19 19:52:33 +02:00
twinaphex
64fdadf60f Use cb_shader_use 2017-05-19 19:42:34 +02:00
twinaphex
452c02653e Turn gl_set_shader_viewport into gl_set_shader_viewports 2017-05-19 19:39:46 +02:00
twinaphex
a830051076 Update gx_gfx.c 2017-05-19 16:33:59 +02:00
twinaphex
2a54544eb3 Add cb_shader_use to video_frame_info 2017-05-19 14:24:19 +02:00
twinaphex
59b3344e72 Combine video_driver.c and video_shader_driver.c 2017-05-18 14:47:24 +02:00
twinaphex
4e04e95713 Buildfix 2017-05-18 04:03:49 +02:00
twinaphex
3f7a30a4b3 Start hooking up dummy callback functions to video_context_data
so that conditionals aren't necessary
2017-05-18 03:37:02 +02:00
twinaphex
941a5d4f94 Go through function callback for swap_buffers as well 2017-05-18 03:05:07 +02:00
twinaphex
86ee08b7a7 Add video context driver update window title callback
to video_frame_info_t
2017-05-18 02:53:12 +02:00
twinaphex
126a5bf121 Use string_is_equal_fast/string_is_not_equal_fast 2017-05-16 04:00:37 +02:00
aliaspider
36137d22e5 Vulkan: use the command buffer provided as parameter in
vulkan_copy_staging_to_dynamic.
2017-05-15 05:35:17 +01:00
twinaphex
80d9d1f143 Rewrite task_queue 2017-05-14 20:43:48 +02:00
twinaphex
17a15273ba Create function out of video_driver_is_focused - no longer
call video_driver_context_focus from video driver
2017-05-13 19:19:49 +02:00
twinaphex
d4756f83e5 Stop calling video_driver_context_has_windowed from within video
drivers
2017-05-13 19:11:32 +02:00
twinaphex
f6c8aba119 Move video_context_driver_update_window_title to video_driver_frame 2017-05-13 18:58:13 +02:00
twinaphex
f928e57064 Combine video_context_driver.c and video_driver.c 2017-05-09 01:25:59 +02:00
twinaphex
bac9973354 Cleanups 2017-05-09 00:58:01 +02:00
Andrew
858e15b837 Fix performance issue with max_swapchain_images
This fixes a performance problem introduced in my last commit when
max_swapchain_images == 3.

In my last commit I incorrectly stated the 3rd buffer was not being
used, after doing some additional testing I realized I was mistaken,
it can indeed be used due to the used page tracking.

Reverting that portion of my previous commit.
2017-05-05 16:58:17 -07:00
Andrew
01e25bd5c7 Fix max_swapchain_images and do some additional cleanup
When max_swapchain_images was originally added it worked properly,
but was subsequently broken by using the value to specify the number
of buffers allocated.

Due to how the dispmanx driver works, only 2 buffers are ever actually
used, so the 3rd buffer in the "swapchain" ended up doing nothing.

Fix this by restoring it to the original intent, that is, if
max_swapchain_images <= 2 wait for vsync after the flip (reducing
lag), otherwise wait at the last possible moment (increasing lag).

Additionally, fix up some unnecessary void* usage where type safety
could be maintained.
2017-05-04 18:45:59 -07:00
Andrew
a1d094e64e Minor race fix and small cleanup to dispmanx_gfx
It's unlikely it was causing issues, but another race existed in the
dispmanx driver, it incremented the pending page count after sending the
update request.

If a context switch happened between sending the update and incrementing
the page count, the vsync callback would decrement it from 0 and cause
the uint to overflow.

Throw in a minor C89 fix and some whitespace fixups too.
2017-04-29 17:09:07 -07:00
twinaphex
4d419b2b56 (sdl_gfx.c) Update 2017-04-29 18:47:29 +02:00
twinaphex
60242e161a Buildfix 2017-04-29 18:45:58 +02:00
twinaphex
dd83b4a043 (Vita) Buildfix 2017-04-29 17:52:16 +02:00
twinaphex
e84adb504f Don't try to call video_driver_is_threaded from outside
gfx/video_driver.c - only exception right now - menu_display.c
2017-04-29 16:52:52 +02:00