Commit graph

3134 commits

Author SHA1 Message Date
Paul "Dettorer" Hervot
1b1f61fe4c Profiler: Fix variable shadowing 2015-12-16 11:57:00 +01:00
Paul "Dettorer" Hervot
58180a2db0 Profiler: Fix casts and signedness on integer values 2015-12-16 11:57:00 +01:00
Paul "Dettorer" Hervot
96c20a2ed2 misc.cpp: Check if ANDROID macro is defined before checking its value 2015-12-16 11:57:00 +01:00
Paul "Dettorer" Hervot
75852c8319 misc.cpp: Add missing include (-Wmissing-prototypes) 2015-12-16 11:57:00 +01:00
Paul "Dettorer" Hervot
996efc129c Memory_util: Check if EMU_ARCH_BITS is defined before checking its value 2015-12-16 11:57:00 +01:00
Paul "Dettorer" Hervot
362eddc283 Memory_util: Remove unused function argument 2015-12-16 11:57:00 +01:00
Paul "Dettorer" Hervot
dd1955f9d1 Logging: Remove a std::move due to NRVO 2015-12-16 11:57:00 +01:00
Paul "Dettorer" Hervot
b2a73a878d Logging: Convert an old-style cast to static_cast 2015-12-16 11:57:00 +01:00
Paul "Dettorer" Hervot
b2a9d05cd4 Hash: Fix casts and signedness on integer values 2015-12-16 11:57:00 +01:00
Paul "Dettorer" Hervot
7ab94baadd File_util: Silence warning about an unused variable in handler 2015-12-16 11:57:00 +01:00
Paul "Dettorer" Hervot
eedbdeb11e File_util: Remove an useless cast 2015-12-16 11:57:00 +01:00
Paul "Dettorer" Hervot
af4a49ad23 File_util: Add a missing return in function 2015-12-16 11:57:00 +01:00
Paul "Dettorer" Hervot
7987b5c66b File_util: Fix parameter shadowing 2015-12-16 11:57:00 +01:00
Paul "Dettorer" Hervot
bae02f20b4 File_util: Fix signedness and precision warnings 2015-12-16 11:57:00 +01:00
Paul "Dettorer" Hervot
ab6a962f59 Emu_window: Mark variable as unused in a handler 2015-12-16 11:57:00 +01:00
Paul "Dettorer" Hervot
9cefad91e3 Emu_window: Move virtual function definition to .cpp file (fix weak_vtable) 2015-12-16 11:57:00 +01:00
Yuri Kunde Schlesner
bbb96a392d Merge pull request #1281 from lioncash/compile
svc: Fix compilation with LOG_TRACE enabled
2015-12-13 12:53:30 -08:00
Lioncash
84afaaa10c svc: Fix compilation with LOG_TRACE enabled 2015-12-12 18:14:36 -05:00
Yuri Kunde Schlesner
402692c08d Merge pull request #1267 from yuriks/flipped-framebuffer
OpenGL: Flip framebuffers during transfer rather than when rendering
2015-12-09 20:35:15 -08:00
bunnei
3013f26d70 Merge pull request #1269 from Subv/triangle_fan
GPU/PrimitiveAssembler: Fixed drawing triangle fans.
2015-12-08 10:27:40 -05:00
Yuri Kunde Schlesner
31764c48fb Merge pull request #1272 from yuriks/merge-rasterizer
VideoCore: Unify interface to OpenGL and SW rasterizers
2015-12-07 20:21:06 -08:00
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.
2015-12-07 20:20:38 -08:00
bunnei
2589a68c42 Merge pull request #1271 from lioncash/dyncom-misc
dyncom: Miscellaneous minor changes
2015-12-07 16:24:08 -05:00
Yuri Kunde Schlesner
03835d04f4 VideoCore: Rename HWRasterizer methods to be less confusing 2015-12-06 19:08:37 -08:00
Yuri Kunde Schlesner
da80ece8b9 OpenGL: Rename cache functions to better match what they actually do 2015-12-06 17:02:52 -08:00
Lioncash
56e22e6aac dyncom: Remove static keyword from header functions 2015-12-06 15:14:51 -05:00
Lioncash
1ea0702eaa arm_interface: Make GetNumInstructions const 2015-12-06 15:07:59 -05:00
Lioncash
de9a625c7e arm_interface: directly initialize class members 2015-12-06 15:07:00 -05:00
Lioncash
d03e7f08ff dyncom: const correctness changes 2015-12-06 15:03:06 -05:00
Subv
7b33e163b9 GPU/PrimitiveAssembler: Fixed drawing triangle fans.
It was skipping the second vertex assignment and using uninitialized garbage when assembling the corresponding triangle.
2015-12-06 10:48:05 -05:00
Yuri Kunde Schlesner
cf81e08389 OpenGL: Flip framebuffers during transfer rather than when rendering 2015-12-04 22:23:39 -08:00
Yuri Kunde Schlesner
95dbc6eb0e OpenGL: Add support for glFrontFace in the state tracker 2015-12-04 21:58:26 -08:00
bunnei
87df493b5b Merge pull request #1252 from Subv/cam
Services/Cam: Added new log type and camera enums from 3dbrew.
2015-12-03 22:01:45 -05:00
bunnei
644d1e7ca3 Merge pull request #1261 from yuriks/tev-buffer-delay
PICA: Properly emulate 1-stage delay in the combiner buffer
2015-12-01 19:30:28 -05:00
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.
2015-11-30 22:45:18 -08:00
Yuri Kunde Schlesner
bec9049597 Merge pull request #1257 from yuriks/svcGetSystemInfo
Kernel: Implement svcGetSystemInfo
2015-11-30 21:17:34 -08:00
Yuri Kunde Schlesner
84a22cb594 Kernel: Implement svcGetSystemInfo
This makes smealum/ctrulib@b96dd51d33 work
with Citra.
2015-11-30 19:49:44 -08:00
Mathew Maidment
32f92b4a69 Merge pull request #1259 from lioncash/zero
armstate: Zero out the registers on creation
2015-11-29 16:40:22 -05:00
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.
2015-11-29 15:16:34 -05:00
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.
2015-11-29 13:06:45 -05:00
bunnei
e906165229 Merge pull request #1225 from lioncash/clean
csnd_snd: Get rid of type punning
2015-11-28 23:32:05 -05:00
bunnei
48265fa94c Merge pull request #1256 from archshift/refactor-scandir
Refactor ScanDirectoryTreeAndCallback to separate errors and retvals
2015-11-28 23:12:45 -05:00
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.
2015-11-27 13:33:38 -08:00
bunnei
913be80782 Merge pull request #1254 from bunnei/fix-gl-uniforms
renderer_opengl: Fix uniform issues with #1253
2015-11-25 22:43:28 -05:00
bunnei
f008dfbaca renderer_opengl: Fix uniform issues introduced with kemenaran/avoid-explicit-uniform-location. 2015-11-25 22:33:24 -05:00
bunnei
ff502a51c5 Merge pull request #1253 from kemenaran/avoid-explicit-uniform-location
Use regular uniform location
2015-11-25 20:50:29 -05:00
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).
2015-11-25 11:56:11 +01:00
bunnei
c642dc459b Merge pull request #1248 from polaris-/add-ssl-stubs
Add stub functions for Initialize and GenerateRandomData in ssl:C
2015-11-24 16:15:21 -05:00
Subv
434ae89a6a Services/Cam: Added new log type and camera enums from 3dbrew.
Followup to #1102
Original author @mailwl
2015-11-23 17:17:28 -05:00
polaris-
4179e91baf Add stub functions for Initialize and GenerateRandomData in ssl:C 2015-11-22 16:54:51 -05:00