Sönke Holz
068c66672d
configuration: fix mingw-w64 build
4 years ago
spholz
deb65a5717
network: don't use reinterpret_cast in GetAvailableNetworkInterfaces
4 years ago
Sönke Holz
e660334a21
network: fix mingw-w64 build
The header "combaseapi.h" of mingw-w64 defines "interface" as "struct".
4 years ago
Sönke Holz
b18e1d031f
network: don't use assert to check if no network interfaces are returned
4 years ago
Sönke Holz
0476751ee2
configuration: move network_interface include to source file
4 years ago
Sönke Holz
a0c4c1a23a
network: use Common::BitCast instead of std::bit_cast
4 years ago
Sönke Holz
8513e59431
network: narrow down scope of "result" in win32 code for
GetAvailableNetworkInterfaces
4 years ago
Sönke Holz
04ec426201
configuration: use tr instead of QStringLiteral for "None" item in
network interface combobox
4 years ago
Sönke Holz
771de32af1
network: use explicit bool conversions in GetAvailableNetworkInterfaces
4 years ago
Sönke Holz
765e97c347
network: initialize ip_addr in GetHostIPv4Address()
4 years ago
Sönke Holz
acca8aca8c
nifm: use operator*() instead of .value() to get value of std::optional
4 years ago
Sönke Holz
970d81abfc
nifm: treat a missing host IP address as a non-critical error
4 years ago
Sönke Holz
21743daf38
network: correct formatting in network.cpp and network_interface.cpp
4 years ago
spholz
1e98e73828
configuration: add option to select network interface
This commit renames the "Services" tab to "Network" and adds a combobox that allows the user to select the network interface that yuzu should use. This new setting is now used to get the local IP address in Network::GetHostIPv4Address. This prevents yuzu from selecting the wrong network interface and thus using the wrong IP address. The return type of Network::GetHostIPv4Adress has also been changed.
4 years ago
lat9nq
5be2d6fd28
settings: Fix MSVC issues
According to https://stackoverflow.com/questions/469508 , we run into a
MSVC bug (since VS 2005) when using diamond inheritance for
RangedSetting.
This explicitly implements those functions in RangedSetting. GetValue is
implemented as just calling the inherited version. The explicit
converson operator is reimplemented. I opted for this over ignoring the
warning with a pragma since this specifies the inherited behavior, and I
have now less faith in MSVC to pick the right one.
In addition, we mark destructors as virtual to silence what I believe is
a fair MSVC compilation error.
4 years ago
ameerj
a779cede7c
vic: Specify sws_scale height stride.
Silences a sws_scale runtime warning about unaligned strides.
4 years ago
Fernando Sahmkow
23ca1eb82e
yuzu-cmd/CMakeLists: Correct attribution for this function.
4 years ago
ameerj
fa22695705
vp9: Ensure the first frame is complete
Silences a runtime error due to the first frame missing the frame data, and being set to hidden despite being a key-frame.
4 years ago
yzct12345
c4eafcc861
texture_cache: Address ameerj's review
4 years ago
ameerj
8e0cc3e59a
configure_general: Swap positions of speed limit and frame limit options
4 years ago
german77
48b6d41f1b
input_common: Improve SDL joystick and hide toggle option
4 years ago
german77
acce512ae8
main: Avoid stopping emulation when taking a screenshot
4 years ago
Robin Kertels
bb29dcb7f2
vulkan_memory_allocator: Respect bufferImageGranularity
4 years ago
ameerj
928b64d2ce
nvdec: Better logging for unimplemented codecs
4 years ago
yzct12345
5f97f74a9a
memory: Address lioncash's review
4 years ago
yzct12345
70cc4c0f46
memory: Dedup Read and Write and fix logging bugs
4 years ago
yzct12345
e80323b8b0
texture_cache: Address ameerj's review
4 years ago
Sönke Holz
ddeb8d854e
network: GetAndLogLastError: ignore Errno::AGAIN
If non-blocking sockets are used, they generate a lot of Errno::AGAIN errors when they didn't receive any data. These errors shouldn't be logged.
4 years ago
Sönke Holz
dd5c41b5a6
network: GetCurrentIpConfigInfo: return host IP address
Service::NIFM::IGeneralService::GetCurrentIpConfigInfo currently hardcodes 192.168.1.100 as the IP address, which prevents LAN play from working correctly.
4 years ago
ameerj
156ea746a3
nvhost_nvdec_common: Remove BufferMap
This was mainly used to keep track of mapped buffers for later unmapping. Since unmap is no longer implemented, this no longer seves a valuable purpose.
4 years ago
ameerj
e3688f0627
vp9: Cleanup unused variables
With reference frames refreshes fix, we no longer need to buffer two frames in advance.
We can also remove other unused or otherwise unneeded variables.
4 years ago
ameerj
a3f80a97a3
vp9: Fix reference frame refreshes
This resolves the artifacting when decoding VP9 streams.
4 years ago
ameerj
cc8ac112fc
nvhost_nvdec_common: Stub UnmapBuffer Ioctl
Skip unmapping nvdec buffers to avoid breaking the continuity of the VP9 reference frame addresses, and the risk of invalidating data before the async GPU thread is done with it.
4 years ago
Sönke Holz
652e5e3df0
network: fix fcntl cmds
F_SETFL/F_GETFL are the correct commands to set a socket to be non-blocking
4 years ago
Morph
d20c5ac720
common: uuid: Add hash function for UUID
Used when UUID is a key in an unordered_map. The hash is produced by XORing the high and low 64-bits of the UUID together.
4 years ago
yzct12345
e611f522c2
memory: Clean up CopyBlock too
4 years ago
gidoly
8ba551e1cd
Update configure_graphics_advanced.ui
add description too fast gpu time
4 years ago
yzct12345
02e98f6c93
texture_cache: Don't change copyright year
4 years ago
yzct12345
5566f3dbc0
texture_cache: Address ameerj's review
4 years ago
yzct12345
4edfa6ad8f
memory: Address lioncash's review
4 years ago
yzct12345
6df9611059
memory: Clean up code
4 years ago
yzct12345
7e846be376
assert: Verify formatting
4 years ago
yzct12345
346149dcf9
assert: Avoid empty macros
4 years ago
yzct12345
f9563c8f24
texture_cache: Split templates out
4 years ago
Morph
f10dc35dd0
applet_swkbd: Include the null terminator in the buffer size calculation
Some games may interpret the read string as a null-terminated string instead of just reading the string up to buffer_size.
4 years ago
Morph
7b39215c8a
hex_util: Fix incorrect array size in AsArray
Although this isn't used, this is a potential bug as HexStringToArray will perform an out-of-bounds read.
4 years ago
lat9nq
be16d92060
config: Read connected setting for controllers
Currently yuzu will read the mapping but does not connect a controller
despite adding subsequent configurations for it. Read the `connected`
setting for now as a boolean like the Qt frontend.
4 years ago
german77
1fb158ce90
settings_ui: Add emulated joystick position dot to controller preview
4 years ago
Morph
705f111058
common: uuid: Add hex string to UUID constructor
This allows for easily converting a hex string into a Common::UUID, which is backed by a 128 bit unsigned integer.
4 years ago
yzct12345
2868d4ba84
nvdec: Implement VA-API hardware video acceleration ( #6713 )
* nvdec: VA-API
* Verify formatting
* Forgot a semicolon for Windows
* Clarify comment about AV_PIX_FMT_NV12
* Fix assert log spam from missing negation
* vic: Remove forgotten debug code
* Address lioncash's review
* Mention VA-API is Intel/AMD
* Address v1993's review
* Hopefully fix CMakeLists style this time
* vic: Improve cache locality
* vic: Fix off-by-one error
* codec: Async
* codec: Forgot the GetValue()
* nvdec: Address ameerj's review
* codec: Fallback to CPU without VA-API support
* cmake: Address lat9nq's review
* cmake: Make VA-API optional
* vaapi: Multiple GPU
* Apply suggestions from code review
Co-authored-by: Ameer J <52414509+ameerj@users.noreply.github.com>
* nvdec: Address ameerj's review
* codec: Use anonymous instead of static
* nvdec: Remove enum and fix memory leak
* nvdec: Address ameerj's review
* codec: Remove preparation for threading
Co-authored-by: Ameer J <52414509+ameerj@users.noreply.github.com>
4 years ago