Lioncash
d09b7a3c12
dyncom: Remove PC dispatch from several instructions
These instructions aren't capable of using the PC as a destination
10 years ago
Yuri Kunde Schlesner
015d7b9779
VideoCore: Sync state after changing rasterizers
This fixes various bugs that appear in the HW rasterizer after switching
between it and the SW one during emulation.
10 years ago
Lioncash
5a531d7ec2
dyncom: Handle unprivileged load/store variants correctly
LDRT/LDRBT/STRBT/STRT should simulate the load or store
as if the host CPU is in user mode.
STRT is also allowed to use the PC as an operand
10 years ago
Lioncash
84afaaa10c
svc: Fix compilation with LOG_TRACE enabled
10 years ago
Yuri Kunde Schlesner
195fedccf0
VideoCore: Unify interface to OpenGL and SW rasterizers
This removes explicit checks sprinkled all over the codebase to instead
just have the SW rasterizer expose an implementation with no-ops for
most operations.
10 years ago
Yuri Kunde Schlesner
03835d04f4
VideoCore: Rename HWRasterizer methods to be less confusing
10 years ago
Yuri Kunde Schlesner
da80ece8b9
OpenGL: Rename cache functions to better match what they actually do
10 years ago
Lioncash
56e22e6aac
dyncom: Remove static keyword from header functions
10 years ago
Lioncash
1ea0702eaa
arm_interface: Make GetNumInstructions const
10 years ago
Lioncash
de9a625c7e
arm_interface: directly initialize class members
10 years ago
Lioncash
d03e7f08ff
dyncom: const correctness changes
10 years ago
Subv
7b33e163b9
GPU/PrimitiveAssembler: Fixed drawing triangle fans.
It was skipping the second vertex assignment and using uninitialized garbage when assembling the corresponding triangle.
10 years ago
Yuri Kunde Schlesner
cf81e08389
OpenGL: Flip framebuffers during transfer rather than when rendering
10 years ago
Yuri Kunde Schlesner
95dbc6eb0e
OpenGL: Add support for glFrontFace in the state tracker
10 years ago
Yuri Kunde Schlesner
e9c209ccc8
PICA: Properly emulate 1-stage delay in the combiner buffer
This was discovered and verified by @fincs . The tev combiner buffer
actually lags behind by one stage, meaning stage 1 reads the initial
color, stage 2 reads stage 0's output, and so on.
Fixes character portraits in Fire Emblem: Awakening and world textures
in Zelda: ALBW. Closes #1140 .
10 years ago
Yuri Kunde Schlesner
84a22cb594
Kernel: Implement svcGetSystemInfo
This makes smealum/ctrulib@b96dd51d3349961189d4ab1bc2a5c45deff21c09 work
with Citra.
10 years ago
Lioncash
5e2b66d2a4
armstate: Zero out the registers on creation
std::array isn't always guaranteed to explicitly zero out it's contents
without an initializer list.
10 years ago
Subv
1d02eb0587
Core/ARM11: Correct the size of the VFP register array in the ThreadContext structure.
The VFP registers are 64 bits each, and there are 32 of them.
10 years ago
archshift
b3cfcf55ea
Refactor ScanDirectoryTreeAndCallback to separate errors and retvals
ScanDirectoryTreeAndCallback, before this change, coupled error/return
codes and actual return values (number of entries found). This caused
confusion and difficulty interpreting the precise way the function
worked.
Supersedes, and closes #1255 .
10 years ago
bunnei
f008dfbaca
renderer_opengl: Fix uniform issues introduced with kemenaran/avoid-explicit-uniform-location.
10 years ago
Pierre de La Morinerie
0735630744
Use regular uniform location
The support for GL_ARB_explicit_uniform_location is not that good
(53% according to http://feedback.wildfiregames.com/report/opengl/feature/GL_ARB_explicit_uniform_location ).
This fix the shader compilation on Intel HD 4000 (#1222 ).
10 years ago
Subv
434ae89a6a
Services/Cam: Added new log type and camera enums from 3dbrew.
Followup to #1102
Original author @mailwl
10 years ago
polaris-
4179e91baf
Add stub functions for Initialize and GenerateRandomData in ssl:C
10 years ago
polaris-
912e53323d
Add Initialize and GenerateRandomData stubs
10 years ago
polaris-
2732ec758d
Fix read and write register blocks in gdbstub
Previously, the padding wasn't correctly accounted for which caused the gdbstub to read and write everything after R15 (starting with the dummy FPA registers) incorrectly, which caused CPSR to not be handled correctly. Everything appears to be working as expected with this change.
10 years ago
Subv
823ce62f2f
FragShader: Use an UBO instead of several individual uniforms
10 years ago
wwylele
1f89d5d184
fix failure on gcc and clang
10 years ago
wwylele
8de154893c
disable unary minus when the type is not signed
silent warning C4146 on msvc
10 years ago
Subv
7a37dba75b
GPU/Loaders: Log an error when a loader tries to load from a component beyond the available ones (12).
Related to #1170
10 years ago
polaris-
bcea959910
Fix bug with reading addresses and lengths
10 years ago
polaris-
b6422038b5
Change headers
10 years ago
Lioncash
a1bd909294
csnd_snd: Get rid of type punning
10 years ago
Matthias Ernst
3d89e0a94c
Added CSND stub.
10 years ago
archshift
5dfd2dba70
Implement FS_User::GetFreeBytes
10 years ago
Filiph Sandström
a06a32c05d
Fix copy paste
10 years ago
Emmanuel Gil Peyrot
53df67376d
OpenGL: Log GL_KHR_debug messages we receive
This allows the driver to communicate errors, warnings and improvement
suggestions about our usage of the API.
10 years ago
Filiph Sandström
0c84d59a27
Fix wrong branch
10 years ago
Filiph Sandström
844b9970b4
Add GetTotalStepCount Stub
10 years ago
Filiph Sandström
f61c9da7d3
Update ptm.h
10 years ago
polaris-
a7eb6a4045
Add some headers so TravisCI will hopefully work
10 years ago
polaris-
45ed9e7e5e
Use CHAR_BIT instead of 8
10 years ago
polaris-
a5ab8accc2
Handle changes pointed out in comments on PR
10 years ago
bunnei
74186a5f01
gl_shader_gen: Use explicit locations for vertex shader attributes.
10 years ago
bunnei
e663f5c914
gl_shader_gen: Optimize code for AppendAlphaTestCondition.
- Also add a comment to AppendColorCombiner.
10 years ago
bunnei
e7b1f2ae0a
gl_rasterizer: Define enum types for each vertex texcoord attribute.
10 years ago
bunnei
0ebcff710e
gl_shader_gen: Various cleanups to shader generation.
10 years ago
bunnei
240a3b80d9
gl_rasterizer: Use MMH3 hash for shader cache hey.
- Includes a check to confirm no hash collisions.
10 years ago
bunnei
71edb55114
gl_shader_gen: Require explicit uniform locations.
- Fixes uniform issue on AMD.
10 years ago
bunnei
5ef2df056d
gl_shader_gen: Rename 'o' to 'attr' in vertex/fragment shaders.
10 years ago
bunnei
c2c4faef4c
gl_shader_gen: AppendAlphaModifier default should be 0.0, not vec4(0.0).
10 years ago