Commit Graph

1712 Commits

Author SHA1 Message Date
Henrik Rydgard
f4b1152b00 Pick some safe changes from the android gradle branch (including windows CMake fixes) 2016-12-05 16:52:03 +01:00
Florent Castelli
f02e2b59b0 qt: Build Qt frontend with CMake. Requires Qt5. 2016-10-17 23:45:21 +02:00
Florent Castelli
e0ff68b3f6 c++11: Remove compat header base/functional.h
We want a proper C++11, not tr1. We don't target those compilers anyway.
2016-10-12 11:32:45 +02:00
Unknown W. Brackets
1c3e048070 Vulkan: Consistently init the graphicsContext.
This was only happening properly on Windows before.
2016-10-01 11:22:53 -07:00
Henrik Rydgård
dfda67e815 Merge pull request #9016 from unknownbrackets/screenshot
Use the display vfb for reporting/save state/TAS screenshots
2016-09-29 11:16:59 +02:00
Unknown W. Brackets
5ae511a1ae Disable Language... while playing a game.
It only really works in the UI.
2016-09-28 22:37:01 -07:00
Unknown W. Brackets
36406eae16 Put "More Settings" below other settings.
Just seems to make more sense...
2016-09-28 22:36:02 -07:00
Unknown W. Brackets
fa0e88f1b7 Add a flag to use the display vfb for screenshots.
This fixes proportions of reporting, savestate screenshots, and TAS
recording for PS1 ports, mainly.
2016-09-25 16:32:18 -07:00
Unknown W. Brackets
e32a5ad4cd Use spaces for rc files just to be consistent. 2016-09-05 19:26:51 -07:00
Chris Burgener
1e7eab9d26 Rename Movie menu to Record and move to File 2016-09-04 12:12:28 -04:00
Chris Burgener
7d089a0f76 Clean up various files 2016-09-03 19:23:17 -04:00
Chris Burgener
645cb4d69e Add Audio Dumping to File 2016-09-03 14:05:38 -04:00
Chris Burgener
3d8a49c846 Add Movie Menu to Win32 2016-09-02 12:53:31 -04:00
Unknown W. Brackets
2e2674be21 Properly allow triggering a core context.
This will be useful on Mac.
2016-08-08 17:56:09 -07:00
Unknown W. Brackets
34358fb907 Use an explicit Unicode reference.
This should be less likely of triggering weird issues with Visual Studio.
2016-08-07 18:02:10 -07:00
Unknown W. Brackets
f0a8e931ff Remove UTF-8 BOMs from a few files.
And note the only ones that do need them in editorconfig.
2016-08-07 17:59:35 -07:00
Unknown W. Brackets
747a6ec524 Debugger: Add custom log expressions.
Similar to Visual Studio, just use {a1} to log the value of register a1.
Supports anything the expression parser supports.
2016-08-04 13:29:22 -07:00
Unknown W. Brackets
e4ca124b0e Debugger: Add custom breakpoint log message. 2016-08-04 13:07:56 -07:00
Unknown W. Brackets
9972e5b10a Debugger: Allow logging on CPU breakpoints. 2016-08-04 12:39:29 -07:00
Unknown W. Brackets
a9ad0cd471 Debugger: Make breakpoint actions more generic. 2016-08-04 12:02:44 -07:00
Henrik Rydgard
210cd4b52d New vulkan validation issues... 2016-07-24 15:55:05 +02:00
Henrik Rydgard
b560038b3d Work around a new false positive from the latest Vulkan validation layers 2016-06-30 16:11:50 +02:00
Unknown W. Brackets
9d6684a776 Consistently resolve PBP paths, use /s in recent.
Drag and drop was using \s causing duplicate recent entries and confusing
some of the PBP parsing.  Let's make it all a bit safer.
2016-06-26 20:33:25 -07:00
Unknown W. Brackets
785908e552 Write out correct bytes in extract file.
Oops, this was always aligning to 4KB.
2016-06-04 18:16:42 -07:00
Henrik Rydgård
3147f1ac95 Merge pull request #8775 from unknownbrackets/http
Clean up HTTP server implementation
2016-05-28 12:34:55 +02:00
Unknown W. Brackets
a1fbcc3d93 Avoid directly calling osm from Core/GPU code.
This allows UI to handle the message however it wants to, and reduces
cross linkage issues.
2016-05-27 22:05:30 -07:00
Unknown W. Brackets
27d135d48a Decouple save states from UI.
It's the UI's job to decide how and what things are displayed, not Core's.
This also reduces reasons for linkage issues.
2016-05-27 21:25:05 -07:00
Unknown W. Brackets
e6cf296d1a Trigger save slot display from UI code.
Core shouldn't be calling UI code.
2016-05-27 20:53:20 -07:00
Unknown W. Brackets
95d912c378 Get rid of the input_state global linkage. 2016-05-27 20:24:01 -07:00
Unknown W. Brackets
1f3615b411 Avoid a debug warning in MSVC. 2016-05-26 18:16:42 -07:00
Henrik Rydgard
fd0af5b271 Vulkan: Mostly pass the validation layers in SDK 1.0.13 2016-05-24 21:41:35 +02:00
Henrik Rydgård
8d87a5b7a2 Merge pull request #8762 from unknownbrackets/debugger
Add more GE debugger features
2016-05-22 22:09:39 +02:00
Unknown W. Brackets
8b5669828b Add watchlist feature to the GE debugger.
This way you can pick out items you want to watch.
2016-05-21 19:11:42 -07:00
Unknown W. Brackets
8ba14b5858 Mark Change... as the double click action. 2016-05-21 18:33:45 -07:00
Unknown W. Brackets
2cfe80ccc0 Add a basic context menu to the state list.
This allows us to toggle breakpoints on specific commands.
2016-05-21 18:32:15 -07:00
Unknown W. Brackets
916c53c859 Add render target breakpoints to GE debugger.
Including z buffer as well, hope it's not confusing.
2016-05-21 17:55:45 -07:00
Unknown W. Brackets
0b33833a70 Include Qt files in MSVC project for searching.
Sometimes we miss refactoring things in these files.
2016-05-21 09:58:24 -07:00
Henrik Rydgard
51bcb02921 Minor vulkan updates to match the latest SDK/validator 2016-05-14 16:29:40 +02:00
Henrik Rydgard
8b450c8034 Merge NativeJit.cpp/h with JitCommon.cpp/h 2016-05-01 11:39:59 +02:00
Henrik Rydgård
571b2c6b7a Merge pull request #8706 from helloimowen/master
Changed possibly incorrect return value.
2016-04-22 09:59:01 +02:00
helloimowen
a53bd5c812 Changed possibly incorrect return value.
After Windows 8, Microsoft stopped supporting GetVersionEX and
VerifyVersionInfo.
MSFT added "VersionHelperFunctions," but they aren't usable/viable at
the moment.
Related bug: https://github.com/hrydgard/ppsspp/issues/7894
2016-04-21 23:03:08 -04:00
Unknown W. Brackets
d920ffdcad Ignore upper bits of prim type.
This matches tests on what hardware does.
2016-04-10 13:11:55 -07:00
Henrik Rydgard
37616a6f95 Update the Vulkan validator workarounds to match the 1.0.8 validator... gah. 2016-04-07 23:45:38 +02:00
Henrik Rydgard
32f5930e15 Move clear handling to FramebufferVulkan, center the clear properly in non-buffered. more cleanup. 2016-03-31 00:50:50 +02:00
Unknown W. Brackets
4568affe4d Vulkan: Fix error message if backend can't load. 2016-03-24 17:03:04 -07:00
Unknown W. Brackets
aec117d8ea Vulkan: Allow resizing window/backbuffer.
Not tested much on Android.  Fixes #8656.
2016-03-21 19:45:27 -07:00
Unknown W. Brackets
2461a849f9 Correct some warnings reported by clang. 2016-03-20 23:13:28 -07:00
Henrik Rydgard
d0659f0deb No need to align vertex/index data. Will only be harmful for an upcoming optimization. 2016-03-20 19:35:03 +01:00
Henrik Rydgard
c2775d4dfa Default validation on in Debug and off in Release 2016-03-20 19:31:02 +01:00
Henrik Rydgard
1f1e679aa0 Silence another validation warning 2016-03-20 19:31:02 +01:00
Unknown W. Brackets
c770349475 Switch headless to using graphics contexts.
Vulkan doesn't work yet, needs some thin3d for the command buffer?
2016-03-20 19:31:02 +01:00
Unknown W. Brackets
82205a4660 Handle Vulkan init errors more gracefully. 2016-03-20 19:31:02 +01:00
Henrik Rydgard
76b17a4912 Revert "Replace ugly workaround with VK_LAYER_LUNARG_unique_objects which prevents handle reuse."
This reverts commit 6342c07a19d5ab410cbc233a570488214923a9f8.
2016-03-20 19:31:02 +01:00
Henrik Rydgard
b0098f7961 Replace ugly workaround with VK_LAYER_LUNARG_unique_objects which prevents handle reuse.
See https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers/issues/121
2016-03-20 19:31:02 +01:00
Henrik Rydgard
575cc890b7 Turn off annoying "debug flicker" I used to see if we were swapping buffers properly early on
Also minor logging changes, refine the false-positive debug layer check
2016-03-20 19:31:02 +01:00
Henrik Rydgard
79fd828d16 Work around what seems like a validation layer bug (trigger by scrolling
around the UI a bit)
2016-03-20 19:31:02 +01:00
Henrik Rydgard
5ca012e83d Fix a bunch of new vulkan validation layer failures. 2016-03-20 19:31:02 +01:00
Henrik Rydgard
b7b0b59e9a Update Vulkan headers to 1.0.5. Remove references to vulkan-1.lib as we load dynamically. 2016-03-20 19:31:02 +01:00
Unknown W. Brackets
c92790c5a8 Specify a useful app version when loading Vulkan. 2016-03-20 19:31:02 +01:00
Henrik Rydgard
22f47d3787 Remove redundant configuration, remove temp hack 2016-03-20 19:31:02 +01:00
Henrik Rydgard
76d8a87b2f Vulkan: Attempt at fixing dual source blending. Should work but doesn't. 2016-03-20 19:31:02 +01:00
Henrik Rydgard
d325aa2b30 Hook up Vulkan on Android, no idea if it works. Move VulkanContext to Common. 2016-03-20 19:30:11 +01:00
Henrik Rydgard
2481714a8e Load Vulkan dynamically. Fix Android build (though - Vulkan is not working on Android yet) 2016-03-20 19:30:11 +01:00
Henrik Rydgard
ca63cca9a2 WIP: Start work on getting the Vulkan code to compile for Android 2016-03-20 19:30:11 +01:00
Henrik Rydgard
52e7f06908 Add Vulkan to Win32 menu. disable gfx logging in debug by default. 2016-03-20 19:30:11 +01:00
Henrik Rydgard
b51b38f97c Switch to "Mailbox" frame submission if available, lets us go beyond 60hz for unthrottle 2016-03-20 19:30:11 +01:00
Henrik Rydgard
4063f7e0db Fill out GPU_Vulkan.cpp with what's mostly a copy of GLES_GPU.cpp 2016-03-20 19:30:11 +01:00
Henrik Rydgard
cfbecf5071 More progress 2016-03-20 19:26:41 +01:00
Henrik Rydgard
4ddca8607f Further vulkan stuff 2016-03-20 19:26:12 +01:00
Henrik Rydgard
73d6d2dc72 More vulkan in thin3d 2016-03-20 19:25:53 +01:00
Henrik Rydgard
2a71e164f5 Enable vulkan validation 2016-03-20 19:25:30 +01:00
Henrik Rydgard
2a449f78bb More vulkan fixing 2016-03-20 19:25:30 +01:00
Henrik Rydgard
c64064024d Initial vulkan code.
This was squashed from nine commits but using old versions of Vulkan.
2016-03-20 19:18:35 +01:00
Henrik Rydgård
54a37f9bb8 Merge pull request #8591 from unknownbrackets/thin3d
Use thin3d for softgpu drawing (+thin3d improvements)
2016-03-20 18:06:53 +01:00
Henrik Rydgard
58b07e00d7 Assorted fixes and cleanups. 2016-03-06 11:46:41 -08:00
Unknown W. Brackets
ef566a3adf SaveState: Clean up some constant usage. 2016-02-28 18:21:57 -08:00
Henrik Rydgard
a1bf8573f6 Better way to find the git exe for git-version-gen, thanks Unknown. 2016-02-28 23:04:46 +01:00
Henrik Rydgard
da1a04be8d Make the workqueue slightly safer. Put g_gameInfoCache on the heap.
Cherry-picked from #8592
2016-02-28 12:39:47 +01:00
Henrik Rydgard
de932b5efc Make git-version-gen work with a freshly installed 64-bit git msys.
For some reason %ProgramFiles% returns the (x86) one anyway...
2016-02-28 11:03:54 +01:00
Henrik Rydgard
6b829c9cde Safer window resize on Windows - don't updating the backbuffer size until stopped dragging.
Cherry-picked from the Vulkan branch.
2016-02-21 11:51:10 +01:00
Henrik Rydgard
8684180620 Add ppsspp-glslang as a submodule (shader compiler for future Vulkan support)
This also adds a Windows project file, for building it.
2016-02-17 21:38:35 +01:00
Unknown W. Brackets
841267c083 d3d9: Allow software rendering selection in UI. 2016-02-13 14:01:57 -08:00
Unknown W. Brackets
095624867a d3d9: Enable GPU info in D3D9 reporting. 2016-02-13 09:51:09 -08:00
Henrik Rydgard
35b6c7341b Fix a bunch of memory leaks, after enabling file+line-number memory leak tracking for the MS Debug CRT.
Few of these were serious, most were on-exit, but good to have a cleaner memory report after running.
2016-02-10 15:36:10 +01:00
Henrik Rydgard
d36a10c6c7 Fix #8529 (ability to translate Display Rotation submenu) 2016-01-30 16:49:00 +01:00
Unknown W. Brackets
2916298695 gedbg: Add scaled 16-bit z support. 2016-01-20 22:11:02 -08:00
Unknown W. Brackets
6ef97f72d2 gedbg: Show scaled depth values properly. 2016-01-19 07:23:06 -08:00
Henrik Rydgård
14fb4f2c22 Merge pull request #8446 from unknownbrackets/minor
Don't attempt pause while stepping
2016-01-18 00:54:12 +01:00
Unknown W. Brackets
e5b4051211 Don't attempt pause while stepping.
We'll just hang in that case.
2016-01-17 15:47:44 -08:00
Unknown W. Brackets
516147680c Merge pull request #8182 from LunaMoo/minor_cleaning
Move "Display Rotation" and stretching options to display layout editor.
2016-01-17 14:54:39 -08:00
Henrik Rydgard
b39206f922 Use the app cache directory on Android for the shader cache. 2016-01-17 22:15:23 +01:00
Unknown W. Brackets
d5196b44f9 Minor tweaks. 2016-01-17 09:45:55 -08:00
Henrik Rydgard
3ba911bf07 Replace some calls to fopen with File::OpenCFile (utf8). 2016-01-17 15:59:20 +01:00
Henrik Rydgard
27c71aa340 Get rid of the unused "InstallID" 2016-01-17 15:46:15 +01:00
LunaMoo
80fa2695bf Tabs can't live in space and some other corrections. 2016-01-17 12:13:15 +01:00
LunaMoo
6061ad7579 Some improvements, comments and polishing. 2016-01-17 09:21:12 +01:00
LunaMoo
e4271fe1bc Integrate stretching options into display layout editor. 2016-01-17 09:18:41 +01:00
LunaMoo
0c2efa6d44 Make sure display representation matches all cases and recreate views on window resize(this also fixes touch control layout screen). 2016-01-17 09:18:40 +01:00
LunaMoo
57c193d742 Add Display Rotation to windows menu bar. 2016-01-17 09:18:39 +01:00
Unknown W. Brackets
580a641942 gedbg: Shrink on dbl click after all.
Makes sense for this to go to the original size.
2016-01-10 10:10:43 -08:00
Unknown W. Brackets
23fc832813 gedbg: Add option to display CLUT preview.
This swaps the texture to the right.
2016-01-10 10:08:02 -08:00
Unknown W. Brackets
6ebbf2cb72 gedbg: Allow grow and shrink to fit. 2016-01-10 09:25:54 -08:00
Unknown W. Brackets
2fc296a1fb gedbg: Format a few more cmds. 2016-01-07 22:42:20 -08:00
Unknown W. Brackets
481be1cd34 Fix GL feature detection. 2016-01-06 20:26:53 -08:00
Unknown W. Brackets
48ef1ae8ca Change Win UI constants to use D3D9 not DX. 2016-01-05 23:08:20 -08:00
Unknown W. Brackets
aa0055cea7 Track the running GPU backend separate from config.
This way we can change the config directly when we want to save a new
setting, rather than having hacks to use a temp var.
2016-01-05 22:37:28 -08:00
Unknown W. Brackets
63c600d5e2 gedbg: Format flat shading. 2016-01-04 21:46:18 -08:00
Kingcom
1f5c28ca62 GEDebugger: Add option to force texture opaqueness 2016-01-03 20:50:43 +01:00
Henrik Rydgård
5bd72ea268 Merge pull request #8347 from hrydgard/graphics-context
Graphics context
2016-01-03 18:54:58 +01:00
gmvbif
63ee113af4 Added break for every switch case in DescribePixelRGBA. Please double check this. 2016-01-02 09:40:50 +03:00
Henrik Rydgard
3398288bd0 Some cleanup around input_state 2016-01-01 14:40:18 +01:00
Henrik Rydgard
15de6e6b98 GraphicsContext: Abstract away things like swapbuffers etc before adding even more backends.
Needed to prevent clutter all over the codebase.

