Commit Graph

6460 Commits

Author SHA1 Message Date
Brad Parker 90ef57948c GDI testing 2017-01-16 20:41:06 -05:00
Brad Parker 177d811475 GDI driver partially visible with RGUI/game now, need to figure out why it isn't totally visible. Also need to stretch the frame, swap red/blue and flip vertically. 2017-01-16 20:41:05 -05:00
Brad Parker dd2778fb32 GDI text testing 2017-01-16 20:41:05 -05:00
Brad Parker 49d7be9813 MSVC GDI buildfix 2017-01-16 20:41:05 -05:00
Brad Parker 6df175bd31 GDI paint test 2017-01-16 20:41:05 -05:00
Brad Parker bc8f9f7f3f add SwapBuffers() for gdi 2017-01-16 20:41:05 -05:00
Brad Parker fb7c3f4c37 set pixel format for GDI driver 2017-01-16 20:41:05 -05:00
Brad Parker 33520fca6f set win32_hdc for gdi 2017-01-16 20:41:05 -05:00
Brad Parker a7a1f093c0 add GDI message loop 2017-01-16 20:41:04 -05:00
Brad Parker 2c6a24653c testing 2017-01-16 20:41:04 -05:00
Brad Parker e6d7116da0 create GDI window 2017-01-16 20:41:04 -05:00
Brad Parker 05c37bd39f initial GDI driver skeleton 2017-01-16 20:41:04 -05:00
Brad Parker c283c1eaf4 disable shader dialog until video_threaded issues are fixed 2017-01-16 19:26:28 -05:00
twinaphex 1c82287e10 (video_state_tracker.c) Don't need header include 2017-01-16 21:33:25 +01:00
twinaphex 9feb430b58 Don't pass video_info_t as pointer 2017-01-16 18:03:00 +01:00
bparker06 b5403da862 use name instead of joypad_name 2017-01-15 23:04:56 -05:00
twinaphex 666534cc74 Grab settings pointer only once inside wrapper 'input_driver' function 2017-01-16 00:14:10 +01:00
twinaphex 4a9ca66389 (WGL) Check if settings struct is non-NULL 2017-01-15 23:58:14 +01:00
Twinaphex 105fa863ec Merge pull request #4418 from vanfanel/master
DISPMANX: Put guard back in to avoid potential lockups!
2017-01-15 13:55:58 +01:00
vanfanel 5a1e8d55fb DISPMANX: Put guard back in to avoid potential lockups! 2017-01-15 13:47:30 +01:00
Twinaphex 35df333ac4 Merge pull request #4417 from vanfanel/master
DISPMANX: implement pitch alignment for better videocore blitting per…
2017-01-14 23:08:07 +01:00
vanfanel 869a050a18 DISPMANX: implement pitch alignment for better videocore blitting performance 2017-01-14 23:01:05 +01:00
twinaphex 69ebda74c4 FIx shader 2017-01-14 22:48:02 +01:00
radius 33863714ab speed this up a bit 2017-01-14 15:54:56 -05:00
twinaphex c875d95f7a Revert "Free font data inside gfx/font_driver.c's free function"
This reverts commit b3f1bbc15e.
2017-01-14 21:02:30 +01:00
vanfanel 8640522073 DISPMANX: remove commented line 2017-01-14 15:56:54 +01:00
vanfanel da640aaa28 DISPMANX: Honor swapchain setting properly 2017-01-14 15:54:20 +01:00
vanfanel f0c2826994 DISPMANX: Fix refreshrate calculation by updating menu surface asynchronously 2017-01-14 14:38:18 +01:00
twinaphex b3f1bbc15e Free font data inside gfx/font_driver.c's free function 2017-01-14 14:26:56 +01:00
twinaphex 08e9f64e43 Get rid of early return in video_driver_build_info 2017-01-14 14:00:39 +01:00
twinaphex 326e1e3fac Cleanup video_driver_frame 2017-01-14 13:55:49 +01:00
twinaphex 4230662572 (X context) Use better swap control method if GLX_OML_sync_control
and GLX_MESA_swap_control are supported
2017-01-14 12:24:56 +01:00
twinaphex a4523e0b2b Initialize variable 2017-01-13 18:17:36 +01:00
twinaphex 23017e0b45 Cleanups 2017-01-13 16:57:57 +01:00
twinaphex 1fa3475d79 Add parameter to video_context_driver's 'init' function 2017-01-13 16:52:07 +01:00
twinaphex 8c9e0405fb Create video_driver_build_info 2017-01-13 16:09:32 +01:00
Matthew Wolff f6284721d8 Fix forgotten parameter of video_monitor_get_fps 2017-01-12 23:40:58 -06:00
twinaphex 24dc890b78 (gfx) Cleanups/style nit 2017-01-12 10:52:04 +01:00
twinaphex 1d59bc3452 (gfx) Style nits 2017-01-12 10:41:11 +01:00
twinaphex 0ee34b0076 (glslang_util.cpp) Cleanups/style nits 2017-01-12 10:32:57 +01:00
twinaphex 52ad8fb125 (gfx/drivers_font) Style nits 2017-01-12 10:26:12 +01:00
twinaphex 7d0056d422 Minimize dependence on settings struct from within context drivers 2017-01-11 06:44:41 +01:00
twinaphex 80f79130c0 Update set_video_mode context driver callback function 2017-01-11 06:35:50 +01:00
twinaphex 34d5f609f7 (x11_common.c) Cleanups 2017-01-10 21:54:48 +01:00
twinaphex a153d600e4 (font_renderer) Cleanups 2017-01-10 21:50:59 +01:00
twinaphex 20b5543420 (gl_raster_font.c) Cleanups 2017-01-10 21:43:45 +01:00
twinaphex d20bdabc20 Cleanup gl_raster_font_render_msg 2017-01-10 21:37:45 +01:00
twinaphex 6e696d8560 Rename g_osd_font to video_font_driver 2017-01-10 21:26:48 +01:00
twinaphex c1c35c5120 More platform build fixes 2017-01-10 21:15:52 +01:00
twinaphex f233745483 (SDL gfx) Buildfix 2017-01-10 21:01:13 +01:00
twinaphex 59a07d73b5 (PS3) Buildfix 2017-01-10 20:19:58 +01:00
twinaphex f1ef1a6a59 (GX) Buildfix 2017-01-10 20:18:49 +01:00
twinaphex db725155c1 (D3D) Another buildfix 2017-01-10 19:55:31 +01:00
twinaphex bc50f99e40 (WGL) Add header include 2017-01-10 19:51:06 +01:00
twinaphex a835149f69 (WGL) Buildfix 2017-01-10 19:48:19 +01:00
twinaphex 76ae7ac4a0 Cleanup some of the video drivers - add some members to
video_info_t to reduce the need for accessing the settings
struct
2017-01-10 18:16:22 +01:00
twinaphex 0b03e95d95 We no longer need the settings struct inside gl_init 2017-01-10 18:08:05 +01:00
twinaphex 8bd12368ef Pass joypad_driver name to input_driver_init function and make
sure we don't need to access the settings struct from the
input driver
2017-01-10 17:59:48 +01:00
twinaphex d48141041d Pass joypad_info to input_state function callback - less
settings pointer grabbing
2017-01-10 17:40:21 +01:00
twinaphex b9945f05f1 Pass joypad_info to input_joypad_analog 2017-01-10 03:53:57 +01:00
twinaphex 6376f2af68 Add rarch_joypad_info_t 2017-01-10 03:44:53 +01:00
Josh Palmer b85e2a8897 Fix references to bbctx-qnx post-rebase 2017-01-09 20:26:09 +00:00
Josh Palmer 5ed17c1ffd Reorganize QNX directory structure, rename bbqnx_ctx.c to qnx_ctx.c for consistency
Added OpenGL ES3 support to qnx_ctx.c
Finalize momentics project setup
2017-01-09 20:26:09 +00:00
Josh Palmer e1d3493a9d Handle more cases for EGL error reporting 2017-01-09 20:26:09 +00:00
Twinaphex 476c047f85 (OSX) Buildfix 2017-01-09 16:16:59 +01:00
twinaphex c086a18ceb video_driver_frame_filter no longer needs to grab pointer to
settings
2017-01-09 15:46:40 +01:00
twinaphex 36fb6776b2 Don't grab settings pointer in video_monitor_get_fps function 2017-01-09 15:42:14 +01:00
twinaphex 35fefb1c09 Do away with yet more pointer grabbing of settings 2017-01-09 15:14:16 +01:00
twinaphex 6b3cc9068d Pass video_info to swap_buffers too 2017-01-09 14:59:15 +01:00
twinaphex 3d92ce140e Pass video_frame_info_t to update_window_title 2017-01-09 14:42:07 +01:00
twinaphex be2f921ee2 Don't use settings pointer inside video_frame function 2017-01-09 14:25:59 +01:00
twinaphex a90cf337c7 C buildfix 2017-01-09 01:56:36 +01:00
twinaphex c87ef25133 CXX_BUILD fix 2017-01-09 01:54:15 +01:00
Twinaphex 6b2601eb91 Merge pull request #4384 from fr500/master
small optimization by @aliaspider
2017-01-09 00:39:10 +01:00
radius 86e8c409fe small optimization by @aliaspider 2017-01-08 18:36:06 -05:00
twinaphex 68d484bf60 Set supports_rgba before calling image_texture_load 2017-01-08 21:49:23 +01:00
twinaphex 9b6b055047 avoid some implicit memsets 2017-01-08 19:35:24 +01:00
radius f87f7d026d improve readability a bit 2017-01-07 22:47:55 -05:00
twinaphex c8bc6c7120 (XMB) Add Bokeh menu pipeline 2017-01-08 03:56:47 +01:00
twinaphex c57ab8f37a Add pipeline_bokeh to shader_glsl.c 2017-01-08 02:16:47 +01:00
twinaphex 09a83525a9 Add pipeline_bokeh.glsl.frag.h 2017-01-08 02:13:36 +01:00
Twinaphex faa8ddf413 Remove unused variables 2017-01-07 08:11:23 +01:00
vanfanel 7ba3ff9c12 DISPMANX: Fix hang when null frame is passed (TyrQuake core) 2017-01-05 23:47:33 +01:00
twinaphex bbcdc18801 Remove unused variables 2017-01-05 22:18:09 +01:00
Logan McNaughton 017d9cea9d This fixes the XMB menu for me
When using threaded video and shared context

