Commit Graph

1210 Commits

Author SHA1 Message Date
Brad Parker 74fd184097 initial GL1 video driver, only rgui is working currently 2019-02-08 12:14:55 -05:00
twinaphex e612773645 (Xbox OG) Buildfixes 2019-02-07 05:42:23 +01:00
twinaphex f49b6e26a0 (Metal) Add menu widget support 2019-02-07 02:00:23 +01:00
twinaphex b7c1fda56f (Windows) Fix C89_BUILD 2019-02-06 19:08:56 +01:00
orbea 28ff4b391a Clean up white space. 2019-02-03 16:00:50 -08:00
twinaphex 9aa542b1ae * Get rid of video_shader_driver_use
* Get rid of Nuklear - ozone/menu widgets is probably the replacement
for it - Zarch will go next
2019-02-03 04:37:54 +01:00
twinaphex 91f8e8465a (GL) Cleanups 2019-02-03 00:11:41 +01:00
twinaphex 97dc77b940 (GL) renderchain interface is gone now 2019-02-03 00:07:53 +01:00
twinaphex 62bea6ad11 SOme header cleanups 2019-02-02 22:02:24 +01:00
twinaphex 0c0ab19b11 (GL) We don't need gl_common.c anymore 2019-02-02 21:47:31 +01:00
twinaphex 350b0dd1a2 gl_add_lut can now become a static function inside gl.c 2019-02-02 21:34:02 +01:00
twinaphex 90f1317498 Cut down on code duplication - create gl_load_luts 2019-02-02 21:32:37 +01:00
twinaphex 2560d1c105 Move gl_load_texture_data to gl_common.c 2019-02-02 17:33:58 +01:00
twinaphex 7c74f0abe8 Create gl_add_lut 2019-02-02 17:25:27 +01:00
twinaphex 5d77244334 (OSX) Implement flyinghead's GL3 support 2019-01-31 21:30:49 +01:00
David Skywalker 347519a4d8 now X11 driver using keycodes instead keysyms, fixes international layouts problems. 2019-01-31 12:50:58 +01:00
krzys-h 3c18232448 Fix d3d12 swap chain creation
Apparently, HAVE_WINDOW was not defined in this file (and this obviously
doesn't appear on MSVC because of how griffin.c works...)
2019-01-28 10:44:47 +01:00
Twinaphex 8b958b91f9
Merge pull request #8105 from orbea/qb
Update generate_wayland_protos.sh.
2019-01-28 00:31:57 +01:00
Brad Parker 8b6676e17f d3d9: implement scissor test 2019-01-26 20:13:39 -05:00
orbea ae7b09afae gfx: Update generate_wayland_protos.sh. 2019-01-26 16:08:18 -08:00
Twinaphex b512c0aeb9
Merge pull request #8095 from Sunderland93/wayland-version
[Wayland] Set minimum wayland version to 1.12
2019-01-26 22:49:34 +01:00
Sunderland93 10d2d13004 Fix version's comparison 2019-01-26 13:41:03 +04:00
orbea 63c7abef06 qb: Allow testing more than one version in check_pkgconf. 2019-01-25 15:04:29 -08:00
Sunderland93 677395f05e [Wayland] Set minimum wayland version to 1.12 2019-01-25 21:41:13 +04:00
orbea d3f81e8db8 Fix the osx metal travis build. 2019-01-21 13:03:51 -08:00
twinaphex b13777e9fc Header cleanups 2019-01-20 03:16:58 +01:00
twinaphex d3ae2cbd29 Cleanup some header includes 2019-01-20 01:49:21 +01:00
twinaphex 83241ed0b1 Some header cleanups 2019-01-19 23:27:59 +01:00
orbea e062b98088 Remove trailing blank lines.
find . -type f -exec sed -i '${/^[[:space:]]*$/d;}' {} \+
2019-01-17 19:39:38 -08:00
orbea ff2e3bbbce Fix CXX_BUILD errors. 2019-01-13 11:51:33 -08:00
twinaphex 7ad34509e7 Silence more CXX_BUILD warnings 2019-01-12 21:16:48 +01:00
Twinaphex ff8e10f014
Merge pull request #7984 from myfreeweb/egl-fix
Fix EGL initialization not setting 'n'
2019-01-12 05:10:46 +01:00
CozmoP 2052e15a08 pass content label when loading content from Qt (#7982) 2019-01-11 18:51:44 -05:00
Greg V 3ab7e780d1 EGL: use unused 'n' argument for storing the config count (fixes #7953)
The 'n' argument was probably intended for the count, but it was unused.
The Wayland platform would check whether n would be non-zero (and
wouldn't initialize n with zero), so it would only succeed because it
was initialized with random garbage.

Pointy hat: @Sunderland93
2019-01-11 20:41:40 +03:00
twinaphex c98b2e2292 Buildfixes and more static code analysis warning fixes 2019-01-10 22:24:43 +01:00
twinaphex b9ff2e4de1 Fix some static code analysis warnings from MSVC 2017 2019-01-10 21:47:15 +01:00
Twinaphex ac04c1bfc5
Merge pull request #7892 from Datamats/libnx_nwindow
libnx: refactor all the code of the now deprecated gfx api over to the new nwindow / framebuffer api
2019-01-08 23:36:20 +01:00
Twinaphex 40997473ed
Merge branch 'master' into orbis2 2019-01-08 20:18:08 +01:00
orbea bfc366decc Squeeze extra blank lines with cat(1).
Example:

find . -type f -iname '*.c' | while read -r i; do
  cat -s "$i" > "$i.new"
  mv "$i.new" "$i"
done
2019-01-08 11:04:58 -08:00
Mats 462a4b24fd libnx: refactor all the code of the now deprecated gfx api over to the new nwindow / framebuffer api 2019-01-07 15:03:44 +01:00
Brad Parker 85b560e76b vc2003 buildfix 2019-01-05 19:19:53 -05:00
Greg V a1c15b5362 Wayland: try /usr/local for wayland-scanner/protocols
Default prefix is /usr/local on FreeBSD
2019-01-01 03:07:20 +03:00
Francisco José García García c56e9b1ff6 [ORBIS] eglSwapInterval workaround 2018-12-30 14:01:10 +01:00
twinaphex 1cb9f7c1bf Fix D3D10/11/12 drivers for Win32 build 2018-12-30 05:08:57 +01:00
Twinaphex 22e54dfc6b
Merge pull request #7839 from frangarcj/orbis2
[WIP] ORBIS / PS4 Port
2018-12-30 01:04:50 +01:00
Francisco José García García d34b94a661 [ORBIS] Several EGL and GL fixes 2018-12-30 00:11:53 +01:00
krzys-h 1cb1ea55b1 Bugfix - creating swap chain twice in d3d11
Not sure what I was thinking when writing this

dd60b5d576 (commitcomment-31801518)
2018-12-29 11:38:09 +01:00
twinaphex bddcd2d5e5 Buildfix - include header for prototype definition 2018-12-29 06:04:46 +01:00
twinaphex 8f67cf7384 Some buildfixes 2018-12-29 02:20:25 +01:00
twinaphex 0e5fbbb9e1 Silence some warnings 2018-12-29 02:12:50 +01:00
krzys-h 4fb06703b3 Port d3d12 driver for UWP 2018-12-28 22:10:26 +01:00
krzys-h f6c8a0c5c2 Add UWP input driver
Keyboard, mouse and touch support: done
2018-12-28 22:09:30 +01:00
krzys-h b201d669b5 First iteration of UWP support
Enough to kind of run

Working drivers: xinput, d3d11
Still missing: input driver with keyboard support, audio driver
2018-12-28 22:09:22 +01:00
Francisco José García García 912060fc4b [ORBIS] Use SceWindow 2018-12-28 11:19:28 +01:00
Francisco José García García 48167d46bc [ORBIS] Initial video context driver 2018-12-28 01:27:13 +01:00
radius d2a2878b2c fix #935 thanks to @bparker 2018-12-23 19:55:26 -05:00
Themaister 077b108aa1 Vulkan: Fix potential crash when toggling fullscreen.
If we have HW rendering, and we toggle fullscreen while in the menu, we
don't have a ready HW image, so fall back to black dummy texture.
2018-12-12 13:28:46 +01:00
radius a7e4d8359b fix fullscreen=>windowed when remember window positions is on 2018-12-11 19:34:12 -05:00
Themaister 868465ad01 EGL: Add callback to select EGLConfig.
A more robust fix for DRM/GBM shenanigans.
2018-12-11 20:12:25 +01:00
Aleksey Samoilov d82987b1b5
Merge branch 'master' into master 2018-12-09 20:56:20 +03:00
Sunderland93 830882e296 Merge branch 'server-decorations' 2018-12-09 19:03:57 +04:00
Sunderland93 d1c15efc24 Revert "Add KDE's server-decoration protocol as fallback (for KDE)"
This reverts commit 058a880a8b.
2018-12-09 18:47:47 +04:00
Sunderland93 058a880a8b Add KDE's server-decoration protocol as fallback (for KDE) 2018-12-09 18:42:45 +04:00
twinaphex bfd9141577 Play it safe for non-GBM targets 2018-12-07 21:15:38 +01:00
twinaphex 96840572ef Add HAVE_GBM ifdefs 2018-12-07 20:18:01 +01:00
Twinaphex d6e96b986f
Merge pull request #7707 from fr500/upstream
make windowed size take into account window border and title height
2018-12-07 16:33:29 +01:00
twinaphex 7638637518 Cleanups 2018-12-07 00:51:56 +01:00
orbea 5898f3e5d2 Fix KMS with OpenGL.
All credit for this patch goes to dtsarr.

Fixes https://github.com/libretro/RetroArch/issues/7119
2018-12-06 08:34:26 -08:00
radius defe82c9ce fix the menubar height growing issue too 2018-12-06 10:15:50 -05:00
radius e050ca89c7 make windowed size take into account window border and title height 2018-12-06 10:03:48 -05:00
Sunderland93 f960144212 Merge branch 'fallback' into 'master' 2018-12-05 23:23:02 +04:00
Sunderland93 dc94886664 Initial support for xdg-decoration-unstable-v1 2018-12-05 22:51:07 +04:00
Sunderland93 9b0bad5d9f Add zxdg_shell_v6 and wl_shell ad fallback interfaces 2018-12-03 14:32:31 +04:00
twinaphex b027395341 (Android/Vulkan) Enable 'emulate mailbox' for Android 2018-12-03 00:40:50 +01:00
Stuart Carnie 0e295716b9
feat(metal): Add native rotation support for Metal driver
* fix crash when frame or frame size is 0
2018-11-29 22:04:43 -07:00
dukemiller 8294bf86df Create option for dx video drivers to toggle displaying memory use 2018-11-28 00:01:09 -07:00
Twinaphex 7a174d290e
Merge pull request #7655 from Sunderland93/master
[Wayland] Implement idle-inhibit support
2018-11-26 19:25:46 +01:00
Sunderland93 ea180a1775 Relax wayland and wayland-protocols version's 2018-11-26 21:58:43 +04:00
Sunderland93 b538786b00 Implement zwp_idle_inhibit_v1 protocol 2018-11-26 21:54:39 +04:00
twinaphex 6bf35ab6e8 (x11_common.c) Cleanups 2018-11-26 13:54:51 +01:00
twinaphex 098e62067e Small cleanups 2018-11-26 13:37:35 +01:00
radius 77ae2dc0cd don't change window position on fullscreen changes 2018-11-25 11:51:13 -05:00
twinaphex 4a4a6511e0 Workaround - fullscreen mode was no longer working properly 2018-11-25 10:08:50 +01:00
twinaphex 5313c50b0e (Windows) Saves/remembers window size now too - still some edge case
when clicking maximize button - you need to then move the window
slightly in order for x/y position to be saved - just clicking maximize
alone is not enough
2018-11-25 09:50:08 +01:00
twinaphex e1afdf8c3c (Windows) Start implementing 'remember window positions'. Right now only
saves/remembers X, Y position
2018-11-25 09:02:32 +01:00
Twinaphex 3d4fc5d38f
Merge pull request #7607 from Sunderland93/master
Wayland: xdg-shell support
2018-11-24 18:45:20 +01:00
twinaphex 5d8666e226 Only one function calls EnumDisplaySettings now 2018-11-24 02:06:28 +01:00
Sunderland93 c32c98e667 Very WIP: xdg-shell support 2018-11-17 16:01:51 +04:00
Themaister f51ef85f27 Vulkan: Fix scissor in menu driver. 2018-11-08 21:57:53 +01:00
Themaister afcd25a3f8 Vulkan: Fix scissor in menu driver. 2018-11-08 21:45:51 +01:00
Stuart Carnie fd2524429d
chore(meta): Cleanup 2018-11-06 07:56:05 -07:00
Stuart Carnie 8569ee79bc
feat(metal): Add scissor rect support
This is required for correct rendering of the ozone menu
2018-11-06 07:56:05 -07:00
Stuart Carnie 5c1075127b
chore(metal): Separate legacy GL and Metal source
* Forks of Cocoa / Cocoa Touch to *_metal.* version
* Reverted original GL Cocoa / Cocoa Touch versions
* GL and Metal projects still build
2018-11-04 20:50:50 -07:00
Themaister 3f41cd533b Fix RGUI regression on Vulkan. 2018-10-16 23:29:17 +02:00
twinaphex 448d2d333c Set ctx_driver 2018-10-14 08:22:26 +02:00
twinaphex e661cf3cfd Rewrite video_context_driver_init_first 2018-10-14 08:13:05 +02:00
twinaphex 5b4473b948 Create gl_set_core_context 2018-10-10 18:24:41 +02:00
Brad Parker b9699f4780 gdi: texture load support, fix menu text alignment, support multi-line messages 2018-10-10 09:58:49 -04:00
twinaphex 77fba6d58d (Vulkan) Silence warning 2018-10-01 00:41:29 +02:00
twinaphex 2125f92281 Silence warnings/cleanups 2018-09-30 13:43:56 +02:00