99de9fbe33
Merge pull request #4443 from Armada651/exclusive-ui
...
D3D: Move exclusive mode switching to UI thread.
2016-11-14 01:45:07 +01:00
7e35a47b51
Cosmetics.
2016-11-13 22:17:40 +01:00
bc98ec77be
Merge pull request #4441 from stenzek/vulkan-max-image-count
...
Vulkan: Handle maxImageCount of zero when creating swap chain
2016-11-13 14:12:32 +01:00
c723532f0d
Merge pull request #4430 from stenzek/vulkan-no-relaxed-vsync
...
Vulkan: Don't use FIFO_RELAXED present mode for vsync.
2016-11-13 14:10:58 +01:00
141f3bfb3a
IOS HLE: Prevent accessing host file system
2016-11-13 10:03:23 +01:00
a79c449493
Avoid buffer over-reads in /dev/net/ip/top
...
Also fixes the less serious problem of buffer overflows
in emulated memory when BufferOutSize is less than 2.
2016-11-13 08:44:05 +01:00
b47e607105
HLE_OS: More bounds checking in GetStringVA
2016-11-12 19:17:15 +01:00
3d80d454ce
HLE_OS: Implement %n in GetStringVA
...
%n writes to a pointer that's provided as a parameter.
We didn't have a custom implementation of this before,
meaning that %n would trigger a write to the host
memory instead of the emulated memory!
2016-11-12 19:16:55 +01:00
656999d4c2
Correct bounds checking for /dev/sdio/slot0
...
The bounds checks in IOCtl were using 0x200 as the size of
m_Registers, which is more than the actual size, 0x200 / 4.
This commit turns m_Registers into an std::array to allow
for a correct and obvious way of getting its size.
2016-11-12 19:09:03 +01:00
aa0e4472c0
Frame: Move exclusive mode switching to helper function.
2016-11-11 21:24:08 +01:00
f207c01586
NetPlayLauncher: Add missing #pragma once
2016-11-11 14:58:20 -05:00
d8201a7e8b
Frame: Remove exclusive mode OSD messages.
2016-11-11 20:36:11 +01:00
d7cf5e28b6
Frame: Use PauseAndLock when switching fullscreen modes.
...
This allows us to regain exclusive mode directly from OnActive().
2016-11-11 20:36:10 +01:00
9909babe2c
D3DBase: Create the swapchain in fullscreen mode if enabled.
2016-11-11 20:36:10 +01:00
0028ee96b3
Host: Remove the Host_RequestFullscreen() method.
...
No longer needed, since the exclusive mode switch is now handled synchronously on the CPU thread.
2016-11-11 20:36:09 +01:00
0a194f8a3e
VideoConfig: Remove fullscreen flags.
...
These weren't actually settings, they were used as a bad way to communicate with the GPU thread.
2016-11-11 20:36:09 +01:00
c21efa0cad
D3D: Move exclusive mode switching to UI thread.
...
This prevents deadlocks when switching to exclusive mode.
And it also allows the CPU thread to block until we've completed the switch.
2016-11-11 20:36:04 +01:00
f0ce3275af
Merge pull request #4439 from Armada651/yield-ui
...
CPU: Fix deadlocks by periodically yielding to the UI message pump.
2016-11-11 20:30:31 +01:00
cd9520f458
CodeWindow: In-class initialize variables where applicable
2016-11-11 13:31:36 -05:00
492b82042d
CodeWindow: Remove unused parameter from constructor
2016-11-11 13:20:47 -05:00
160fee6791
Vulkan: Handle maxImageCount of zero when creating swap chain
...
anv seems to set this to zero, which is fine according to the spec, but
we were using it as a maximum, which was resulting in a swap chain
without any buffers being created.
2016-11-11 23:33:40 +10:00
20d49ba97f
DolphinQt2: Implement Host_YieldToUI().
2016-11-11 13:42:18 +01:00
05a3f927ee
CPU: Fix deadlocks by periodically yielding to the UI message pump.
2016-11-11 13:37:03 +01:00
8203ea929b
BlockingLoop: Yield to UI message pump while waiting.
2016-11-11 13:37:02 +01:00
2d9ef3412a
GCAdapterConfigDiag: Mark OnUpdateAdapter parameter as unused.
2016-11-10 20:19:53 -05:00
1ae9027a6b
GCAdapterConfigDiag: Rename UpdateAdapter to OnUpdateAdapter
...
Uses the general naming convention for event functions.
2016-11-10 20:18:59 -05:00
c5c7ff9fd6
GCAdapterConfigDiag: Make functions private where applicable
...
These don't need to be in the public interface.
2016-11-10 20:12:02 -05:00
c77d4a765d
Merge pull request #4425 from lioncash/ipc
...
IPC_HLE: Move NWC24Config and WiiNetConfig to their own source files
2016-11-10 16:55:43 -05:00
03878a44e1
Merge pull request #4433 from Armada651/the-emu-that-runs-faster-than-its-race-condition
...
FrameTools: Avoid deadlock in UpdateGUI().
2016-11-10 16:50:13 +01:00
97bd77c928
Frame: Remove unused menu variable
...
This has been unused since the introduction of the MainMenuBar class
that abstracts away all of the wxMenuBar UI loading.
2016-11-10 07:33:52 -05:00
0b9562b0d5
Merge pull request #4434 from lioncash/path
...
PathConfigPane: Eliminate main frame global usage
2016-11-10 07:31:31 -05:00
193dd97759
VideoCommon: Drop FlipImageData.
...
This function isn't used any more, and good code shouldn't use it at all. Use negative strides instead.
2016-11-10 12:59:22 +01:00
3816207d7b
OGL: Fix frame dump on emulation close.
2016-11-10 12:59:22 +01:00
21774bdc81
OGL: Only flush the frame dumping thread on dumping.
...
This fixes the screenshot stutter, as this needs more than a frame.
So we won't stall on the png writing at all until emulation stops or
a new screenshot is requested.
2016-11-10 12:59:22 +01:00
52caa4f2f5
VideoCommon/Render: Inplace frame dump encoding.
...
This increase the performance of good backends a bit, but slows down the bads one a lot.
Let's fix those backends instead of forcing stupid memcpy in the common code.
2016-11-10 12:59:19 +01:00
38c3ca5cd4
Vulkan: Implement asynchronous frame dumping
2016-11-10 01:07:46 +10:00
be04215857
FrameTools: Clean up variable naming in UpdateLoadWiiMenuItem
2016-11-08 21:22:17 -05:00
2acf3570e0
PathConfigPane: Eliminate main frame global usage
2016-11-08 21:19:24 -05:00
de50fead5c
FrameTools: Avoid deadlock in UpdateGUI().
2016-11-09 01:45:30 +01:00
e05553acfc
Merge pull request #4428 from lioncash/event
...
DolphinWX: Move common wxUpdateUIEvent functions to WxEventUtils
2016-11-08 17:11:16 -05:00
5378b6ab85
Merge pull request #4345 from degasus/framedump_threaded
...
Renderer: Threaded frame dumping.
2016-11-08 11:01:40 +01:00
741debe229
OGL: Avoid reallocation of frame dumping PBO.
2016-11-07 22:32:54 +01:00
f6a6cc9c67
OGL: Use PBO for framedump, with async readback.
2016-11-07 22:17:32 +01:00
a47332bf8a
VideoCommon/Render: Use a flag for screenshot.
2016-11-07 22:16:34 +01:00
d79840078f
Renderer: Threaded frame dumping.
2016-11-07 22:11:13 +01:00
c09ce029df
Vulkan: Don't use FIFO_RELAXED present mode for vsync.
2016-11-07 19:22:27 +10:00
744b993dcd
CodeWindow: Fix step out issues
2016-11-06 20:30:24 +00:00
5022c0dfb5
DolphinWX: Move common wxUpdateUIEvent functions to WxEventUtils
2016-11-06 09:02:59 -05:00
136a10482f
Merge pull request #4427 from lioncash/config-update
...
DolphinWX: Enable/disable config UI options based on core state
2016-11-06 08:21:02 -05:00
c2d00d25fe
DolphinWX: Make the main config dialog modeless
2016-11-06 08:04:54 -05:00