Does not go all the way yet, goal would be a common render loop between platforms but not there yet.
2016-01-01 14:40:16 +01:00
Henrik Rydgård
716d7a38f5 Merge pull request #8292 from unknownbrackets/opengl-core
Improve VAO core profile performance
2015-12-30 22:03:04 +01:00
Unknown W. Brackets
e898043249 Remove unused variable. 2015-12-30 11:02:50 -08:00
Unknown W. Brackets
cbf149b0b4 Display types at different log levels.
Just to make errors stand out more, mainly.
2015-12-28 14:13:22 -08:00
Unknown W. Brackets
4d041c9ffe Try to add support for GL_KHR_debug.
For some reason I'm still not seeing this work in a core profile...
2015-12-28 14:13:19 -08:00
Henrik Rydgård
b117896b63 Merge pull request #8317 from unknownbrackets/minor
Minor fixes to SDL + resolution display
2015-12-28 19:46:18 +01:00
Henrik Rydgård
d5121cd974 Merge pull request #8306 from unknownbrackets/lang-fuzzy
Fuzzy match lang when user locale doesn't exist + XP support
2015-12-28 19:44:32 +01:00
Unknown W. Brackets
9995447a53 Remove an unused definition. 2015-12-27 14:56:20 -08:00
Unknown W. Brackets
6e48f907dd Support minimize and maximize state.
Fixes #6893.  Minimize is mostly useful for tooling, and maximize is a
more user-friendly way of specifying a fullscreen shortcut.
2015-12-25 19:18:32 -08:00
Unknown W. Brackets
3fd67f9199 Attempt to determine lang/country on XP.
This will sometimes give numbers, but it's closer than assuming en_US.
2015-12-25 19:14:05 -08:00
Unknown W. Brackets
4b66c2b4ec Re-enable FMA3 on MSVC2015+ builds. 2015-12-22 23:22:16 -08:00
Unknown W. Brackets
39d1dd3a01 Initialize this in case it's never used. 2015-12-20 09:28:58 -08:00
Unknown W. Brackets
40eaa00351 Oops, left this wrong while debugging. 2015-12-20 08:59:04 -08:00
Unknown W. Brackets
49780eac24 Use VAOs in vertex preview drawing. 2015-12-19 09:18:30 -08:00
Unknown W. Brackets
5fe802c4e9 Use VAOs in GE debugger drawing. 2015-12-19 09:18:29 -08:00
Henrik Rydgard
732b1239e7 Add some permission infrastructure, add an ugly button that asks you to grant STORAGE permission if necessary. 2015-12-17 22:41:50 +01:00
Unknown W. Brackets
ce23289c7e Remove some empty pointless files. 2015-11-08 08:18:41 -08:00
Henrik Rydgard
6461d6237d Windows: Remove two fairly useless shortcuts. The rendering mode one was really dangerous, and mapped to F5 which is very easy to accidentally hit when loading save states. 2015-11-05 22:08:13 +01:00
Henrik Rydgard
f3b0562bd8 Improve viewport terminology a bit. No functional change. 2015-11-04 22:03:29 +01:00
Henrik Rydgard
44be9f2a50 Move Windows GPU init code into Windows/GPU 2015-11-03 23:22:09 +01:00
Henrik Rydgard
b998131581 Move the symbol map to the heap, deallocate it when no game is running. 2015-10-31 23:01:19 +01:00
Henrik Rydgard
9168af726d Fix Windows command line build scripts. Fixes #8081 2015-10-31 13:04:49 +01:00
Unknown W. Brackets
05d5aae801 Don't change the working dir on startup. 2015-10-30 21:04:45 -07:00
Henrik Rydgard
7f4e473e8c Add new shader viewing tool 2015-10-14 18:10:21 +02:00
Henrik Rydgard
39145252e3 Windows: Add the ability to turn on GL_ARB_debug_output via a hidden config option 2015-10-11 11:52:40 +02:00
Henrik Rydgård
cda9444a16 Revert "Make PPSSPP aware of Windows 10 (mostly for the info screen)." 2015-10-10 19:07:15 +02:00
Henrik Rydgård
371e7ab880 Minor #define removal 2015-10-06 19:17:29 +02:00
Henrik Rydgard
fa50afa056 Fix git-version-gen.cmd to handle even releases (git describe outputs a simpler format). Update lang. 2015-10-04 17:21:25 +02:00
Henrik Rydgard
490d8be4df Some cleanup, enable CRT memory tracker in debug builds 2015-10-04 14:11:34 +02:00
Henrik Rydgard
eb4ca0cf81 Add a compatibility flag to revert sceAtrac to before #6976. Makes audio work in GTA again.
Hopefully we will find a better fix in the future.

