TJnotJT
383403fb01
GS:VK: Don't enable second output color in PS when using ROV.
2026-11-29 03:24:18 +01:00
TJnotJT
8daa367ef0
GS:VK: Add DS as RT support.
2026-11-13 14:56:58 +01:00
lightningterror
5675313c6d
GS/Shaders: Disable unused cas functions.
...
Gets around intel specific driver bugs.
2026-10-23 15:26:42 +02:00
SternXD
ac0d905587
GS/FullscreenUI: Blur the game background behind menus
...
Signed-off-by: SternXD <stern@sidestore.io >
2026-10-23 12:46:22 +02:00
lightningterror
a77a079031
GS/Shaders: Fix up a few more types mismatch.
...
Mesa 20 was complaining.
2026-10-13 20:00:50 +02:00
TJnotJT
deb23b0d8d
GS:GL: Use uvec4 for color vertex input.
...
For uniformity with VK.
2026-10-06 23:30:57 +02:00
TJnotJT
9861b15419
GS:HW: Denormalize RT color when shuffling while blending.
2026-09-26 23:36:42 +02:00
lightningterror
45ba57032d
GS/Shaders: Fix up types mismatch.
...
Causes issues on gl, change dx/vk for consistency.
2026-09-26 20:45:34 +02:00
lightningterror
7372a44101
GS/GL: Drop requirement for GL_ARB_gpu_shader5.
...
Emulate it, use the dx11/12 shader which does the same.
2026-09-26 20:45:34 +02:00
lightningterror
9c1bea4ab6
GS: Switch CAS from compute shader type to pixel shader type.
...
Depending on the gpu/driver in some situations it can be a little faster or a little slower. Usually faster on igpus and slower on dgpus, but we want to prioritize igpus since they are on the lower end.
GL: Support has been extended to older hardware GL version 3.3.
Drop requirement of GL_ARB_gpu_shader5, emulate bitfieldExtract and bitfieldInsert in the cas shader instead.
Make GL_ARB_shading_language_packing as a fallback when gl core 4.2 is not available.
DX11: Enable on feature level 10.
DX12/VK co author port by TJnotJT.
Metal co author port by TellowKrinkle.
2026-09-26 15:25:56 +02:00
lightningterror
c22f627f0a
GS/Shaders: Fix aa1 on haswell dx11/12.
...
Intel Haswell seems to be having issues on dx11/12 with running the bfi instruction in this specific case, so let's use an alternative that gives the same result, note this is only broken on Haswell, Ivy Bridge and Skylake are fine, the issue appears when running the D3D compiler with optimizations, running with D3DCOMPILE_SKIP_OPTIMIZATION is fine with bfi.
2026-09-18 12:25:32 +02:00
TheLastRar
7d40829ba4
GS/HW: Fix DirectX Shader Compiler type warning in CAS
2026-09-18 08:24:58 +02:00
TJnotJT
77cfac7dbe
GS:HW: Do ROV channel masking with FBMask.
2026-09-04 11:39:30 +02:00
TJnotJT
bd9b6daaad
GS:HW: Reduce primid max value.
...
Large values may cause errors in primid DATE on Mesa OpenGL.
2026-09-04 01:37:00 +02:00
TJnotJT
9120e6fb6a
GS:HW: Allow dumping PrimID texture with RT dumping.
2026-09-04 01:37:00 +02:00
refractionpcsx2
3d9fea596d
GS/HW: Update depth conversion shader to floor value
2026-09-03 17:25:12 +02:00
lightningterror
fe55f87289
GS/VK: Remove undefined unused shader macro.
2026-07-31 17:29:28 +02:00
TJnotJT
8510ec29ba
GS/DX: Fix typo with primid init output.
2026-07-12 21:20:28 +02:00
TJnotJT
eb5e3fcd13
GS/HW: Make all vertices the same color in certain flat shading cases.
...
Fixes issues with AA1 with flat shading.
2026-07-10 10:16:51 +02:00
TJnotJT
017b4d07da
GS/HW: Improve ROV discard behavior.
...
Try to avoid color/depth write when it's discarded.
2026-07-02 19:46:47 +02:00
TheLastRar
9650c4b79a
GS/HW: Tweak AF shader
2026-06-28 21:46:04 +02:00
lightningterror
66ea4c4967
GS/DX11: Backport ds as rt from GL for depth feedback.
...
Doing gpu depth copies is quite slower on dx11, so let's
use the ds as rt behavior from GL which would allow us
to treat them as rt copies instead which are faster.
2026-06-25 20:56:58 +02:00
lightningterror
8e73dea7e2
GS/GL: Fix recent aa1 shader regressions.
...
Line was accidentally removed and macro typo.
2026-06-21 01:17:52 +02:00
TJnotJT
e2a3670d65
GS/HW: Adjust line AA1 blur with upscaling.
2026-06-20 22:09:33 +02:00
lightningterror
13d3491571
GS/GL: Add basic clip control fallback.
...
When GLAD_GL_ARB_clip_control is not supported then change
the vertex shader depth ranges to make sure it matches -1 1.
2026-06-10 01:35:46 +02:00
TJnotJT
7b0c39a20d
GS/GL: Remove ROV support.
...
Buggy on multiple systems, even with various barrier hacks.
2026-06-03 03:26:24 +02:00
TJnotJT
bbcd5ec25e
GS/HW: ROV support.
2026-06-03 03:26:24 +02:00
TJnotJT and TellowKrinkle
a44fe80caa
GS/HW: Refactor shader copy and texture formats.
...
Make it easier to add new depth formats, and code cleanup.
Co-authored-by: TellowKrinkle
2026-05-31 18:43:01 +02:00
TheLastRar
1bc08722fd
GS/DX: Disable IEEE strict maths
2026-05-27 23:49:43 +02:00
TJnotJT
a19b3747ea
GS/HW: Add AA1 triangle corner caps and edge extrapolation.
2026-05-20 01:02:00 +02:00
lightningterror
30440099c2
GS/GLSL: Make sure color output is disabled for depth only writes or testing and fix afail typo.
2026-05-19 13:03:35 +02:00
TJnotJT
4ef84fa51c
GS/HW: Fix flat shaded color in AA1 shader.
2026-05-12 14:46:49 +02:00
TheLastRar
26563dbae2
GS/HW: Clamp large UVs in shader anisotropic filtering
2026-05-06 11:59:32 +02:00
TheLastRar
6891511a1d
GS/HW: Reject malformed UVs in shader anisotropic filtering
2026-04-29 00:14:51 +02:00
lightningterror
f7ef43b155
GS/HW: Match TEXA behavior on shuffles between renderers.
2026-04-26 21:07:44 +02:00
TheLastRar and TellowKrinkle
ce2a859ad1
GS/HW: Use shader anisotropic filtering
...
Metal port by @TellowKrinkle
Co-Authored-By: TellowKrinkle <tellowkrinkle@gmail.com >
2026-04-23 18:19:57 +02:00
TJnotJT
d0ee5b859a
GS/VK: Fix flat specifier in VK shader.
2026-04-21 23:28:00 +02:00
lightningterror
20bbb99516
GS/HW: Fix shader compile errors and warnings from AA1 on GL.
2026-04-21 02:20:13 +02:00
TJnotJT
2ae8f1f23f
GS/HW: Support HW AA1 for lines/triangles.
...
Credits: concept by TellowKrinkle.
2026-04-20 11:16:27 +02:00
TellowKrinkle
c1aa19c306
GS: Clean up feedback shader flags
...
No more checking 3 different flags to decide one thing
2026-04-08 10:42:36 +02:00
TellowKrinkle
95b50e7f81
GS: Clean trailing whitespace from shaders
2026-04-08 10:42:36 +02:00
TJnotJT
93212882d0
GS/HW: Depth feedback loops and accurate AFAIL. ( #13631 )
...
Add support for depth feedback loops either via texture barriers or copies.
DX12 and OpenGL do depth feedback by creating a temporary color texture to hold Z and using multiple color outputs.
Use the depth feedback for accurate AFAIL (enabled via INI setting).
2026-03-18 02:12:12 +01:00
crashGG
62c40f1f01
GS/HW: Resolving data range errors in int() when using depth.
...
Use uint instead of int when applicable in shaders when using depth.
2026-02-18 01:34:03 +01:00
lightningterror
76977da05a
GS/DX11: Check if conservative depth is supported.
...
Fixes dx10 gpus being broken without conservative depth.
2026-02-01 00:48:11 +01:00
TJnotJT
ec96feb22e
GS/HW: Use conservative depth for shader depth output.
2026-01-26 23:30:09 +01:00
refractionpcsx2
57ded8a022
GS/HW: Support offsetting for channel shuffle instead of copying
2026-01-17 19:48:01 +01:00
refractionpcsx2
6fc88a4499
GS/HW: Improve fog modulation accuracy in HW renderers
2026-01-17 16:32:10 +01:00
SternXD
d983b2b066
Copyright: Change year from 2002-2025 to 2002-2026
2026-01-15 00:22:32 +01:00
refractionpcsx2
06307abd03
GS/HW: Only enable depth writes/floor calculation if depth is output
2026-01-11 02:36:55 +01:00
refractionpcsx2
daf735b047
GS/HW: Floor depth writes to improve Z testing
2026-01-11 02:36:55 +01:00