27301 Commits

Author SHA1 Message Date
twinaphex
5beb71711b zarch.c - Respect 80-char width limit 2016-02-21 09:51:16 +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
Twinaphex
f41ee75a82 Merge pull request #2740 from Themaister/master
Vulkan: Small tweaks
2016-02-20 15:30:17 +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
Twinaphex
74f1b3aa34 Merge pull request #2739 from Themaister/master
Fix some issues with Vulkan readback.
2016-02-20 14:07:53 +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
Twinaphex
720a519987 Merge pull request #2738 from Themaister/master
Try to use cached memory for readbacks.
2016-02-20 12:07:41 +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
Twinaphex
452898c0f8 Merge pull request #2736 from Themaister/master
Use vkCmdCopyImage for readbacks.
2016-02-20 11:49:36 +01:00
Hans-Kristian Arntzen
459c55989a Use vkCmdCopyImage for readbacks.
Blits often imply render targets.
2016-02-20 11:21:39 +01:00
Twinaphex
9108ee773f Merge pull request #2735 from Themaister/master
Before unloading game, make sure we stop the threaded audio driver.
2016-02-20 10:33:55 +01:00
Hans-Kristian Arntzen
9c21c9ea1f Before unloading game, make sure we stop the threaded audio driver. 2016-02-20 10:28: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
Twinaphex
b1c614f1ca Merge pull request #2734 from Themaister/vulkan
Vulkan: X11 backend
2016-02-20 03:33:41 +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
4e510247f5 Cleanups 2016-02-19 15:44:03 +01:00
twinaphex
d6906ee7df (xcb) Buildfix 2016-02-19 15:43:12 +01:00
twinaphex
575cd4e3be Add xcb detection 2016-02-19 15:08:23 +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