Lioncash
cba469cd4b
kernel/svc: Handle error cases for svcArbitrateLock() and svcArbitrateUnlock()
The kernel does the equivalent of the following check before proceeding:
if (address + 0x8000000000 < 0x7FFFE00000) {
return ERR_INVALID_MEMORY_STATE;
}
which is essentially what our IsKernelVirtualAddress() function does. So
we should also be checking for this.
The kernel also checks if the given input addresses are 4-byte aligned,
however our Mutex::TryAcquire() and Mutex::Release() functions already
handle this, so we don't need to add code for this case.
7 years ago
FernandoS27
b7be8be9ee
Implemented Internal Flags
7 years ago
Lioncash
8a6bc44751
gl_shader_decompiler: Avoid truncation warnings within LD_A and ST_A code
These are internally stored as u64 values, so using u32 here causes
truncation warnings. Instead, we can just use u64 and preserve the bit
width.
7 years ago
bunnei
90bc68e7b6
Merge pull request #1290 from FernandoS27/shader-header
Implemented (Partialy) Shader Header
7 years ago
Lioncash
0de8f10b34
core/core_cpu: Replace exclusive monitor include with forward declaration
We don't need to include this as a dependency within the header. A
regular forward declaration will suffice here.
7 years ago
FernandoS27
5a00f0ec41
Implemented I2I.CC on the NEU control code, used by SMO
7 years ago
FernandoS27
81fd967a27
Implemented CSETP
7 years ago
FernandoS27
9cdcf964b5
Implemented Control Codes
7 years ago
Lioncash
e27a1af5f7
time_stretch: Remove unused <array> include
This isn't used within this header and isn't necessary.
7 years ago
Lioncash
184f8e72b0
stream: Replace includes with forward declarations where applicable
Avoids propagating includes in headers where it's not necessary to do
so.
7 years ago
Lioncash
01a14e4bdf
audio_renderer: Replace includes with forward declarations where applicable
Avoids including unnecessary headers within the audio_renderer.h header,
lessening the likelihood of needing to rebuild source files including
this header if they ever change.
Given std::vector allows forward declaring contained types, we can move
VoiceState to the cpp file and hide the implementation entirely.
7 years ago
FernandoS27
90ffde0a90
Added asserts for texture misc modes to texture instructions
7 years ago
FernandoS27
dc2a597dc8
Added texture misc modes to texture instructions
7 years ago
bunnei
b70a93a10a
Merge pull request #1311 from FernandoS27/fast-swizzle
Optimized Texture Swizzling
7 years ago
bunnei
0a80873882
Merge pull request #1312 from lioncash/fwd
service/vi: Replace includes with forward declarations where applicable
7 years ago
bunnei
ac108e6259
Merge pull request #1313 from lioncash/error
kernel/errors: Amend error code for ERR_NOT_FOUND
7 years ago
bunnei
d6c188f19d
Merge pull request #1314 from lioncash/cast
audio_core/time_stretch: Silence truncation warnings in Process()
7 years ago
bunnei
542d2aad6d
Merge pull request #1316 from lioncash/shadow
gl_shader_decompiler: Get rid of variable shadowing within LEA instructions
7 years ago
bunnei
4d26ccb487
Merge pull request #1318 from lioncash/errors-sm
services/sm: Amend error code constants
7 years ago
bunnei
5647c5bb75
Merge pull request #1321 from lioncash/audio-shadow
cubeb_sink: Get rid of variable shadowing within CubebSink's constructor
7 years ago
raven02
da0fb4d371
Add 1D sampler for TLDS - TexelFetch (Mario Rabbids)
7 years ago
bunnei
8028e15a02
Merge pull request #1315 from lioncash/size
kernel/svc: Handle a few error cases within memory-related functions
7 years ago
bunnei
9b4cc24f0f
Merge pull request #1320 from lioncash/name
cubeb_sink: Correct context name in ListCubebSinkDevices()
7 years ago
bunnei
deb8c774c6
Merge pull request #1328 from FearlessTobi/port-4192
Port #4192 from Citra: "svc: change unknown to thread in CreateThread"
7 years ago
bunnei
604236bb23
Merge pull request #1327 from FearlessTobi/port-4171
Port #4171 from Citra: "Tests: Remove glad test OS X work-around"
7 years ago
bunnei
5c341eca32
Merge pull request #1326 from FearlessTobi/port-4182
Port #4182 from Citra: "Prefix all size_t with std::"
7 years ago
bunnei
b05fff500f
Merge pull request #1329 from raven02/bgr5a1u
Implement RenderTargetFormat::BGR5A1_UNORM
7 years ago
bunnei
bafc45def5
Merge pull request #1335 from lioncash/copy
game_list_p: Take map iterator contents by const reference
7 years ago
bunnei
44a6e6b966
Merge pull request #1336 from lioncash/antialias
yuzu/util: Antialias game list compatibility pixmaps
7 years ago
bunnei
66c0752b12
Merge pull request #1331 from raven02/astc_8_8
Implement ASTC_2D_8X8
7 years ago
Lioncash
f2cd251780
yuzu/util: Antialias game list compatibility pixmaps
We pass a hint to the QPainter instance that we want anti-aliasing on
the compatibility icons, which prevents the circles from looking fairly
jagged, and actually makes them look circular.
7 years ago
Lioncash
d9fbd78bc1
game_list_p: Amend typo in GameListItemCompat's constructor parameter
Adds a missing 'i' character that was missing in compatibility.
7 years ago
Lioncash
776f523c80
game_list_p: Take map iterator contents by const reference
We don't need to copy the whole struct in this instance, we can just
utilize a reference instead.
7 years ago
raven02
13c243fcb6
Implement ASTC_2D_8X8 (Bayonetta 2)
7 years ago
bunnei
1fefdc8ea5
Merge pull request #1273 from Subv/ld_sizes
Shaders: Implemented multiple-word loads and stores to and from attribute memory.
7 years ago
bunnei
1f9ca84b5c
Merge pull request #1271 from Subv/kepler_engine
GPU: Basic implementation of the Kepler Inline Memory engine (p2mf).
7 years ago
raven02
8cf6772150
Implement RenderTargetFormat::BGR5A1_UNORM (Pokken Tournament DX)
7 years ago
Subv
415fd53a49
Shaders: Implemented multiple-word loads and stores to and from attribute memory.
This seems to be an optimization performed by nouveau.
7 years ago
Valentin Vanelslande
d1e28cc0e3
Port # #4192 from Citra: "svc: change unknown to thread in CreateThread"
7 years ago
Yuri Kunde Schlesner
089af97d09
Tests: Remove glad test OS X work-around
7 years ago
fearlessTobi
1190ea6ddb
Port #4182 from Citra: "Prefix all size_t with std::"
7 years ago
FernandoS27
37224010a1
Optimized Texture Swizzling
7 years ago
Lioncash
7c7c12f664
cubeb_sink: Get rid of variable shadowing within CubebSink's constructor
The parameter of the lambda was shadowing the variable that was being
assigned to.
7 years ago
Lioncash
514f8f036c
cubeb_sink: Correct context name in ListCubebSinkDevices()
This ain't Citra.
7 years ago
Lioncash
b1aad83113
services/sm: Amend error code constants
Courtesy of @ogniK5377 .
This also moves them into the cpp file and limits the visibility to
where they're directly used. It also gets rid of unused or duplicate
error codes.
7 years ago
Lioncash
e05a27a999
kernel/svc: Sanitize creation of shared memory via svcCreateSharedMemory()
The kernel caps the size limit of shared memory to 8589930496 bytes (or
(1GB - 512 bytes) * 8), so approximately 8GB, where every GB has a 512
byte sector taken off of it.
It also ensures the shared memory is created with either read or
read/write permissions for both permission types passed in, allowing the
remote permissions to also be set as "don't care".
7 years ago
Lioncash
f85b28f993
kernel/svc: Sanitize addresses, permissions, and sizes within svcMapSharedMemory() and svcUnmapSharedMemory()
Part of the checking done by the kernel is to check if the given
address and size are 4KB aligned, as well as checking if the size isn't
zero. It also only allows mapping shared memory as readable or
read/write, but nothing else, and so we shouldn't allow mapping as
anything else either.
7 years ago
Lioncash
35c05e8bf2
gl_shader_decompiler: Get rid of variable shadowing within LEA instructions
These variables are already defined within an outer scope.
7 years ago
Lioncash
d241be6c78
kernel/svc: Sanitize addresses and sizes within svcMapMemory() and svcUnmapMemory()
The kernel checks if the addresses and given size is 4KB aligned before
continuing onwards to map the memory.
7 years ago
Lioncash
3e8e34221e
kernel/svc: Sanitize heap sizes within svcSetHeapSize()
The kernel checks if the given size is a multiple of 2MB and <= to 4GB
before going ahead and attempting to allocate that much memory.
7 years ago