Unknown W. Brackets
49f6c461ad
Reporting: Fix some header includes.
...
Particularly in Common, avoid including Core/Reporting.h.
2022-12-27 14:58:20 -08:00
Unknown W. Brackets
a7b7bf7826
Global: Set many read-only params as const.
...
This makes what they do and which args to use clearer, if nothing else.
2022-12-10 21:13:36 -08:00
Henrik Rydgård
331d024a8c
Add a flags parameter to InvalidateCachedState and rename it Invalidate.
...
Also rename the old InvalidationFlags enum to InvalidateCallbackFlags.
2022-12-01 19:15:38 +01:00
Henrik Rydgård
524e92374f
Use arrays more consistently.
2022-10-27 11:05:59 +02:00
Henrik Rydgård
91259aaad7
Always use array textures for framebuffers in Vulkan for simplicity.
2022-10-27 11:05:58 +02:00
Henrik Rydgård
80e1db07a7
Minor ShaderWriter refactor, prep for later changes
2022-10-24 17:45:18 +02:00
Henrik Rydgård
ecf2797173
Minor refactor of ShaderWriter flags. Extracted from the stereo PR
2022-10-23 21:57:01 +02:00
Unknown W. Brackets
aee2ad46a2
GPU: Verify generated shader buffer length.
...
Hardware tessellation + uberlighting + clamp was exceeding the buffer,
causing memory corruption. Let's try to catch it, but also increase
buffers to be safe.
2022-10-05 21:41:09 -07:00
Henrik Rydgård
78ab013914
Shouldn't 'floor' there
2022-09-21 18:37:40 +02:00
Henrik Rydgård
94ae0fabfa
CLUTs can be loaded from small rectangular textures. Need to linearize.
...
Fixes #8406 , although technically, we should wrap by bufw, not the
texture width.
2022-09-21 18:33:15 +02:00
Henrik Rydgård
347f7c4e5a
Vulkan: Improve tagging of pipelines for debugging purposes
2022-09-08 00:47:22 +02:00
Henrik Rydgård
cddc612f6d
Extend lifetime of ShaderModule objects since we might need to recreate pipelines for different render passes
2022-09-08 00:38:32 +02:00
Henrik Rydgård
c80245af91
OpenGL graphics fixes
2022-08-27 19:37:28 +02:00
Henrik Rydgård
3c5ec25f61
Initial implementation of 32/16-bit color reinterpret blits.
2022-08-26 15:51:25 +02:00
Henrik Rydgård
7cba231e58
Finish the depal refactoring.
...
Needed for an upcoming change (since this lets us use the Draw2D
uniform mechanism in depal shaders).
2022-08-26 15:47:29 +02:00
Henrik Rydgård
586da08820
Merge pull request #15895 from unknownbrackets/gpu-minor
...
GPU: Correct Draw2D::DeviceRestore()
2022-08-24 11:50:42 +02:00
Henrik Rydgård
bd674c47b6
OpenGL: Fix regular depal (shader depal still worked) that broke recently
2022-08-24 11:01:57 +02:00
Unknown W. Brackets
47b7305bf5
GPU: Correct Draw2D::DeviceRestore().
2022-08-23 20:07:53 -07:00
Henrik Rydgård
fc81b76b98
Vulkan: Very minor chnages after checking Best Practices with new validation layer
2022-08-23 23:55:53 +02:00
Henrik Rydgård
5084743bbb
Use Draw2D for depal shaders (except the actual blit, for now)
2022-08-23 11:21:40 +02:00
Henrik Rydgård
60e129d88e
Break out Draw2D in a class
2022-08-23 11:12:23 +02:00
Henrik Rydgård
65e4e249ec
More Draw2D refactoring
2022-08-23 11:12:23 +02:00
Henrik Rydgård
d1336fe15f
Small Draw2D refactor
2022-08-23 08:37:44 +02:00
Henrik Rydgård
8e7cf596b6
Address more feedback, cleanup scale parameter
2022-08-21 09:58:58 +02:00
Henrik Rydgård
9cc8cfaa08
Use a DX9-compatible method to pass texwidth and height. the effect doesn't work on DX9 yet though.
2022-08-21 09:58:58 +02:00
Henrik Rydgård
ca24f1b9aa
Fixes for D3D11
2022-08-21 09:58:58 +02:00
Henrik Rydgård
e6b60026d1
Fix graphics in Ratchet & Clank. WIP
2022-08-21 09:58:58 +02:00
Henrik Rydgård
97dbba0ec3
Minor fixes. Everything seems fine now.
2022-08-20 08:29:33 +02:00
Henrik Rydgård
5d8fe4c2a8
Implement copying color to depth on load. However, weird stuff is happening..
2022-08-20 08:29:33 +02:00
Henrik Rydgård
bd6f79e473
Fix the raster depth blit again, which I recently broke.
2022-08-17 16:52:49 +02:00
Henrik Rydgård
a7e388168d
Typo fix
2022-08-17 14:33:38 +02:00
Henrik Rydgård
35a1ca064a
Refactor 2D pipeline creation
2022-08-16 19:27:46 +02:00
Henrik Rydgård
1e57a358b8
thin3d: Properly AddRef and Release shader modules from the pipeline in backends that need it
2022-08-16 15:10:48 +02:00
Henrik Rydgård
31fe0fc39e
Remove some unnecessary bool returns.
2022-08-16 11:23:34 +02:00
Henrik Rydgård
ccdb1f7330
Move out the reinterpret stuff to ReinterpretFramebuffer.cpp. Draw2D refactor.
2022-08-16 11:11:59 +02:00
Henrik Rydgård
79ee532609
Fix feature checks
2022-08-09 20:05:44 +02:00
Henrik Rydgård
252550fbd2
Enable framebuffer depth blits through raster. Fixes games like Jeanne D'Arc on D3D9.
2022-08-09 20:00:32 +02:00
Henrik Rydgård
83fd8a2fd8
Convert depal shaders to use the ShaderWriter. Add tests for depal shaders.
2022-08-09 15:32:27 +02:00
Unknown W. Brackets
b87854bc66
GLES: Correct semantic name for Draw2D.
...
Draw hardcodes the names. Fixes #15799 .
2022-08-06 22:13:03 -07:00
Henrik Rydgård
0f9bf47429
Reimplement filtering in DrawActiveTexture
2022-08-03 14:12:55 +02:00
Henrik Rydgård
6ca47076e7
Delete the Vulkan implementation of DrawActiveTexture, fixups to shader gen
2022-08-03 14:12:55 +02:00
Henrik Rydgård
1d3075566f
Move to common (todo: merge with above)
2022-08-03 14:12:55 +02:00
Henrik Rydgård
d55c4a3456
Convert the D3D11 DrawActiveTexture to thin3d
2022-08-03 14:12:55 +02:00
Henrik Rydgård
59b3df0643
Draw2D
2022-08-03 14:12:55 +02:00