Unknown W. Brackets
82a7a26409
GPU: Look up replaced filtering options.
2021-02-27 17:17:21 -08:00
Henrik Rydgård
2f3bc2d373
Merge pull request #14056 from unknownbrackets/debugger-mem
...
Track memory allocations and writes for debug info
2021-02-21 10:18:11 +01:00
Unknown W. Brackets
557bf0d963
TexCache: Check for videos rendered as slices.
...
In a few places, we were checking only the start address of the video.
2021-02-20 20:59:04 -08:00
Henrik Rydgård
aec37e8bb4
Only consider the actual PPGe texture in kernel ram reliable.
...
It seems some Chinese patches like to allocate kernel space for
textures.
(On that note, we should probably allocate our texture elsewhere... in
case it takes up too much space).
2021-02-19 09:53:55 +01:00
Unknown W. Brackets
10a77d29ab
Debugger: Track texture usage too.
2021-02-15 15:01:23 -08:00
Unknown W. Brackets
ae474f5f18
GPU: Correct some field shadowing.
2021-02-15 12:00:29 -08:00
Unknown W. Brackets
f32f89dd90
Global: Remove some unused variables.
2021-02-15 11:59:45 -08:00
Henrik Rydgård
6df37b86bc
Merge pull request #14076 from unknownbrackets/zhp-map
...
GPU: Force texture invalidation for ZHP minimap
2021-02-15 11:33:32 +01:00
Unknown W. Brackets
abfeacef61
GPU: Fix a type comparison warning.
2021-02-14 10:30:10 -08:00
Unknown W. Brackets
ec3bfe08ae
GPU: Force texture invalidation for ZHP minimap.
...
See #14069 , our texture hash misses this change.
2021-02-07 09:02:28 -08:00
Henrik Rydgård
559ccd9f33
Minor cleanups
2020-12-14 20:06:06 +01:00
Henrik Rydgård
7061993c8f
VK: Restore the ARM Mali Z hack that got lost in the refactor somehow.
...
Warning fixes.
2020-12-14 19:54:39 +01:00
Henrik Rydgård
0c66f6c6d0
Assorted drive-by code cleanup
2020-12-13 00:20:47 +01:00
Henrik Rydgård
575ae376a9
Don't try to texture from depth if not supported by backend. Works around #13621
2020-11-10 23:36:33 +01:00
Henrik Rydgård
9105249901
Add compat flag for reinterpret shader, also disable on platforms that can't support it yet
2020-11-08 11:32:55 +01:00
Henrik Rydgård
981d0a2abe
Reinterpret the data when binding a framebuffer with a different 16-bit format.
...
Car reflections in Outrun are better (see #11358 ) but have some
blue/yellow color garbage that will need a different fix.
2020-11-08 11:32:55 +01:00
Henrik Rydgård
3e6d121016
Partially revert "Clarify some logic, improve framebuffer names"
...
I screwed up a couple things.
Fixes #13619
This reverts commit 32eb882bc6
.
2020-11-03 11:39:12 +01:00
Henrik Rydgård
32eb882bc6
Clarify some logic, improve framebuffer names
2020-11-02 10:02:49 +01:00
Henrik Rydgård
b8e8325888
Fix text issue in God Eater Burst. Forgot that games can allocate texture in volatile memory too.
...
We considered any texture from kernel memory "reliable", which is wrong
since games can allocate out of the upper half of kernel RAM, which is
called "volatile" memory.
Fixes issue #13511
2020-10-14 00:09:08 +02:00
Henrik Rydgård
821817e6d4
Move the profiler to Common
2020-10-04 11:42:16 +02:00
Henrik Rydgård
6fb0e92de3
Fix issue with duplicate texture dumps.
...
Fixes #13487 .
2020-09-29 00:30:08 +02:00
Henrik Rydgård
4cfafb4605
Some GPU code cleanup. Disable some unnecessary reporting.
2020-09-24 23:01:23 +02:00
Henrik Rydgård
a9fef066b5
Reduce string allocations in Vulkan memory allocator
2020-09-24 00:32:52 +02:00
Henrik Rydgård
5ac6a9b3fd
Fix slowdowns due to careless use of auto
2020-09-22 21:24:16 +02:00
Henrik Rydgård
3e3a40da8c
Mark the PPGe font texture as reliable to avoid hashing it.
2020-09-22 21:13:30 +02:00
Henrik Rydgård
ea2d2ec434
Remove unused lastBoundTexture from Vulkan
2020-09-21 08:57:19 +02:00
Henrik Rydgård
45f8b2721e
Comment fixes. Minor tweak.
2020-09-21 08:56:58 +02:00
Henrik Rydgård
dcd33a4692
Remove redundant bind on GL texture build. Improve dirtying of texture state.
2020-09-21 08:56:58 +02:00
Henrik Rydgård
f288e64679
Simplify NotifyFrameBuffer - only needs one call for both "channels" now.
2020-09-20 22:09:29 +02:00
Henrik Rydgård
3093b9c7bf
Share GPUS stats formatting code between the backends (easier to add new stats)
2020-09-20 22:09:25 +02:00
Henrik Rydgård
bdcf2c5cff
Have to invalidate "lastBoundTexture" when binding framebuffers as texture.
...
Fixes parts of #13431 for D3D11 at least.
Will probably soon get rid of this concept, it's only useful in D3D9/11 and
those are probably not gonna lose much perf if we remove this minor
state caching.
2020-09-20 20:44:18 +02:00
Henrik Rydgård
707e9cf7ac
Remove some unnecessary function parameters, improve some comments.
2020-09-20 20:44:18 +02:00
Henrik Rydgård
74bc9785d9
Don't over-invalidate textures when a framebuffer is created or modified.
...
Should help #13431 .
2020-09-16 01:03:56 +02:00
Henrik Rydgård
bf55986a7a
Delete TexCacheEntries that get replaced by a framebuffer
2020-09-16 01:03:56 +02:00
Henrik Rydgård
7630fae4b9
Fix bug in new framebuffer code, reducing unnecessary texture invalidations.
...
Improves the performance issue in #13431
2020-09-16 01:03:56 +02:00
Henrik Rydgård
dce7dde5e6
More moves
2020-09-14 00:04:39 +02:00
Henrik Rydgård
f3ce685b0e
Also move video filtering override.
2020-09-14 00:04:39 +02:00
Henrik Rydgård
0e464a61e0
Move overrides to the end of GetSamplingParams
2020-09-14 00:04:39 +02:00
Henrik Rydgård
a222b2017e
Switch to a returned value and rename these functions.
2020-09-14 00:04:39 +02:00
Henrik Rydgård
5190f85c8e
Unify/centralize SetFramebufferSamplingParams. Some include cleanup.
2020-09-14 00:04:39 +02:00
Henrik Rydgård
46b3fb0821
Workarounds for D3D9's very limited mip level control.
2020-09-14 00:04:39 +02:00
Henrik Rydgård
d5717c835f
Comment fix
2020-09-13 22:51:22 +02:00
Henrik Rydgård
854ff7c5f1
Improve readability of the boolean expression mess in GetSamplingParams
2020-09-13 22:20:28 +02:00
Henrik Rydgård
a4c071261b
TextureCacheCommon::UpdateSamplingParams no longer takes a TexCacheEntry
2020-09-13 16:40:37 +02:00
Henrik Rydgård
cea35007ae
Always use a linear filter for video, unless forcing NEAREST filtering.
2020-09-13 16:40:37 +02:00
Henrik Rydgård
c9693ee061
Texfilter: Rewrite some checks in GetSamplingParams to be faster and more understandable.
2020-09-13 16:40:37 +02:00
Henrik Rydgård
5d5e5fe6ff
Remove some outdated debugging code (SetDebugTexture)
2020-09-13 12:18:38 +02:00
Henrik Rydgård
a28954d311
Further simplify framebuffer matching.
2020-09-13 09:03:31 +02:00
Henrik Rydgård
f6db1c2b01
Show how many times we evaluate framebuffers per frame in debug statistics.
2020-09-12 15:37:03 +02:00
Henrik Rydgård
61d792e27a
Re-fix BOF III - accidentally lost the texaddr offset
2020-09-12 15:25:54 +02:00