Threaded video gets disabled for GL contexts, so you can't rely on the settings value
2017-01-05 12:53:55 -08:00
twinaphex c028f56016 Turn video_driver_is_threaded into a static function 2017-01-05 08:52:30 +01:00
twinaphex e75633064a Add 'Y button' callback function for input binds 2017-01-05 04:52:04 +01:00
twinaphex 7ec6dc0bde (x_ctx.c) Cleanup 2017-01-04 09:44:08 +01:00
twinaphex b13d069578 - Silence Coverity warning in platform_linux.c
- Don't do settings lookup when calling runloop_msg_queue_push
2017-01-03 18:47:34 +01:00
twinaphex b243fec095 Simplif gfx_ctx_drm_queue_flip 2017-01-01 06:06:44 +01:00
Logan McNaughton 35792721e5 Attempt to fix some issues with BGRA textures 2016-12-30 21:14:30 -07:00
Logan McNaughton 34ad1555f1 Use this code for GLES2 and GLES3 2016-12-30 13:56:54 -07:00
Logan McNaughton 8953bce122 Found a combination that doesn't work 2016-12-30 10:42:26 -07:00
Logan McNaughton f94e944723 Update gl_common.c 2016-12-30 10:30:21 -07:00
Logan McNaughton c0bdc67458 One more sized format 2016-12-30 10:29:26 -07:00
Logan McNaughton 90a1c76abb This wasn't working on Android 2016-12-30 10:22:12 -07:00
Twinaphex 2174ba5e27 Merge pull request #4321 from loganmc10/glupen
Use RGBA for internal format
2016-12-30 16:18:40 +01:00
twinaphex 9657bbd998 Get rid of set_rgba/unset_rgba inside image_texture.c 2016-12-29 23:22:40 +01:00
twinaphex 6a166faa0c Revert "Remove supports_rgba varaible from image_texture.c"
This reverts commit bd0c97fdc4.
2016-12-29 22:53:10 +01:00
twinaphex bd0c97fdc4 Remove supports_rgba varaible from image_texture.c 2016-12-29 22:39:52 +01:00
twinaphex f067ecce50 (video_driver.c) Cleanups 2016-12-27 14:48:04 +01:00
Logan McNaughton f45a75fa98 Use RGBA for internal format 2016-12-26 13:00:38 -07:00
hunterk 5ec5b199f6 less invasive revert for blue/red swap 2016-12-25 20:22:28 -06:00
twinaphex bb4888ae22 Be more careful with allocations 2016-12-25 01:52:40 +01:00
twinaphex 77e5cdbfde Revert "Rename runloop_msg_queue_push to video_driver_msg_queue_push"
This reverts commit ad7386913c.
2016-12-22 23:36:11 +01:00
twinaphex b07fd17258 Revert "Initialize message queue first"
This reverts commit b0c97e901f.
2016-12-22 23:34:21 +01:00
Brad Parker 42307a322a missing ../ 2016-12-22 11:25:49 -05:00
twinaphex b0c97e901f Initialize message queue first 2016-12-22 14:31:19 +01:00
twinaphex ad7386913c Rename runloop_msg_queue_push to video_driver_msg_queue_push
and move code to video_driver.c
2016-12-22 13:15:02 +01:00
twinaphex 5d6067159c gl_common.c - config.h include 2016-12-21 16:09:29 +01:00
twinaphex 19810233fa Comment this out for PSGL 2016-12-21 16:06:42 +01:00
twinaphex 9dd7d7804e Turn size_format into gl_size_format, and add a FIXME note 2016-12-21 15:47:38 +01:00
twinaphex 58716e5f3c Silence some Coverity warnings 2016-12-21 01:34:28 +01:00
Twinaphex d23beed9bb Merge pull request #4288 from Themaister/master
Vulkan: Fix menu shader parameters for slangp.
2016-12-21 00:20:06 +01:00
Logan McNaughton 21779c87b8 Missed one of the texture formats 2016-12-20 10:10:23 -07:00
Logan McNaughton 3392f3996b Fix up some texture format code 2016-12-20 08:57:13 -08:00
Hans-Kristian Arntzen 4e9fe4bd54 Vulkan: Fix menu shader parameters for slangp.
video_shader_resolve_parameters did not take #includes into account
while the Vulkan implementation did. Added a helper function which
parses a shader file and figures out the shader parameters in the same
way.
2016-12-20 15:58:37 +01:00
twinaphex 5ca7344436 Get rid of more implicit memsets 2016-12-19 19:17:23 +01:00
twinaphex 31b87594aa Get rid of some implicit memsets for state tracker 2016-12-19 19:08:37 +01:00
Hans-Kristian Arntzen c48bb6284e Wayland: Cursor toggling. 2016-12-17 21:34:51 +01:00
Hans-Kristian Arntzen 313ac63c33 Make use of xkb_state_update_mask.
Fixes mod keys in Wayland it seems.
2016-12-17 20:42:48 +01:00
Hans-Kristian Arntzen b2059dcb79 Implement basic Wayland keyboard and mouse. 2016-12-17 20:28:08 +01:00
twinaphex feae0823ce Prevent some implicit memsets 2016-12-17 14:40:06 +01:00
twinaphex 96ffd8e025 Revert "Remove HAVE_COMPRESSION ifdefs in file_path.c"
This reverts commit 4103b70833.
2016-12-17 12:55:38 +01:00
Twinaphex accf137020 Merge pull request #4260 from Themaister/master
Vulkan: Fix VSync toggling on Windows.
2016-12-17 12:23:15 +01:00
twinaphex 4103b70833 Remove HAVE_COMPRESSION ifdefs in file_path.c 2016-12-17 12:20:49 +01:00
Hans-Kristian Arntzen 4c99809cde Vulkan: Fix VSync toggling on Windows.
Retarded bug, but haven't actually had access to a Windows machine until
now.
2016-12-17 12:06:43 +01:00
Twinaphex b48d896c1e Merge pull request #4249 from joolswills/mali_fbdev_ctx_warning
added stdlib.h - fixes warning with free / system
2016-12-15 20:01:18 +01:00
Jools Wills 4153785130 added stdlib.h - fixes warning with free / system 2016-12-15 18:59:20 +00:00
twinaphex a5d4032d01 (X11) Cleanups 2016-12-15 12:37:14 +01:00
twinaphex 97c9eab9ba (menu_displaylist.c) Indenting breaks syntax formatting for vim 2016-12-15 08:36:28 +01:00
twinaphex 6807ef007b (gl_common.c) Cleanups 2016-12-14 19:29:14 +01:00
Logan McNaughton fc4c7529a1 Fix internal formats used with texture creation 2016-12-14 09:54:55 -08:00
twinaphex f9b019c83a Rename loadTexture to gl_load_texture_image 2016-12-14 16:59:16 +01:00
Logan McNaughton 8cd2566128 Simplify glTexImage2D/glTexStorage2D calls
Also add support for glTexStorage2DEXT (GLES2)
2016-12-14 07:29:37 -08:00
twinaphex 6a45541f24 (Vulkan) Rename pipeline files 2016-12-12 13:17:20 +01:00
twinaphex 8042c2ac62 Move config_file_userdata.c to libretro-common 2016-12-12 12:36:46 +01:00
twinaphex a94b15ac86 (Vulkan) Add pipeline snow simple shader 2016-12-12 05:21:38 +01:00
Arzed Five 18392a5e40 (XMB VK snow) Attempt to fix the Vulkan snow menu shader 2016-12-12 03:46:26 +00:00
twinaphex c0caae124e Prevent warning 2016-12-11 22:11:03 +01:00
Brad Parker 7c176c3d14 replace simple snow with fancy snow code with different parameters 2016-12-11 13:00:12 -05:00
aliaspider 5cf8391c5a replace the glsl snow shader with a more lightweight version.
(gpu usage is approximately 25% compared to the original.)
2016-12-11 15:52:32 +01:00
barbudreadmon ad273d6299 Fix for issue #4165
vulkan video driver don't rotate the same way as gl video driver without this.
2016-12-11 10:53:02 +01:00
twinaphex a210e4f6fe (PS3) Some build fixes 2016-12-10 09:39:07 +01:00
twinaphex 1b29d41661 (render_chain_gl_legacy.c) Cleanups 2016-12-10 07:30:14 +01:00
twinaphex be459a6281 Cleanups 2016-12-10 07:28:08 +01:00
twinaphex aa5730dbc9 (render_chain_gl_legacy.c) Cleanups 2016-12-10 07:26:50 +01:00
Brad Parker 1f39426195 only use fancy ribbon on GLES if GL_OES_standard_derivatives extension is detected 2016-12-09 19:32:55 -05:00
Logan McNaughton 1d69baca82 Use glTexStorage2D for FBO textures 2016-12-08 21:14:10 -07:00
Logan McNaughton b275b2e113 Use RGBA8 for FBO texture internal format on GLES3
GLES3 supports GL_RGBA8 as an internal format for textures.

