Commit Graph

2710 Commits (ba2a54a9dd6e5a263c5e6886e55b3bc55b95b4ab)

Author SHA1 Message Date
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
bunnei 87df493b5b Merge pull request #1252 from Subv/cam
Services/Cam: Added new log type and camera enums from 3dbrew.
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@b96dd51d33 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
bunnei e906165229 Merge pull request #1225 from lioncash/clean
csnd_snd: Get rid of type punning
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
bunnei c642dc459b Merge pull request #1248 from polaris-/add-ssl-stubs
Add stub functions for Initialize and GenerateRandomData in ssl:C
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
bunnei 78b0d9c8b0 Merge pull request #1246 from polaris-/patch-1
Fix read and write register blocks in gdbstub
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
bunnei ac829f87e0 Merge pull request #1237 from Subv/ubos
Shaders: Use UBOs instead of individual uniforms in the generated frag shaders
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
bunnei 43bb29edc5 Merge pull request #1122 from polaris-/gdbstub
gdbstub implementation
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
bunnei 7c12ee9ecc Merge pull request #1165 from esoteric-programmer/master
Added CSND_ExecuteType0Commands stub.
10 years ago
Matthias Ernst 3d89e0a94c Added CSND stub. 10 years ago
bunnei af26b7a0bc Merge pull request #1208 from archshift/free-bytes
Implement FS_User::GetFreeBytes
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
bunnei 8c385a3fc6 Merge pull request #1209 from wwylele/file-path-encoding
citra-qt: Change file path encoding
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
bunnei bd833b8dd8 gl_shader_gen: Fix bug where TEV stage outputs should be clamped. 10 years ago
bunnei f2e7f7e101 gl_rasterizer: Add documentation to ShaderCacheKey. 10 years ago
bunnei 4b5141954e gl_shader_gen: Add additional function documentation. 10 years ago
bunnei 2a0a86f629 gl_shader_util: Cleanup header file + add docstring. 10 years ago
bunnei a74774257e gl_shader_gen: Various cleanups + moved TEV stage generation to its own function. 10 years ago
bunnei c86b9d4242 renderer_opengl: Refactor shader generation/caching to be more organized + various cleanups. 10 years ago
bunnei 3c057bd3d8 gl_rasterizer: Move logic for creating ShaderCacheKey to a static function. 10 years ago
bunnei b02a533d94 gl_shader_util: Use vec3 constants for AppendColorCombiner. 10 years ago
bunnei 37b0aa5af7 gl_rasterizer: Fix typo in uploading TEV const color uniforms. 10 years ago
bunnei 82f3e6dc69 gl_shader_util: Fix precision bug with alpha testing.
- Alpha testing is not done with float32 precision, this makes the HW renderer match the SW renderer.
10 years ago
Subv e3f4233cef Initial implementation of fragment shader generation with caching. 10 years ago
polaris- d1f73c424f Add a register variable to loops 10 years ago
polaris- d7e346239b Update register read loops to go with last commit 10 years ago
polaris- 8a0d848646 Pad responses to gdb for VFP registers 10 years ago
polaris- 53aa55fcaa Try to add support for VFP registers 10 years ago
polaris- 9f66580d7e Fix buffer overflow comments 10 years ago
wwylele 6e57389172 change file path encoding to Local8bit()
to support non-latin characters
10 years ago
bunnei 7411aed5c7 Merge pull request #1207 from kemenaran/persist-citra-settings-in-qt
citra-qt: save hardware-rendering and shaders-jit settings
10 years ago
bunnei 2e2cfa0037 Merge pull request #1204 from kemenaran/qt-add-mac-icon
citra-qt: Add icon to the OS X app
10 years ago
bunnei c717d1551d Merge pull request #1199 from Gareth422/encryption-check
Loader: Implement NCCH encryption check
10 years ago
Pierre de La Morinerie 71f6672415 citra-qt: persist hardware-rendering and shaders-jit settings
Before this changing these settings from the GUI would apply the
settings, but they were reseted to the default values when exiting
citra.
10 years ago
Pierre de La Morinerie 22421528b7 citra-qt: Add icon to Mac app
Previously the Mac app didn't have any icon.
10 years ago
polaris- 2b7316a379 Remove unnecessary new lines, changed Deinit to Shutdown 10 years ago
Gareth Poole 721475420d Loader: Change NCCH header types to be explicitly little-endian 10 years ago
Gareth Poole 2706394384 Loader: Implement encryption check 10 years ago
bunnei 04325e5980 Merge pull request #1194 from linkmauve/no-newline
Remove newlines in LOG_* calls
10 years ago
Emmanuel Gil Peyrot 14af5919ba CitraQt, SkyEye, Loader, VideoCore: Remove newlines in LOG_* calls.
The LOG_* function itself already appends one.
10 years ago
Gareth Poole be217bca70 Fixed spelling errors 10 years ago
bunnei 7c747c8c33 Merge pull request #1189 from archshift/game-list-toggle-window
Game list: propely hide on toggling window mode
10 years ago
Rohit Nirmal 32391cffdd Silence -Wsign-compare warnings. 10 years ago
archshift 2ce2e05db0 Game list: propely hide on toggling window mode
Properly hides the game list upon toggling from external
window mode to single window mode. Previously, both the game
list and the render window would have been shown at the same
time upon toggling.
10 years ago
Pierre de La Morinerie ba5d0f594d citra-qt: Fix mouse events coordinates on high-DPI screens 10 years ago
Pierre de La Morinerie 2f4a1e0d59 citra-qt: Enable high-DPI widgets on Mac app
The OS will render the widgets using the system screen DPI (instead of
being locked at @1x resolution).

