Henrik Rydgård
63331fd6d1
Remove DeleteTexture function, only made the code less clear
2026-07-18 12:08:50 +02:00
Henrik Rydgård
ee1314f803
Add new TexCache logging channel
2026-07-18 11:57:56 +02:00
Henrik Rydgård
f3a5b2dd18
Correct bugs in the secondary texture cache
2026-07-18 11:57:48 +02:00
Henrik Rydgård
cff09041c9
Completely rework the flow in TextureCacheCommon::ApplyTexture
2026-07-18 11:57:48 +02:00
Henrik Rydgård
b9b2b2b61e
Reindent some code, do checks in a more logical order
2026-07-18 11:57:48 +02:00
Henrik Rydgård
1ffdc52111
Remove another "next" variable, cleanup
2026-07-18 11:57:48 +02:00
Henrik Rydgård
3b58242063
More cleanup
2026-07-16 20:54:58 +02:00
Henrik Rydgård
ff89e4da4d
Simplify
2026-07-16 20:38:27 +02:00
Henrik Rydgård
31c32c0ee0
Remove the "nextFramebufferTexture_" variable
2026-07-16 20:30:01 +02:00
Henrik Rydgård
40bce17f53
Some cleanup
2026-07-16 20:27:44 +02:00
Henrik Rydgård
130fad6876
Split out a function to finish up binding of framebuffers
2026-07-16 20:15:51 +02:00
Henrik Rydgård
0528646ea3
Invert the relationship between the two functions
2026-07-16 19:08:18 +02:00
Henrik Rydgård
a4b4489d30
Move code around
2026-07-16 19:08:18 +02:00
Henrik Rydgård
e81055db16
Remove the need to call SetTexture() externally.
2026-07-16 18:32:47 +02:00
Henrik Rydgård
92ec6a992b
Remove "pixelMapped" from gstate_c.
2026-07-16 17:45:22 +02:00
Henrik Rydgård
6f4f0c41b4
Split ApplyTexture into ApplyTexture and ApplySampler
2026-07-16 17:45:22 +02:00
Henrik Rydgård
2e012b8966
Unify the "BindSampler" function between the backends
2026-07-16 17:45:22 +02:00
Henrik Rydgård
66014870d2
Remove unnecessary "DirtyLastShader" mechanism.
2026-07-16 15:47:59 +02:00
Henrik Rydgård
57e6bafb62
Remove largely ineffective and nearly not functional "low memory mode". Unlikely to save us.
2026-07-16 15:28:40 +02:00
Henrik Rydgård
672b549109
Make GetFramebufferSamplingParams a loose function.
2026-07-16 15:28:33 +02:00
Henrik Rydgård
d2ae8af2bf
Start splitting apart Texture vs Sampler binding code
2026-07-16 15:03:23 +02:00
Henrik Rydgård
615815e9ab
Minor code cleanup
2026-07-16 15:03:23 +02:00
Henrik Rydgård
ea95eb420d
Clean up GetFramebufferSamplingParams
2026-07-16 15:03:20 +02:00
Henrik Rydgård
c278fdf5a3
Rename some vars, move a function from header to cpp
2026-07-16 15:03:20 +02:00
Henrik Rydgård
90c48671d7
D3D11: Remove support for BGRA textures and preferred framebuffer formats
2026-07-03 16:20:22 +02:00
Henrik Rydgård
1b2f87bf1a
Rename GPUgstate to GEState
2026-07-02 20:34:09 +02:00
Henrik Rydgård
ebc564a465
Centralize handling of another GPU flag
2026-06-27 13:50:03 +02:00
Henrik Rydgård
64e55324c7
Fix initialization bug in TextureCacheCommon
2026-06-14 14:02:09 +02:00
Henrik Rydgård
536c4ace73
Fix the ugly line on Ridge Racer lens flares
...
Turns out we were not updating one column and row of the lens flare
image, which is done in a strange way by the game (CLUT in framebuffer).
Some math of the game is a little off and for some reason it's not
noticeable on hardware.
2026-06-14 01:09:33 +02:00
Henrik Rydgård
7c1f052b87
ImGe debugger fix
2026-06-13 17:09:06 +02:00
Henrik Rydgård
d6e0dd1478
Always enable the secondary texture cache
2026-06-13 13:34:41 +02:00
Henrik Rydgård
40a345bff8
Fix a filtering issue, enable this for Fushigi no Dungeon 4.
2026-06-12 23:52:50 +02:00
Henrik Rydgård
484b94c3f3
Build and warning fixes
2026-06-12 17:28:52 +02:00
Henrik Rydgård
f3e590b059
Experiment with a compat flag that forces shader depal
2026-06-12 12:19:17 +02:00
Henrik Rydgård
87cc608df1
Add the necessary logic to use in-shader CLUT lookups for regular textures
2026-06-11 12:42:16 +02:00
Henrik Rydgård
4f925fa5f2
Minor code cleanup
2026-06-11 11:59:00 +02:00
Henrik Rydgård
0bf1d12053
Prepare for shader depal (CLUT palette lookup) for ordinary textures
2026-06-11 11:58:58 +02:00
Henrik Rydgård
d33425d01d
Split out the CLUT texture cache from "TextureShaderCache"
2026-06-11 10:57:30 +02:00
Henrik Rydgård
f034cb45bb
Unify UpdateCurrentClut between D3D11 and Vulkan (GLES is still different)
2026-06-11 10:40:21 +02:00
Henrik Rydgård
63a51dc6c2
Minor code cleanup
2026-06-10 15:10:03 +02:00
Henrik Rydgård
83d82dcf66
Shader depal: Don't generate a big switch in the shader, generate specialized shaders instead.
2026-06-10 12:22:11 +02:00
Henrik Rydgård
9c9e709bfa
Restore and plug back in some of the texture invalidation logic. Fixes GT, not much other impact.
2026-06-09 23:49:54 +02:00
Henrik Rydgård
ce7da78b17
Invalidate texture hashes on readbacks
2026-06-09 23:49:54 +02:00
Henrik Rydgård
5691440442
Clean out some more stuff we don't need anymore
2026-06-09 23:49:54 +02:00
Henrik Rydgård
1781f693b5
Implement the new SyncDomain concept for texture hashing, remove minihash
2026-06-09 23:49:54 +02:00
Henrik Rydgård
36bdde68f9
Delete the "Lazy texture cache" option
2026-06-09 23:49:54 +02:00
Henrik Rydgård
a38c52601c
Turn TexCacheEntry::TexStatus into an enum class
2026-06-09 11:25:51 +02:00
Henrik Rydgård
7ced074154
Rearrange the texture status flags, rename Full alpha to Solid alpha for textures
2026-06-09 11:25:50 +02:00
Henrik Rydgård
ec6c7b08f5
Add a common TextureAlpha enum, replacing CheckAlphaResult and ReplacedTextureAlpha.
2026-06-09 11:25:50 +02:00
Henrik Rydgård
fdcf923c75
TexCache: Stop bitpacking the hash status into the status flags
2026-06-09 11:25:50 +02:00