Using the sized format (RGBA8 instead of RGBA) allows more flexibility. In my case I am trying to use glCopyImageSubData and it only works on textures with sized internal formats.
2016-12-07 11:22:24 -07:00
twinaphex 6200c3a1e0 Clean up mutex functions 2016-12-07 08:51:38 +01:00
twinaphex a12d0d082d Move input_translate_coord_viewport to video_driver.c 2016-12-07 08:07:11 +01:00
twinaphex bcfb80072c (XDK) Remove this - would have to be reimplemented 2016-12-07 07:02:41 +01:00
twinaphex 700365c433 (XDK) Another buildfix 2006-05-14 14:08:32 +02:00
twinaphex 0b0a5b7890 Add HAVE_D3D9 ifdef 2016-12-07 06:59:46 +01:00
twinaphex de94f77629 (XDK) Buildfixes 2006-05-14 14:02:54 +02:00
twinaphex 2b262c6b32 (render_chain_xdk.cpp) Add d3d.h include 2016-12-07 06:48:04 +01:00
twinaphex ec676e3e62 Add header include 2016-12-07 06:46:15 +01:00
twinaphex ccacfcda60 (render_chain_xdk.cpp) Add header include 2016-12-07 06:34:22 +01:00
twinaphex e0c3626791 Turn this into _XBOX360 ifdef 2016-12-07 06:32:05 +01:00
twinaphex 28fa2a240a (XDK) Buildfixes 2006-05-14 13:36:54 +02:00
twinaphex adb39cc844 Turn last param of d3d_set_texture into void * 2016-12-07 06:26:24 +01:00
twinaphex 53ca2f0a53 Add runloop.h include 2016-12-07 06:22:57 +01:00
Brad Parker 32a3026654 enable standard derivatives extension for GLES, adds support for complex XMB ribbon 2016-12-06 21:04:12 -05:00
Brad Parker 12294c96aa check for high precision floats on GLES, then enable if supported 2016-12-06 21:04:12 -05:00
Brad Parker f90ab6e189 default to highp precision for GLES 2016-12-06 21:04:12 -05:00
twinaphex d3db3a7ec4 (Vulkan) Add pipeline simple snow 2016-12-06 00:51:48 +01:00
twinaphex 9f470c53ae Add 'Simple Snow' shader to GLSL backend 2016-12-06 00:48:36 +01:00
twinaphex abaa6eda62 Rename VIDEO_SHADER_MENU_SEC to VIDEO_SHADER_MENU_2 2016-12-06 00:34:38 +01:00
twinaphex 94528ed28d (Drivers) Cleanups/style nits 2016-12-05 02:09:32 +01:00
twinaphex 9e2717e927 Revert "Create drivers_data array and no longer use recording_data"
This reverts commit e049b7e1f0.
2016-12-05 02:02:59 +01:00
twinaphex e049b7e1f0 Create drivers_data array and no longer use recording_data 2016-12-05 01:56:06 +01:00
twinaphex bbbcc97f57 Simplify input_push_analog_dpad 2016-12-04 22:20:47 +01:00
twinaphex 85aa88f665 Simplify input_push_analog_dpad 2016-12-04 21:30:50 +01:00
twinaphex 59c317dc1d Pass pointers to input_push_analog_dpad 2016-12-04 20:20:35 +01:00
Twinaphex ea5b0bd6c9 Merge pull request #4154 from fr500/master
review: make preset loading more robust
2016-12-04 19:40:37 +01:00
radius ddf10e93f0 remove filestream, use path_file_exists instead 2016-12-04 12:38:46 -05:00
radius c2acadb979 instead of writing absolute paths, try to resolve absolute paths when loading, if not fallback to relative paths 2016-12-04 02:09:19 -05:00
radius 5e1ed323bd make shaders paths absolute for now 2016-12-04 01:12:57 -05:00
twinaphex eea1b3790b Try to prevent superfluous calls to recording functions
if not necessary
2016-12-04 06:31:29 +01:00
twinaphex 2c7af649cf (Wayland) Cleanups 2016-12-04 03:54:11 +01:00
twinaphex 49c78ea2ff (Drivers context) Cleanups 2016-12-04 03:51:12 +01:00
twinaphex cd8fad87fc (Mali) Cleanups 2016-12-04 03:48:05 +01:00
twinaphex 4b2a906148 (gfx/common) Cleanups 2016-12-04 03:45:46 +01:00
twinaphex 2f171c4b5d (x11_common.c) Cleanups 2016-12-04 03:39:51 +01:00
Twinaphex 32423b9e4b Merge pull request #4148 from spec-chum/MSVC
Fix silly typo
2016-12-03 19:50:51 +01:00
Spec-Chum f648b1cfbc Fix silly typo 2016-12-03 18:43:12 +00:00
Twinaphex 91550b6ba3 Merge pull request #4147 from spec-chum/MSVC
Fix MSVC compilation
2016-12-03 19:37:42 +01:00
Spec-Chum 7a6a0ee7af Fix MSVC compilation 2016-12-03 18:24:49 +00:00
Hans-Kristian Arntzen eb7870db5a Vulkan: Check for more cases in vulkan_load_texture().
*Sigh*
2016-12-03 18:54:34 +01:00
Hans-Kristian Arntzen b96f1fa067 Vulkan: Load a dummy texture if needed. 2016-12-03 17:48:48 +01:00
Hans-Kristian Arntzen 53c30cacd5 Correctly check errors if preset cannot be found. 2016-12-03 16:05:04 +01:00
Brad Parker e39031cbd0 revert rest of unicode changes 2016-12-03 00:15:29 -05:00
Brad Parker f725b48555 starting to revert unicode changes 2016-12-03 00:15:29 -05:00
Brad Parker cc7bf6b4fa more unicode fixes 2016-12-02 21:11:55 -05:00
Brad Parker 5be05b3f61 Merge branch 'msvc' 2016-12-02 14:36:48 -05:00
Brad Parker 3b8a81dd31 make existing hard-coded unicode calls switchable back to ansi 2016-12-02 14:34:29 -05:00
Brad Parker d891f1c90b remove explicit unicode def/undefs 2016-12-02 14:34:29 -05:00
Brad Parker a109df9271 make existing hard-coded unicode calls switchable back to ansi 2016-12-02 14:15:39 -05:00
twinaphex 5547b3fa3e Rename some variables in wgl_ctx.cpp and cahnge prefix 'g_' to 'win32_' 2016-12-02 19:58:55 +01:00
Brad Parker f64fb911b8 remove explicit unicode def/undefs 2016-12-02 12:46:32 -05:00
twinaphex 45407f9b52 (shader_glsl.c) Small cleanups 2016-12-02 16:50:08 +01:00
twinaphex 65ba82ca4b (shader_gl_cg.c) Cleanups 2016-12-02 16:45:58 +01:00
twinaphex 5e10dbf348 Move more runloop.h includes 2016-12-02 16:01:06 +01:00
twinaphex a911c24ba3 Remove runloop.h header includes 2016-12-02 06:26:41 +01:00
twinaphex 4ee5fcae47 Buildfixes 2016-12-02 01:51:26 +01:00
twinaphex 0284853681 (xbox OG) Use flicker_filter_index 2016-12-02 01:04:46 +01:00
twinaphex 2eeb8912e8 (xdk1_xfonts.c) Add header include 2016-12-02 01:03:14 +01:00
twinaphex e5072c8e7f Put this behind #ifndef _XBOX ifdef 2016-12-02 00:59:01 +01:00
Brad Parker ba54f20626 initial libcaca video driver 2016-12-01 12:13:45 -05:00
Brad Parker 367dea6723 unicode-ify a couple other windows files, start changing function names to W version explicitly 2016-11-29 20:32:24 -05:00
Brad Parker 8adafa9249 use UTF8/16 conversion functions instead of codepage ones 2016-11-29 14:34:36 -05:00
Brad Parker cd9d09d1f3 use unicode versions of windows functions 2016-11-29 14:34:35 -05:00
twinaphex d57d672d15 Remove unused variable 2016-11-28 02:25:38 +01:00
twinaphex cd0bf8f31a Prefer to use strlcpy instead of strcpy 2016-11-26 17:11:30 +01:00
Lioncash d34202aea6 vulkan: Move vk_t pointer dereferences after the null check 2016-11-25 23:21:31 -05:00
twinaphex 88b1c3ed4c Initialize char variables 2016-11-25 18:26:11 +01:00
Alcaro b0cae5eafb Merge pull request #4066 from lioncash/endif
opendingux: Properly close #ifdef macro
2016-11-25 18:25:25 +01:00
Lioncash 5a5a54ef91 opendingux: Properly close #ifdef macro 2016-11-25 12:23:35 -05:00
Lioncash 918710cb2e drm_gfx: Fix typo in log message 2016-11-25 12:19:09 -05:00
Lioncash bc28d46bbb drm_gfx: Fix memory leak in fail case 2016-11-25 12:17:53 -05:00
radius 8a16ec393c remove WIN32 ifdefs 2016-11-23 20:37:29 -05:00
radius 8cb5ed0d95 (win) add fixed window size mode 2016-11-23 19:43:50 -05:00
aliaspider e2f7145112 (WiiU) video driver: set the correct monitor refresh rate on init.
- add a performance counter.
2016-11-22 22:47:06 +01:00
twinaphex b93c759d3c (gfx/video_driver.c) Simplifications 2016-11-21 13:31:04 +01:00
twinaphex 6c3a5fe634 Buildfix 2016-11-21 13:23:36 +01:00
twinaphex 05d6735720 Simplify video_driver.c code - turn some functions into macros 2016-11-21 13:17:28 +01:00
FIX94 8a62d5ea96 (WiiU) massive changes in the audio driver, this should hopefully work better
(WiiU) making sure the menu is properly drawn before swapping buffers, fixes visible menu drawing lines
2016-11-21 03:18:48 +01:00
twinaphex 5fc1b0c88e Remove obsolete font_driver_has_render_msg 2016-11-20 17:51:16 +01:00
twinaphex 1b00796f64 Turn video_shader_driver_set_parameter to macro 2016-11-20 17:28:51 +01:00
twinaphex 856d6b37be Turn video_shader_driver_set_coords into macro 2016-11-20 16:48:54 +01:00
twinaphex ef610312e7 Turn video_shader_driver_set_mvp into macro 2016-11-20 16:45:06 +01:00
twinaphex dd0a8d1778 Turn video_shader_driver_set_parameters into macro 2016-11-20 16:40:08 +01:00
twinaphex 2deb306967 Turn video_shader_driver_use into macro 2016-11-20 16:31:45 +01:00
twinaphex c9206d3cb3 video_shader_driver.c - simplifications 2016-11-20 16:21:33 +01:00
twinaphex 69b57bad34 Fix comment 2016-11-20 15:23:43 +01:00
twinaphex 011f1012fb Cleanup 2016-11-20 15:21:02 +01:00
twinaphex 2dcf79bb4e Cleanups 2016-11-20 15:14:00 +01:00
twinaphex 1dcef5e429 Turn some video context driver functions into macros 2016-11-20 15:06:28 +01:00
twinaphex 06c86f0852 (video_context_driver.c) Simplifications 2016-11-20 14:52:50 +01:00
twinaphex e27940e646 Fixes Android 2.4 compatibility 2016-11-19 03:54:21 +01:00
Jean-André Santoni d4296b016f Make shader names consistent, step 5 2016-11-19 00:30:56 +01:00
Jean-André Santoni 9c83658368 Make shader names consistent, step 4 2016-11-19 00:29:13 +01:00
Jean-André Santoni d1bf61076d Make shader names consistent, step 3 2016-11-19 00:27:54 +01:00
Jean-André Santoni 35d8ec12c5 Make shader names consistent, step 2 2016-11-19 00:23:07 +01:00
Jean-André Santoni 3b2b7580db Make shader names consistent, step 1 2016-11-19 00:20:52 +01:00
Jean-André Santoni 4e74375356 Replace the modern snow glsl vertex shader 2016-11-19 00:08:59 +01:00
twinaphex 2be4ca1755 Simplify vertex snow shaders 2016-11-18 09:54:19 +01:00
twinaphex df7ffe1822 Don't use legacy vertex shader for snow for OpenGLES 2016-11-17 21:25:02 +01:00
twinaphex 547cb83652 Add third menu shader program 2016-11-17 21:14:19 +01:00
twinaphex 20c1ef83d6 First stab at getting snow shader to work 2016-11-17 21:08:50 +01:00
twinaphex a2c69ec254 Added snow shader hooks - doesn't work yet though - shader driver
system is very limited in terms of how we can set custom menu
shaders - will require a rethink
2016-11-17 20:54:29 +01:00
twinaphex 23aa03fcdd Start adding snow shaders 2016-11-17 20:21:20 +01:00
aliaspider ec8fd655b0 (WiiU) add support for 32bpp mode. 2016-11-16 19:03:01 +01:00
Alcaro a3e9addd80 Clean this one up a little 2016-11-14 17:23:38 +01:00
aliaspider e23ead0b17 (WiiU) video driver: check data pointer validity before using it. member
functions seem to be called before driver init.
2016-11-14 15:09:53 +01:00
Twinaphex d978a0aa90 Merge pull request #3991 from aliaspider/master
(WiiU) implement viewport/filtering options.
2016-11-13 19:23:32 +01:00
aliaspider 975c442b1a (WiiU) implement viewport/filtering options. 2016-11-13 18:43:22 +01:00
Twinaphex d4eba0ab96 Merge pull request #3985 from aliaspider/master
(WiiU) update.
2016-11-13 02:22:18 +01:00
Higor Eurípedes 8977968b6d (shader_glsl.c) Don't allocate/clear more than needed in gl_glsl_set_coords() 2016-11-12 08:23:06 -03:00
twinaphex 8551cc4f9b Remove if 0 for memcpy 2016-11-11 22:54:13 +01:00
Jean-André Santoni 72161acbd3 Smoother ribbon 2016-11-11 20:04:55 +01:00
Jean-André Santoni 02be74b9c4 Revert "New ribbon noise. Will have to be ported to GLSL modern, Vulkan and Cg"
This reverts commit 1fa5b66a23.
2016-11-11 19:59:27 +01:00
twinaphex 849cc591bc Revert "Use GL_STREAM_DRAW"
This reverts commit df4107b541.
2016-11-11 18:34:06 +01:00
neville df4107b541 Use GL_STREAM_DRAW 2016-11-11 00:52:43 +01:00
neville 12804431db (GLSL) Avoid memsets - good for about a +1fps speedup with simplified
ribbon on PowerPC Mac
2016-11-10 18:35:47 +01:00
aliaspider 9ecd8b18e0 (WiiU) set swap interval to 1 when vsync is active. 2016-11-10 15:11:33 +01:00
aliaspider 158fd3404e (WiiU) enable blending. 2016-11-10 14:24:44 +01:00
aliaspider 6f7f6a363b (WiiU) only wait for vsync when not missed. 2016-11-10 14:24:20 +01:00
twinaphex 3f29eed928 According to enygmata's findings we can comment this out 2016-11-10 02:09:25 +01:00
Jean-André Santoni 1fa5b66a23 New ribbon noise. Will have to be ported to GLSL modern, Vulkan and Cg 2016-11-09 11:59:43 +01:00
twinaphex a7585f9988 Move video_frame.h to libretro-common 2016-11-08 15:35:24 +01:00
twinaphex a0e1413ecc Remove video_frame.c 2016-11-08 15:30:28 +01:00
twinaphex 279a90a01b Remove dependencies from gfx/video_frame.c 2016-11-08 15:26:15 +01:00
aliaspider 79192c0ead (WiiU) video: set swap interval to 0 when nonblocking.
add an fps log.
2016-11-08 10:51:07 +01:00
FIX94 4a285fd4e1 (WiiU) fixed random pixels being displayed on game start/close and exit
(WiiU) fixed touchscreen sending invalid data which broke the menu toggle
2016-11-07 02:42:12 +01:00
FIX94 11db939b9b -(WiiU) added in option to disable vsync 2016-11-06 23:29:54 +01:00
aliaspider 0de5019fab (WiiU) clear textures on init. 2016-11-06 22:13:07 +01:00
Twinaphex 38b3e4042d Merge pull request #3953 from aliaspider/master
(WiiU) working sound.
2016-11-06 19:18:11 +01:00
aliaspider e5a07a406a (WIIU) cleanup debug code from the video driver. 2016-11-06 18:59:50 +01:00
twinaphex aaefa8d59e (wayland_ctx.c) Prevent implicit memsets 2016-11-06 18:47:50 +01:00
twinaphex 695ff2a299 (sdl_gl_ctx.c) Prevent some implicit memsets 2016-11-06 18:44:55 +01:00
twinaphex 027a194346 (xegl_ctx.c) Style nit 2016-11-06 18:41:59 +01:00
twinaphex 8e941ee77a (android_ctx.c) Prevent implicit memsets 2016-11-06 18:39:38 +01:00
twinaphex 219880a72b Prevent implicit memsets for WGL context update_window_title
function
2016-11-06 18:36:58 +01:00
twinaphex 64154f6060 win32_common.cpp - turn function static 2016-11-06 18:35:00 +01:00
Alcaro 85cbb53a44 Merge pull request #3952 from Themaister/master
Vulkan: Workaround warning from validation layers.
2016-11-06 16:55:44 +01:00
Hans-Kristian Arntzen 0d718a9365 Vulkan: Workaround warning from validation layers. 2016-11-06 16:07:44 +01:00
twinaphex 7e5d2321c5 Create video_driver_reinit 2016-11-06 14:18:29 +01:00
twinaphex feacc56fff Prevent crash by checking if msg is NULL before doing strlcpy call 2016-11-06 14:10:25 +01:00
twinaphex 9a87dabca1 One less leaf function inside video_driver_frame 2016-11-06 14:06:47 +01:00
twinaphex fbcefd02b9 (video_driver.c) Copy message if runloop_ctl returns true 2016-11-06 14:05:00 +01:00
twinaphex 49893c10f5 Prevent early returns for video_frame_pixel_scale 2016-11-06 13:57:27 +01:00
twinaphex 483cd0077c Move code 2016-11-06 13:42:34 +01:00
twinaphex 777f2df35c Remove video_driver_unset_active 2016-11-06 13:38:31 +01:00
twinaphex 8acb4cac78 video_driver_frame_filter - make early returns unnecessary 2016-11-06 13:34:48 +01:00
Alcaro 506c14dcc4 No need for inconsistency, let's just not have this at all. 2016-11-06 12:09:08 +01:00
twinaphex 05f1657048 (win32_common.cpp) Cleanup 2016-11-06 11:52:03 +01:00
twinaphex 89ed02cd01 (stb_unicode.c) Style nits 2016-11-06 11:44:21 +01:00
twinaphex f7378be00f Fix C89_BUILD warnings 2016-11-06 11:42:35 +01:00
twinaphex ad5d78b63e Define this too 2016-11-05 20:50:13 +01:00
twinaphex 37ff8cb66f Prevent stb_truetype from being included twice for Griffin 2016-11-05 20:45:23 +01:00
twinaphex 0dbf7b21b6 Enable STB unicode font for Android and Win32 too 2016-11-05 19:33:07 +01:00
Francisco José García García 14c9eb47c4 (VITA) Add uft8 support 2016-11-05 16:21:21 +01:00
Twinaphex 92b3a24943 Merge pull request #3940 from aliaspider/master
(WIIU) GX2
2016-11-05 15:07:31 +01:00
aliaspider d3b3c18a6f (WIIU) GX2 rendering. 2016-11-05 15:05:46 +01:00
Twinaphex 103a22b3db (CoreText) Preliminary font work/updating 2016-11-04 16:45:09 +01:00
twinaphex ea46c4a532 Turn video_driver_lock functions static 2016-11-04 14:16:55 +01:00
twinaphex 5214c29295 gfx/video_driver.c - get rid of struct 2016-11-03 23:03:50 +01:00
twinaphex d4809d310a Fix for previous bugged Xorg GL drivers 2016-11-03 13:25:44 +01:00
Logan McNaughton 06eca5d530 Define some EGL constants
Missing from the Android headers
2016-11-01 07:09:58 -06:00
Logan McNaughton 200cf15044 Add egl debug context option for Android
According to https://www.khronos.org/registry/egl/extensions/KHR/EGL_KHR_create_context.txt

