Commit Graph

19604 Commits

Author SHA1 Message Date
flacs 849bfc51f6 Merge pull request #3329 from lioncash/cast
Interpreter: Get rid of some aliasing casts
2015-12-10 07:03:48 +01:00
Lioncash 392c1335b7 Interpreter: Get rid of some aliasing casts 2015-12-09 19:14:53 -05:00
Markus Wick c829a01c89 Merge pull request #3328 from lioncash/frsp
Interpreter: Update CR when FRSP's record bit is set
2015-12-09 23:07:05 +01:00
Lioncash f7977fdee5 Jit: Fall back to interpreter when frsp's record bit is set 2015-12-09 14:11:45 -05:00
Lioncash 3acf165787 Interpreter: Update CR when FRSP's record bit is set 2015-12-09 12:51:53 -05:00
Lioncash a98bddc352 Interpreter: Remove underscore from frsp's parameter 2015-12-09 12:50:50 -05:00
Markus Wick 92ce365053 Merge pull request #3326 from rohit-n/build-pch
Fix building with PCH disabled.
2015-12-09 01:51:50 +01:00
Rohit Nirmal 5a7e0aba70 Fix building with PCH disabled. 2015-12-08 16:57:37 -06:00
Markus Wick 2e40c614c5 Merge pull request #3325 from stenzek/d3d-screenshot-crash-fix
D3D: Fix crash when taking screenshot with crop enabled
2015-12-08 21:18:01 +01:00
Stenzek 5dcd3cd4fd D3D: Fix crash when taking screenshot with crop enabled
This was due to specifying negative source coordinates for the texture copy, which must lie within the bounds of the source and destination textures.

The behavior now is to clamp the copy region to [0 <= size <= backbuffer size], resulting in a copy region that can be smaller than the backbuffer, but never larger.
2015-12-09 02:38:24 +10:00
Markus Wick fc02ef46f6 Merge pull request #3321 from JosJuice/android-size-log
MainAndroid: Fix size logging
2015-12-08 16:16:13 +01:00
JosJuice a27610ff17 MainAndroid: Fix size logging 2015-12-08 12:37:51 +01:00
Markus Wick 49cd777fce Merge pull request #3324 from lioncash/alloc
DiscIO: Get rid of a few explicit deletes
2015-12-08 12:03:54 +01:00
Stenzek 63264ac23f D3D: Fix EFB depth buffer copies, filtering on scaled EFB copies when MSAA is enabled, real XFB filtering
Since ResolveSubresource cannot be used with depth textures (and throws an error with the debug layer enabled), use a shader which selects the minimum depth value from all samples.

Changes the sampler by XFBEncoder to use a linear filter, rather than point, to match GL behavior.
2015-12-08 20:29:21 +10:00
Lioncash 6295297ab3 DiscIO: Get rid of a few explicit deletes 2015-12-08 04:35:56 -05:00
Markus Wick 3e3e6073f7 Merge pull request #3316 from sepalani/fix_poll
WSAPoll: Fixed - invalid argument was supplied
2015-12-08 09:01:52 +01:00
Scott Mansell 48760c9037 Merge pull request #3323 from Simek/minor-config-gui-tweaks
minor General Config GUI improvements
2015-12-08 14:37:30 +13:00
Bartosz Kaszubowski 4655cd01fa minor General Config GUI improvements
- theme and language selectors wrapped into one GridBagSizer for better
appearance
- missing left padding added to checkbox on Advanced Pane
2015-12-08 02:13:32 +01:00
Markus Wick 9719804cd2 Merge pull request #3320 from lioncash/factory
DiscIO: Make factory methods return unique_ptrs
2015-12-07 19:12:15 +01:00
Lioncash edbbf493f8 DiscIO: Make factory methods return unique_ptrs
Rather than rely on the developer to do the right thing,
just make the default behavior safely deallocate resources.

