Henrik Rydgård
e1b4a9175a
Add handling for Android content URIs to VFSReadFile, fixing savestate thumbnails.
2021-07-19 17:34:51 +02:00
Henrik Rydgård
3595e092c9
Turn off all 16-bit formats if B5G6R5 format is not available.
...
Works around #14602 for now.
2021-07-10 23:33:46 +02:00
Henrik Rydgård
4c9b5ada0f
Address feedback
2021-07-09 21:09:44 +02:00
Henrik Rydgård
cde3889866
Android buildfix
2021-07-09 21:09:44 +02:00
Henrik Rydgård
df6abe83a3
Support depth clamping in OpenGL where available.
...
Should make support for depth texturing quite easy.
Unfortunately, this extension does not exist on OpenGL ES. There we'll
have to use ugly tricks with gl_FragDepth if we want this.
2021-07-09 21:09:44 +02:00
Unknown W. Brackets
7f8144494e
Draw: Use constants for texture slots.
...
GL actually had a check for 16 but then an array for 8. This should make
it easier to figure out if we ever hit those limits.
2021-06-12 14:10:57 -07:00
Unknown W. Brackets
17071e7fec
Postshader: Add uniform for delta since last frame.
...
Useful mainly when using previous frame output.
2021-06-12 11:27:26 -07:00
Unknown W. Brackets
7bbaae492b
Postshader: Let shaders use the previous frame.
...
This is useful for i.e. simulating the slow update speed of the PSP's LCD
screen, but could in theory be used for other effects.
2021-06-12 10:54:36 -07:00
Unknown W. Brackets
1ca1a8bbeb
Postshader: Correct sampler binding translation.
2021-06-12 10:14:44 -07:00
Unknown W. Brackets
44d2d8a2a3
Draw: Assert sampler bindings are in valid ranges.
2021-06-12 10:10:42 -07:00
Unknown W. Brackets
e869a3979b
Draw: Centralize funcs in ColorConv.
2021-05-01 11:20:05 -07:00
Unknown W. Brackets
915265e531
Draw: Optimize GL A1R5G5B5 conversion.
...
This seems to be enough to trigger SIMD in x86_64 at least.
2021-05-01 11:20:05 -07:00
Unknown W. Brackets
8a8328c431
Common: Move ColorConv to a more appropriate place.
2021-05-01 11:20:05 -07:00
Henrik Rydgård
f4a6d291e1
Common: Capitalize setCurrentThreadName().
2021-04-30 23:02:36 -07:00
Henrik Rydgård
1b13badeb4
Move remaining FileUtil functions into the File namespace.
2021-04-25 20:38:22 +02:00
Unknown W. Brackets
3c09b5c010
GLES: Always use fragColor0 on GL 3.0+.
2021-04-10 16:26:39 -07:00
Unknown W. Brackets
60690109f0
GLES: Handle GLSL 1.30/1.40 better.
...
Was causing errors for people using older GL.
2021-04-10 13:32:13 -07:00
Unknown W. Brackets
5119d79082
Build: Remove IOS define.
2021-03-02 21:04:03 -08:00
Unknown W. Brackets
13ec384dbe
Build: Explicitly include ppsspp_config.h.
...
This adds it to all files that use it. Not all our builds include the
file.
2021-03-02 21:04:03 -08:00
Unknown W. Brackets
e7a3faaa8c
Windows: Stop ignoring all deprecated warnings.
2021-02-18 08:56:36 -08:00
Unknown W. Brackets
fe9870bf37
Draw: Auto ref/release bound textures/samplers.
2021-02-16 21:48:43 -08:00
Unknown W. Brackets
e85a8b0f5b
Global: Cleanup class init order warnings.
2021-02-15 11:59:45 -08:00
Unknown W. Brackets
4a33b5d4e2
D3D11: Fail if uniform buffer create fails.
2021-02-15 11:59:45 -08:00
Unknown W. Brackets
f32f89dd90
Global: Remove some unused variables.
2021-02-15 11:59:45 -08:00
Henrik Rydgård
9b13220f49
Merge pull request #13864 from unknownbrackets/vulkan-amd
...
Vulkan: Remove #10097 hack for newer AMD drivers
2021-02-15 16:31:49 +01:00
Unknown W. Brackets
9d22297a90
Windows: Use CommonWindows more consistently.
...
Also, make sure WinSock2.h is included beforehand where it's needed.
2021-02-14 10:30:10 -08:00
Unknown W. Brackets
6247e4d0ee
Windows: Add some missing override specifiers.
2021-02-14 10:30:10 -08:00
Unknown W. Brackets
2c165c9b6d
Windows: Fix improper case or missing includes.
...
As per mingw errors/warnings.
2021-02-14 10:30:10 -08:00
Henrik Rydgård
c8dfa091fa
Add some checks trying to prevent creation of 0 sized textures.
...
Saw a crash log with a driver crash in CreateTexture...
2021-02-13 11:33:15 +01:00
Henrik Rydgård
d23bef1525
Merge pull request #14129 from unknownbrackets/gpu-copyimage
...
GPU: Force reinterpret off without copy image
2021-02-13 07:38:52 +01:00
Unknown W. Brackets
5aa3e3180f
GPU: Force reinterpret off without copy image.
...
Also, assert we have it when using it, since there's ifs.
2021-02-12 20:40:21 -08:00
Henrik Rydgård
c76fe9cec4
Assorted paranoid cleanups, inspired by #14082
2021-02-10 00:20:52 +01:00
Henrik Rydgård
c48bdf7efc
Vulkan: Fix image layout issues after compute shader uploads.
...
We're already in GENERAL so probably not worth to transfer to DST just
to do even more transfers due to the silliness of GenerateMip.
I'm planning to rework the whole texture upload thing to be far more
optimal with some kind of TextureUploadManager
Fixes #13987
2021-01-30 23:09:42 +01:00
Henrik Rydgård
1eeebccd04
Fix Apple gpu detection
2021-01-30 18:31:39 +01:00
Henrik Rydgård
c251d69eab
Minimize the Adreno shader compiler bug repro test
2021-01-30 10:21:14 +01:00
Unknown W. Brackets
6798d5379a
GLES: Remove direct khrplatform.h header include.
...
Shouldn't be needed anymore, was a hack for Nokia. See #13978 .
2021-01-25 18:42:24 -08:00
Henrik Rydgård
ca50077341
More GPU test improvements
...
* Fix the flat test. Unfortunately doesn't repro the bug :(
2021-01-17 18:04:00 +01:00
Unknown W. Brackets
6ca9acf94b
Vulkan: Delete only created swapchain images.
...
We do other null checks here, same reason. Create may have failed.
2021-01-16 20:55:34 -08:00
Henrik Rydgård
3f01cbb98c
Initialize/Deinitialize the shader translation system once globally.
...
Fixes #13839 .
2021-01-04 23:51:34 +01:00
Henrik Rydgård
1acbfb1a52
Never pass a null into QueueDeleteImageView (got a report of that).
...
Went through them all to see where this could happen, can't find any
other path than this, though it's strange.
2021-01-03 21:46:12 +01:00
Henrik Rydgård
f0bb504bb1
Postshader: Improve error reporting.
2021-01-03 19:15:05 +01:00
Unknown W. Brackets
ca0763c7f1
Vulkan: Remove #10097 hack for newer AMD drivers.
...
Fixes #10643 . Assumes affected drivers only supported 1.0 due to year 1.1
supporting drivers started coming out.
2021-01-03 09:24:14 -08:00
Unknown W. Brackets
cd6be61d98
Common: Correct some formatting type mismatches.
2021-01-01 15:43:13 -08:00
Henrik Rydgård
a272deeba3
Postprocessing shader, GL: Fix shader version bug. Fixes #13779
2020-12-19 23:45:31 +01:00
Conrad Kreyling
e3540ccd17
First pass on using Display KHR, needs proper init flags
2020-12-16 13:15:39 -05:00
Henrik Rydgård
7de7680416
Apple driver bug workaround. See issue #13451
2020-12-16 14:39:08 +01:00
Henrik Rydgård
2dcfa63498
GL: Detect Apple GPUs as a category
2020-12-14 22:10:18 +01:00
Henrik Rydgård
32c9728c0c
Some cleanups in GL feature and shader language detection.
...
Gets rid of many wrong or bad checks for IsCoreContext.
2020-12-14 19:46:11 +01:00
Henrik Rydgård
f3ebd6553d
Turn off vertex range culling in bezier/spline calls.
...
When we do lower res tess than the real PSP, we cant trust the game to not cause range culling to kick in.
Fixes #11692
2020-12-13 16:04:16 +01:00
Henrik Rydgård
1c925e705f
Merge pull request #13760 from hrydgard/fix-dirt-graphics
...
Fix car lighting issues in DiRT 2.
2020-12-13 09:19:34 +01:00