Commit graph

3748 commits

Author SHA1 Message Date
Peter Mackay
0d7d9c61b2 Include <util/lock_and_find.h> in files it's used. 2018-06-05 13:04:39 +01:00
Peter Mackay
0aa8e2228b Reorder includes. 2018-06-05 13:03:42 +01:00
Peter Mackay
f1d50f01a1 Enable texture cache by default. 2018-06-05 08:55:58 +01:00
Peter Mackay
a41ae5f491 Fix null dereference in constexpr function.
Fixes #270
2018-06-05 08:51:47 +01:00
Peter Mackay
48efbd124a
Merge pull request #258 from petmac/opengl-4.1-optimisation
Texture cache
2018-06-01 14:07:14 +01:00
Peter Mackay
9d09e4bc0e
Merge pull request #266 from petmac/audio-profiling
Add profiling to audio functions.
2018-06-01 14:05:53 +01:00
Peter Mackay
6075a7c506
Merge pull request #268 from petmac/vsync
Enable vsync for main OpenGL context.
2018-05-30 16:26:04 +01:00
Peter Mackay
d726e93d8c Enable vsync for main OpenGL context. 2018-05-30 01:18:53 +01:00
Peter Mackay
2c6647d539 Add profiling to audio functions. 2018-05-29 23:53:05 +01:00
Peter Mackay
de9a746c19
Merge pull request #265 from petmac/fix-warnings
Fix warnings
2018-05-29 21:11:40 +01:00
Peter Mackay
5b08a53961 Fix "returning address of local" warning. 2018-05-29 19:06:07 +01:00
Peter Mackay
8532b076b6 Fix size_t format warnings. 2018-05-29 09:18:07 +01:00
Peter Mackay
2bc2728762 Add enable flag for texture cache. 2018-05-28 18:52:54 +01:00
Peter Mackay
8227ab47f4 Use another overload for toggle menu items. 2018-05-28 18:52:54 +01:00
VelocityRa
a3cf3189d1 Fix some format args (fixes Linux build) 2018-05-28 20:50:52 +03:00
VelocityRa
592ed6ad54 [kernel/io] Return error immediately on invalid seeks
* Some such cases were already handled, but not these
* Also make `SCE_ERROR_ERRNO_EINVAL` a constant
2018-05-28 20:50:52 +03:00
VelocityRa
e2477ff1ae [io] Logging overhaul (log everything)
* Log _every_ io operation (to TRACE log channel because it tends to be a bit spammy)
* Pass export names to all io functions and log those too
* Fix some returned error values
* Call _wclosedir when destructing DirPtr on Windows
2018-05-28 20:50:52 +03:00
VelocityRa
1b2baa8ae4 [log] Various log fixes 2018-05-28 20:50:52 +03:00
VelocityRa
0ab9a9901c [host/sdl] Make window resizable
Useful for having more space for debugging windows
2018-05-28 20:50:52 +03:00
VelocityRa
b522e7b8a8 [io] Refactoring
* Rename/refactor/split/simplify functions
* Get rid of duplicated code
* Redirect addcont0
2018-05-28 20:50:52 +03:00
VelocityRa
866618e194 [util] File for preprocessor utilities 2018-05-28 20:50:52 +03:00
VelocityRa
a93d0be1c4 [io] Add addcont0: to io devices and reorder them 2018-05-28 20:50:52 +03:00
VelocityRa
9291f7c766 [io] Introduce DevicePaths
Also
* Clean some unused functions from io.h
2018-05-28 20:50:52 +03:00
Peter Mackay
dff6e73700 Hash texture palettes. 2018-05-28 13:13:57 +01:00
VelocityRa
e8c4594e26 [format] Run clang-format
Forgive me for this, I tried to squash to appropriate commits but history got fucked up :(
2018-05-26 23:45:34 +03:00
VelocityRa
2dac5d2d25 [SceLibc] Warn on invalid fopen mode 2018-05-26 23:45:34 +03:00
VelocityRa
549d149b06 [host] Refactor/reduce main code 2018-05-26 23:45:34 +03:00
VelocityRa
e0736aa11f [gui] Refactor imgui implementation 2018-05-26 23:45:34 +03:00
VelocityRa
f6725c7e25 [host] Refactor DisplayState 2018-05-26 23:45:34 +03:00
VelocityRa
79aad2f428 [log] Fix conditional logging
It finally works.
2018-05-26 23:45:34 +03:00
VelocityRa
f70c14e6ca [io] Refactor translate_path to 2 functions (make normalize_path) 2018-05-26 23:45:34 +03:00
VelocityRa
c48ee61467 [log] Utility for logging hex numbers (converts to unsigned)
Hopefully the last time we're changing this...
Use log_hex() from now own to convert numbers to hex strings.
That way we control how they look without having to change every occurrence.
2018-05-26 23:45:34 +03:00
VelocityRa
81d302907f [ui] Event flags dialog: fix crash and move to own file 2018-05-26 23:45:34 +03:00
Peter Mackay
38513f20e4 Fixes based on @VelocityRa's feedback. 2018-05-25 08:24:38 +01:00
Nick Renieris
8b50c0b967
[shaders] Move shaders to another repo (submodule) (#260) 2018-05-24 14:43:29 +03:00
Peter Mackay
4c60ff49d4 Profile texture cache functions. 2018-05-21 17:59:18 +01:00
Peter Mackay
5bcbc16f30 Move GXM_PROFILE to its own file. 2018-05-21 17:53:05 +01:00
Peter Mackay
eb8ce5ca3d Add basic hashing of texture data. 2018-05-20 00:39:33 +01:00
Peter Mackay
d2ef0db73c Increment timestamp at end of scene. 2018-05-20 00:39:33 +01:00
Peter Mackay
cca2504f0c Use glTexSubImage2D rather than glTexImage2D for uploading data. 2018-05-20 00:39:33 +01:00
Peter Mackay
f19ab91a90 First pass texture cache. Assumes that textures do not change. 2018-05-20 00:39:33 +01:00
Rinnegatamante
233b01d178
Merge pull request #252 from Rinnegatamante/vitagl
vitaGL support
2018-05-19 14:12:19 +02:00
Rinnegatamante
a8eef19cb2 [gxm] Added support for S32 uniform type. 2018-05-19 00:28:23 +02:00
Rinnegatamante
295ecc68c7 [gxm] Stubbed sceGxmShaderPatcherCreateMaskUpdateFragmentProgram 2018-05-19 00:28:23 +02:00
Rinnegatamante
d4cd595711
[mem] Dividing the available pool equally. (#251) 2018-05-18 21:25:52 +02:00
Peter Mackay
e037b75b71
Merge pull request #253 from petmac/opengl-4.1
Upgrade from OpenGL 2.1 to 4.1
2018-05-18 18:34:21 +01:00
Peter Mackay
a6a8d3762f Run clang-format. 2018-05-17 23:28:52 +01:00
Peter Mackay
9f86bbc4ce Add notes about YUV-to-RGB shader pass. 2018-05-17 23:26:27 +01:00
Peter Mackay
326024a449 Add missing newlines at ends of files. 2018-05-17 23:24:25 +01:00
Peter Mackay
fc4feb2ce2 Add notes about texture width alignment. 2018-05-17 23:21:10 +01:00