Also see issue #7863.
2015-09-27 11:51:46 +02:00
Henrik Rydgard
8996f58693 Generate save state IDs for homebrew using the elf or directory name where applicable. 2015-09-25 19:27:40 +02:00
Unknown W. Brackets
e98a31ef77 Cleanup some indentation. 2015-09-24 00:00:02 -07:00
Henrik Rydgard
0f4df6c67b Add some missing _ARCH_32 and _ARCH_64 definitions to MSVC project files.
Fixes obscure crash in Moppi PSP Flower homebrew.
2015-09-23 19:30:14 +02:00
Henrik Rydgard
ec63663ad5 More consistent handling of resolution changes. Should help #7995 2015-09-23 12:25:38 +02:00
Unknown W. Brackets
5c6753e486 Correct render size on fullscreen->maximized.
We don't get a WM_SIZE event, since that is only sent on "change".  This
means we don't recalculate the client area size, so we get it wrong.

Fixes #7986.
2015-09-20 21:54:27 -07:00
Henrik Rydgard
2dcf50cf5e Fix crash toggling fullscreen from within the Settings menu.
See #7957
2015-09-20 23:57:51 +02:00
Henrik Rydgard
d746d219e1 Delete some outdated xp theme stuff 2015-09-20 21:01:19 +02:00
Henrik Rydgard
ca4ffb5fd3 Minor code cleanup 2015-09-20 20:32:56 +02:00
Henrik Rydgard
1410d7f6d5 Windows: Pause the rendering thread while switching to full screen 2015-09-20 19:45:36 +02:00