"The default value of EGL_CONTEXT_FLAGS_KHR is zero"

So this should keep it at 0 if debug=false, and set it to EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR is debug=true

Fixes https://github.com/libretro/RetroArch/issues/3910
2016-10-31 15:28:45 -06:00
twinaphex f707d39c54 Let's just get rid of this problematic check instead 2016-10-31 15:30:20 +01:00
twinaphex de3c1a04db Simplifications 2016-10-31 15:24:03 +01:00
twinaphex 4ff6d8c108 Add more logging 2016-10-31 15:12:34 +01:00
Twinaphex 92a9f8aec7 Merge pull request #3887 from aliaspider/master
(WIIU) cleanup. adapt dynamic symbol loading to be able to use headers
2016-10-29 04:02:54 +02:00
aliaspider e055b7cbc1 (WIIU) cleanup. adapt dynamic symbol loading to be able to use headers
from WUT.
2016-10-29 02:56:40 +01:00
twinaphex 01bbca9c95 Cleanup 2016-10-28 08:23:54 +02:00
Twinaphex 453155ade3 Merge pull request #3877 from aliaspider/master
(WIIU) update.
2016-10-28 01:53:43 +02:00
aliaspider afdaf9afbd (WIIU) display core frames. 2016-10-27 23:02:40 +01:00
Brad Parker d1d5584d18 update copyright 2016-10-27 11:47:10 -04:00
twinaphex 00e68ccd0e Reduce char variables size 2016-10-27 10:16:26 +02:00
aliaspider a4d745a471 preliminary port to the wiiu platform 2016-10-27 01:34:10 +01:00
twinaphex 2d2628dbbf Update ST_UINT settings too dynamically 2016-10-26 09:08:02 +02:00
twinaphex 7a09ffe6bc Values start changing now upon language switch 2016-10-26 09:03:56 +02:00
twinaphex 71a1e4eca7 Cleanups 2016-10-26 08:30:56 +02:00
twinaphex 170febb72c (NGC/Wii) Buildfix 2016-10-26 06:04:42 +02:00
twinaphex 24e9f8dc09 Simplify CONFIG_BOOL/menu_setting.c 2016-10-26 05:04:24 +02:00
twinaphex 9ddad48744 Create gfx/video_defines.h 2016-10-25 20:18:31 +02:00
Francisco José García García e685876f15 (VITA) Fix line height 2016-10-25 17:18:09 +02:00
twinaphex 456c4c4d58 Remove video_driver_cached_frame_render wrapper function 2016-10-25 00:42:26 +02:00
aliaspider ca2b9cb97c freetype: fix invalid write. 2016-10-24 20:25:21 +01:00
Twinaphex df646ae32d Implement get_line_height function for OSX/iOS font renderer 2016-10-24 08:26:55 +02:00
twinaphex 7a18b053c4 C89_BUILD fixes 2016-10-24 05:57:13 +02:00
twinaphex 12ab2d5e7d (Android) Buildfix 2016-10-24 05:53:16 +02:00
twinaphex 213e357918 Move gl_capabilities to libretro-common 2016-10-24 04:06:05 +02:00
twinaphex 09067e67c3 Create gl_symlinks.h 2016-10-24 04:02:03 +02:00
twinaphex e512065d7d Start making gl_capabilities.c more usable by libretro-common 2016-10-24 03:55:14 +02:00
twinaphex 3702fde113 Simplify some input/video functions 2016-10-24 03:05:55 +02:00
aliaspider c4d6a89067 freetype font renderer: less memory usage and full unicode support. 2016-10-23 18:14:07 +01:00
twinaphex 8cc5b09428 Get rid of slow wrapper function input_driver_state 2016-10-23 04:38:08 +02:00
aliaspider 5d36ccc60e gl_raster_font: fix line height when drawing multiple lines. 2016-10-22 11:42:36 +01:00
twinaphex ee8176772d Move state tracker nput code to input/input_driver.c 2016-10-21 22:19:35 +02:00
aliaspider 1a60b77749 remove unused variable. 2016-10-21 20:57:37 +01:00
aliaspider 150a0138d5 freetype.c: fix some memory corruption issues. 2016-10-21 20:55:36 +01:00
twinaphex b95ec0d28e Make sure this string is null-terminated 2016-10-21 20:14:51 +02:00
twinaphex 35ba7fb2c4 Prevent implicit and superfluous memset 2016-10-21 20:04:56 +02:00
twinaphex 0ef96ddbbc Try to avoid memset in font_renderer_update_atlas 2016-10-21 19:25:37 +02:00
Twinaphex 6a404b0c42 Prevent warning with CoreText font driver 2016-10-21 19:15:57 +02:00
twinaphex aca8970e79 CXX_BUILD fixes 2016-10-21 19:14:48 +02:00