If shared semantics are ever needed in the future, the
constructor that takes a unique_ptr for shared_ptr can
be used.
2015-12-07 05:57:37 -05:00
Markus Wick 31a40447d8 Merge pull request #3319 from lioncash/exi
EXI: Use std::array and std::unique_ptr for managing channels
2015-12-07 10:27:54 +01:00
Lioncash e7b98e27ab EXI: Use std::array and std::unique_ptr for managing channels 2015-12-06 14:51:55 -05:00
Julian Löhr e076098a95 Fix "-TR" Wiimotes on Windows 8/8.1/10, by using WriteFile for sending
"-TR" Wiimotes don't accept output reports via the Control Channel. HidP_SetOutputReports will send the data via the Control Channel, whereas WriteFile will send it via the Interrupt Channel. Therefore using WriteFile enables "-TR" Wiimotes on Windows. There are some issues to be aware of. First the Toshiba Bluetooth Stack needs the output report buffer to have the size of the largest output report supported by the device. This requirement is also enforced by the Windows 7 default stack. However the Toshiba Stack, will only send the actual report bytes to the device, whereas on Windows 7 the full resized buffer is sent, resulting in an error on the Wiimote. This issue renders WriteFile unusable on Windows 7 with the  default stack. On Windows 8/8.1/10 this requirement is somehow not implemented and it is possible to send smaller buffers via WriteFile to the device, enabling "-TR" Wiimotes.
2015-12-06 20:17:58 +01:00
Julian Löhr 03fc048006 Add Methods to check for Toshiba Stack
Check is done by checking the driver provider property of the HID Class Driver. As the Toshiba Bluetooth Stack provides its own.
The initial enumerated device node is a empty hid interface node. Therefore first one node is moved up and then the provider property check is done.
2015-12-06 18:19:05 +01:00
Julian Löhr 2b39219367 Remove explicit Wait on Overlap Event
GetOverlappedResult also waits on the event internally (See https://msdn.microsoft.com/en-us/library/windows/desktop/ms683209(v=vs.85).aspx). So instead of explicitly waiting for it before, use its wait. To distinguish between cancel and complete, the status of the request is used, which is saved in the "Internal" member (See https://msdn.microsoft.com/en-us/library/windows/desktop/ms684342(v=vs.85).aspx).
2015-12-06 18:16:08 +01:00
degasus f511e539c2 VideoSW: Use Zero for undefined colors. 2015-12-06 12:39:18 +01:00
degasus 7b34319e53 ShaderGen: Toggle value of uninitialized color.
SMS seems to need 0, no regressions either.
2015-12-06 12:39:18 +01:00
Markus Wick a0ac2b8673 Merge pull request #3318 from lioncash/const
WII_IPC_HLE_Device_usb: const correctness for function parameters
2015-12-06 12:34:04 +01:00
Lioncash 7762d68c4b Rasterizer: Mark some references as const 2015-12-06 02:51:36 -05:00
Lioncash 0608ed5130 Rasterizer: Specify internal linkage on Draw
It's not exposed in the header.
2015-12-06 02:51:34 -05:00
Lioncash a0924b5e1b Rasterizer: Convert BLOCK_SIZE into a constant variable 2015-12-06 02:51:33 -05:00
Lioncash 2793785e0c Rasterizer: Get rid of a clamp macro 2015-12-06 02:51:28 -05:00
Lioncash 9b921c2e7c Rasterizer: Get rid of a trivial pointer cast 2015-12-06 02:44:06 -05:00
Lioncash 0917db7fc0 NullSound: Use std::array for the buffer 2015-12-05 18:13:55 -05:00
Lioncash 0d4baa0744 NullSound: Replace header define with private constant 2015-12-05 18:13:49 -05:00
Lioncash f6c247d10e WII_IPC_HLE_Device_usb: const correctness for function parameters
The data passed in isn't modified in these functions

Also normalizes variables with prefixed underscores in the modified
functions (and normalizes outliers to our current coding style), as
single-underscore followed by any lowercased/uppercased character is
reserved for use in the global namespace (it's a common misconception this
is assumed to only be the case for underscores followed by a capital
character, but this is only the case in C, not C++).
2015-12-05 16:14:37 -05:00
Sepalani e1e6d2ba2c WSAPoll: Fixed - invalid argument was supplied 2015-12-05 19:39:17 +01:00
Markus Wick 7134d727bf Merge pull request #3310 from Pringo/remove-google-code-reference
Remove Google Code Reference and Fix Grammar
2015-12-04 10:58:49 +01:00
spxtr a06b0d87a7 Refactor proxy models and toolbar.
Remove the ugly LARGE_ICON column hack from the table proxy and use a
list proxy. Move the toolbar into its own file.
2015-12-03 20:41:17 -08:00
Pringo b6f16b3049 Remove Google Code Reference and Fix Grammar 2015-12-03 18:20:59 -08:00
JosJuice a0cd753060 Don't read from volume when reloading Wii banners
Should make loading cached Wii games that lack banners slightly faster.
2015-12-03 17:29:59 +01:00
Markus Wick 297f6a097d Merge pull request #3307 from Pringo/update-url
Update Issue Tracker URL in Comment
2015-12-03 17:27:43 +01:00
Markus Wick 720407936e Merge pull request #3308 from lioncash/delete
WaveFile: Get rid of an explicit delete
2015-12-03 10:40:36 +01:00
Lioncash e0eef7bef4 WaveFile: Get rid of an explicit delete 2015-12-02 20:05:18 -05:00
Scott Mansell a759883ae5 Merge pull request #3126 from phire/remove-logging-lock
Refactor logging code to get rid of a mutex.
2015-12-03 13:32:07 +13:00
Markus Wick 6425ddcbe7 Merge pull request #3253 from Phatcat/master
More wiimote controls (+extensions) for android
2015-12-02 22:50:29 +01:00
Mathew Maidment 9e389ab144 Merge pull request #3303 from degasus/valgrind
VideoSW: Fix uninitialized variable warnings
2015-12-02 16:35:53 -05:00
Phatcat ca9c9b7135 Wiimote + Extensions for Android 2015-12-02 21:58:54 +01:00
degasus f3b6afe1c5 ConfigManager: initialize m_revision
FifoPlayer don't set it, and don't need it. But it's used...
2015-12-02 21:37:12 +01:00
degasus d28c9ae354 VideoSW: Wipe output vertices
They shall be overwritten afterwards.
2015-12-02 21:37:12 +01:00