Unknown W. Brackets
fd183715ec
Vulkan: Decimate when there are many slabs.
...
This helps avoid one little texture holding onto a whole slab.
Won't change behavior when they are full, since then the cacheSizeEstimate
should be fairly high.
2018-04-06 21:42:32 -07:00
Henrik Rydgård
86966684d4
Vulkan: Remove the wrapper struct around VulkanTexture
2018-04-05 23:23:14 +02:00
Henrik Rydgård
d3164d77d4
Merge pull request #10845 from LunaMoo/SSAAflag
...
Add SSAA flag for post process shaders
2018-04-04 15:40:26 +02:00
Unknown W. Brackets
d70568abd2
GPU: Fix s8 norm with skin and morph.
...
Fixes #10851 .
2018-04-02 19:18:16 -07:00
LunaMoo
ffac542f95
Change to int to allow higher supersampling scale.
2018-04-02 13:44:28 +02:00
LunaMoo
199106cad6
Add SSAA flag for post process shaders,
...
enforces 2x auto resolution, to be used with blurry effects
Also includes a perf. friendly example using simplified gauss filter
2018-04-01 17:00:10 +02:00
Henrik Rydgård
c41273d333
When binding a framebuffer to a texcache entry, delete its texture. Should help #10823
2018-03-29 13:29:09 +02:00
Unknown W. Brackets
68930a4291
Merge pull request #10788 from hrydgard/remove-texture-update
...
Remove the remains of updating texture contents instead of recreating.
2018-03-25 12:07:08 -04:00
Henrik Rydgård
f9555da05b
When listing post-shaders, use the "name" specified in the ini as default, when looking up translations.
2018-03-25 11:53:11 +02:00
Henrik Rydgård
f967e206b8
Remove the last remains of the idea that textures can be efficiently updated instead of recreated. Accidentally fixes #10697 somehow.
...
Also this is good for terminology, no more confusion with the texture
replacement facility :)
2018-03-25 10:50:37 +02:00
aliaspider
23dae72bce
prevent reads of uninitialized memory.
2018-03-22 22:25:04 +01:00
Henrik Rydgård
648b4eac51
Shrink the vertexCount field in DeferredDrawCall to the 16 bits required.
2018-03-18 09:42:05 +01:00
Henrik Rydgård
0ee058320a
Pass new vulkan validation layers. Fix math in FindTransferFramebuffers.
2018-03-17 23:39:02 +01:00
Henrik Rydgård
614cabb115
Implement pipeline/shader cache for Vulkan, to avoid shader compile stutters on second and subsequent runs.
...
The raw pipeline cache got pretty large. Instead, store IDs like GL.
There's still a disabled option to store the pipeline cache objects.
2018-03-16 21:03:03 +01:00
Henrik Rydgård
2d33d526b8
Remove some remains of software skinning
2018-03-16 20:38:05 +01:00
Henrik Rydgård
4ee941dab1
Vulkan: Fix bug where we didn't always reset dynamic state after readbacks.
2018-03-16 15:52:43 +01:00
Henrik Rydgård
d8651fd85b
Combine the lightAngle and spotCoef float uniforms into one float2. Saves 64 bytes from the light uniform buffer, making it an even 512.
...
Probably a very small perf optimization.
2018-03-12 11:17:45 +01:00
Henrik Rydgård
b6cbbceac9
MOVUPS to be safe.
2018-03-05 16:23:07 +01:00
Henrik Rydgård
91b565ae20
Minor simplification in X86/X64 vertex decoder jit
2018-03-05 13:19:36 +01:00
Henrik Rydgård
4cf5999bc8
Move the vertTypeID calculation out of DrawEngine. Need to shorten SubmitPrim as much as possible.
2018-03-05 12:28:10 +01:00
Henrik Rydgård
f086a0915f
Further cleanup after the removal of hardware skinning.
2018-03-05 00:03:47 +01:00
Henrik Rydgård
6fa9fcefb2
Comment fixes, reindentation.
2018-03-05 00:03:47 +01:00
Henrik Rydgård
40db61a680
Remove further remains of hardware skinning. Fixes #10661
2018-03-05 00:03:47 +01:00
Henrik Rydgård
44100c6c1d
VertexLoader: Remove now-unused weights translation code
2018-03-05 00:03:47 +01:00
Henrik Rydgård
dcb773d624
Start removing support for hardware skinning.
2018-03-05 00:03:47 +01:00
Henrik Rydgård
66cbad443a
Add necessary decode functions to support morph+skin
2018-03-05 00:03:47 +01:00
Henrik Rydgård
45cfda4aa0
Small refactoring in VertexDecoderCommon
2018-03-05 00:03:47 +01:00
Henrik Rydgård
d3665a8482
Minor cleanup
2018-03-05 00:03:47 +01:00
Henrik Rydgård
07afda1db0
Add an extra check to FindTransferFramebuffers to avoid misdetecting fb blits that end up out of bounds when we perform them.
...
Affected Burnout Legends (which would crash the Vulkan device)
2018-02-28 01:01:45 +01:00
Henrik Rydgård
f5dd9c17cd
Add comment trying to clarify shutdown of GPU_GLES, restore the wipe, minor tweaks. Should help #10652
...
This reverts commit 10be0cad96 .
2018-02-27 22:04:24 +01:00
Henrik Rydgård
14c93bdc2b
Minor code/logging cleanups.
2018-02-27 19:44:11 +01:00
Henrik Rydgård
0b4b2bfe9c
Avoid the most common virtual call when possible.
2018-02-26 13:51:14 +01:00
Henrik Rydgård
feb4694acc
Unify DispatchSubmitPrim as much as possible
2018-02-26 11:33:17 +01:00
Henrik Rydgård
967018b7f8
Unify Execute_LoadClut
2018-02-26 11:32:02 +01:00
Henrik Rydgård
23980065ba
Unify all the DrawEngine::SubmitPrim
2018-02-26 11:07:30 +01:00
Henrik Rydgård
78449ce675
Merge pull request #10624 from unknownbrackets/texcache
...
TexCache: Decimate CLUT variants more often
2018-02-18 22:02:18 +01:00
Unknown W. Brackets
e97046da4e
TexCache: Decimate aggressively with many variants.
...
It should be safe to decimate after fewer frames with a threshold like
this.
2018-02-18 12:29:14 -08:00
Unknown W. Brackets
d61fd5f6a6
TexCache: Decimate CLUT variants more often.
...
When creating a new texture, we determine if it has CLUT variants and
decimate more often.
2018-02-18 12:29:01 -08:00
Henrik Rydgård
7421f2aff6
Postprocessing: Fix bug where scissor cut off the image if render resolution > display resolution
2018-02-12 14:10:54 +01:00
Henrik Rydgård
3c93eaf164
GL: Fix clearing alpha on stencil uploads.
2018-02-10 17:18:18 +01:00
Henrik Rydgård
625595c6cc
For some reason we use DrawActiveTexture in the GL stencil stuff, don't want to disable stencil unconditionally..
2018-02-08 16:59:03 +01:00
Henrik Rydgård
86cfc411a4
Remove the confusing "DisableState" across the codebase
2018-02-08 16:27:36 +01:00
Henrik Rydgård
982a1710ae
gl-render-manager: Fix postprocessing shaders. Fixes #10566 . Live switching is broken though for some reason.
2018-01-31 17:23:24 +01:00
Unknown W. Brackets
f6260c75c9
GLES: Reset blend state on clear.
...
Because now that resets blending parameters.
2018-01-27 15:10:17 +01:00
Henrik Rydgård
ccdb4d186d
gl-render-manager: Fix HW tesselation. Remove 1D texture support, likely no benefit.
2018-01-27 15:10:17 +01:00
Unknown W. Brackets
4f1b8d80a9
GLES: Bind texture on MakePixelTexture().
...
This is currently necessary because callers expect it. Also, move inside
render passes.
2018-01-27 15:10:17 +01:00
Henrik Rydgård
5c7c7ce192
Move GL sampler state tracking into GLRenderManager/QueueRunner.
2018-01-27 15:10:17 +01:00
Henrik Rydgård
43ebbbcdb6
More state dirtying, a comment
2018-01-27 15:10:17 +01:00
Henrik Rydgård
542f9f9ef1
Assorted cleanup
2018-01-27 15:10:17 +01:00
Henrik Rydgård
63b9140ebf
Rip out async readbacks from FramebufferManagerGLES. They should be implemented in GLQueueRunner, differently.
2018-01-27 15:10:17 +01:00