This has no impact on the existing high-DPI rendering code in Citra,
which means that the resolution of the emulated content is increased
to the real number of pixels, as on other platforms.
10 years ago
Pierre de La Morinerie 513483f8d5 citra-qt: Use custom Info.plist for Mac builds
Instead of letting CMake re-generate an automatic Info.plist file on
every build, use our own. This allows greater control on the application
bundle settings.
10 years ago
polaris- 42928659e8 Use BreakpointAddress struct instead of passing address directly 10 years ago
polaris- 6ea428addf Toggle use_gdbstub in citra GLFW 10 years ago
polaris- 31dee93e84 Implement gdbstub 10 years ago
bunnei 5d635986bf Merge pull request #1176 from lioncash/vs2015-code-junking-day
Obligatory "Throw out workarounds VS2013 once limited us to" PR
10 years ago
bunnei 11a64acf23 Merge pull request #1095 from archshift/game-list
Initial implementation of a game list
10 years ago
archshift 0fae76c741 Game list: save and load column sizes, sort order, to QSettings 10 years ago
archshift 797b91a449 Add menu item for selecting the game list folder 10 years ago
archshift 6e1bb58ee8 Initial implementation of a game list 10 years ago
archshift f297a59985 Add helper function for creating a readable byte size string. 10 years ago
archshift afd06675fa Don't show render window until a game is started 10 years ago
Lioncash 845ac621b3 bit_field: Re-enable code on MSVC 10 years ago
bunnei 1f18d64d1f Merge pull request #1180 from lioncash/symbol
symbols: Minor changes
10 years ago
archshift 7134a17fc6 Split up FileUtil::ScanDirectoryTree to be able to use callbacks for custom behavior
Converted FileUtil::ScanDirectoryTree and FileUtil::DeleteDirRecursively
to use the new ScanDirectoryTreeAndCallback function internally.
10 years ago
archshift bba12520c4 Expose loader helper functions for identifying files. 10 years ago
Lioncash 8cb2bc748d symbols: Replace an insert call with emplace 10 years ago
Lioncash 65d7a82db4 symbols: Get rid of initial underscores in variable names 10 years ago
Lioncash 7e143d4422 symbols: Directly initialize TSymbol members 10 years ago
Lioncash 052eacc3b9 symbols: Simplify GetSymbol 10 years ago
bunnei bcaafb826e Merge pull request #1177 from linkmauve/fix-msvc-todo
Use a constexpr function for country initialization in service/cfg
10 years ago
Lioncash a97d9613a7 ivfc_archive: Fix a printf specifier 10 years ago
Emmanuel Gil Peyrot 57722fb192 Service/CFG: Use a constexpr function for country initialization
This fixes a TODO left over from when we supported MSVC 2013.
10 years ago
bunnei a67df5ad94 Merge pull request #1172 from martinlindhe/fix-warnings
Fix some xcode 7 (llvm) warnings
10 years ago
Martin Lindhe bafb7afba2 fix some xcode 7.0 warnings 10 years ago
LittleWhite d06824809f Fix for the refresh issue when no rendering is done 10 years ago
bunnei 09f43c0975 Merge pull request #1160 from lioncash/clang
Silence some clang warnings
10 years ago
bunnei ca5ea5142d Merge pull request #1106 from Kloen/fix-connect
citra-qt: Fix connect error on startup (#449)
10 years ago
Cruel d60a9be5c6 Implement 3dsx RomFS 10 years ago
polaris- 5114d75647 Implement gdbstub 10 years ago
Kloen 541fc80240 citra-qt: Fix connect error on startup 10 years ago
Lioncash 543192e045 hash: Get rid of unused functions 10 years ago
Lioncash 751fbfdcc3 general: Silence some warnings when using clang 10 years ago
Yuri Kunde Schlesner bbf92a54e5 Service/CFG: Add default entry for block 0x000A0001 (birthday) 10 years ago
Yuri Kunde Schlesner 13a8e39813 Service/CFG: Correct flags in 2 default blocks
Verified against a 9.2.0-20 config save
10 years ago
Yuri Kunde Schlesner d91f1c0624 Service/CFG: Add additional blocks to default save data
These blocks are required by various games to boot.
10 years ago
Yuri Kunde Schlesner 6c89d4ca26 Fix narrowing conversion warning 10 years ago
Yuri Kunde Schlesner 1fe72dcc04 Service/CFG: Move several private types from the header to the cpp 10 years ago
Yuri Kunde Schlesner ac4f7b0fde Service/CFG: Clean up default block creation 10 years ago
Yuri Kunde Schlesner b3af7aad9e Merge pull request #1123 from yuriks/gsp-flush
GSP: Implement command 0x05, used for flushing caches
10 years ago
bunnei d6e56b8c88 Merge pull request #1111 from LittleWhite-tb/qt-close-renderwindow
Stop emulation when render window is closed
10 years ago
Yuri Kunde Schlesner 1ed7f3e028 GSP: Implement command 0x05, used for flushing caches
May fix additional texture caching issues. (Though mostly in homebrew, I
haven't seen any commercial software use this to flush anything but
command lists.)
10 years ago
Lioncash 13683a6a11 memory_util: Remove unnecessary assignment in FreeMemoryPages 10 years ago
Lioncash 3972ac40ef memory_util: Remove commented out printf statements 10 years ago
Lioncash 07bfe0abbb general: Replace 0 literals with nullptr where applicable 10 years ago
Lioncash b9fb46ac9d synchronized_wrapper: Add missing return in SynchronizedRef move assignment operator 10 years ago
Yuri Kunde Schlesner 5bca1e6adf Merge pull request #1147 from lioncash/nullptr
General: Replace NULL and '0' usages with nullptr where applicable
10 years ago
Yuri Kunde Schlesner 5bf8eed96c Merge pull request #1149 from lioncash/override
graphics_breakpoints_p: Add missing override specifier
10 years ago
Yuri Kunde Schlesner 48f9bef75d Merge pull request #1142 from lioncash/hdrqt
citra_qt: Reorganize headers
10 years ago
Yuri Kunde Schlesner ece0f050a9 Merge pull request #1143 from lioncash/vcore-hdr
video_core: Reorganize headers
10 years ago
Lioncash ec93d6e19a graphics_breakpoints_p: Add missing override specifier 10 years ago
Lioncash 60b3fc01a2 General: Replace NULL and '0' usages with nullptr where applicable 10 years ago
bunnei ef622a07ff Merge pull request #1144 from lioncash/remove
common: Get rid of debug_interface.h
10 years ago
Lioncash bc886a7a03 common: Get rid of a cast in swap.h 10 years ago
Lioncash 5dc9950772 common: Get rid of debug_interface.h
This is technically unused. Also removes TMemChecks because it relies on this.
Whenever memory breakpoints are implemented for real, it should be designed to
match the codebase debugging mechanisms.
10 years ago
Lioncash aec28ed91e video_core: Reorganize headers 10 years ago
Lioncash abe5bb4019 citra_qt: Reorganize headers 10 years ago
Lioncash 1fa772393b video_core: Remove unnecessary includes from headers 10 years ago
Yuri Kunde Schlesner abc34ddb88 Merge pull request #1130 from lioncash/block
memory: Get rid of pointer casts
10 years ago
bunnei a008b28659 Merge pull request #1133 from lioncash/emplace-back
gl_rasterizer: Replace push_back calls with emplace_back in AddTriangle
10 years ago
bunnei 0d5604fdcb Merge pull request #1136 from lioncash/proto
renderer_opengl: Remove unimplemented function declaration
10 years ago
bunnei 927b34a1e3 Merge pull request #1137 from lioncash/doc
General: Fix up doxygen comments
10 years ago
Lioncash d3efa637b4 General: Fix up doxygen comments 10 years ago
Lioncash 8a3428f16c renderer_opengl: Remove unimplemented function declaration 10 years ago