Henrik Rydgård
c61f9bfd09
Fix bug in the new color writemask code, failing to limit it to Outrun properly. Fixes #13650 .
2020-11-10 22:07:20 +01:00
Henrik Rydgård
d99cba7308
Outrun on OpenGL: Fix weird purple highlight seen on some devices
...
mediump int is just not enough.
2020-11-10 22:01:57 +01:00
Henrik Rydgård
0510101f6c
Fix task switching issue with reinterpret. Fixes #13649
2020-11-10 13:24:52 +01:00
Henrik Rydgård
5eea7435d0
Minor cleanup in GL backend, fixes #13647
...
Was a stray old texture in boundTextures_ in thin3d. Now makes sure to
invalidate them, and also make it possible to look up bound framebuffer
textures when checking for valid tex parameters.
2020-11-10 00:13:44 +01:00
Henrik Rydgård
9f33a82b49
Merge pull request #13646 from hrydgard/framebuffer-fetch-fixes
...
Framebuffer fetch fixes
2020-11-09 19:30:35 +01:00
Henrik Rydgård
81024d9ec0
Merge pull request #13643 from hrydgard/move-shader-translations
...
Reorganize end of fragment shader, move shader translator to Common
2020-11-09 19:30:12 +01:00
Henrik Rydgård
85fd7c26f7
Merge branch 'master' into framebuffer-fetch-fixes
2020-11-09 18:14:42 +01:00
Henrik Rydgård
a31fc4087b
D3D11: Fix writing to SV_Depth. Fixes #13641
2020-11-09 16:05:28 +01:00
Henrik Rydgård
ba139975e0
Linker fix - need to move init_resources along.
2020-11-09 15:39:46 +01:00
Henrik Rydgård
5668ad9e02
Merge pull request #13645 from sum2012/mpeg_minor
...
Mpeg:Revert part of fa59be7e5d
2020-11-09 14:18:03 +01:00
sum2012
1f494cf234
Mpeg:Revert part of fa59be7e5d
...
Fix #13595
2020-11-09 20:57:40 +08:00
Henrik Rydgård
69108ab2e9
On GLES3, GL_EXT_shader_framebuffer_fetch works a little differently.
2020-11-09 13:32:49 +01:00
Henrik Rydgård
2384b7a17d
Remove support for NV_shader_framebuffer_fetch extension, very old and rare.
...
Minor refactor.
2020-11-09 13:31:39 +01:00
Henrik Rydgård
e77a9d7368
Reorganize the end of the fragment shader generator.
...
Thanks unknown.
2020-11-09 11:19:02 +01:00
Henrik Rydgård
864cc54aa4
Remove ForceGL2 flag. Add comments... hm.
2020-11-09 11:18:43 +01:00
Henrik Rydgård
766dbc5a9f
Move ShaderTranslation.cpp/h to Common/GPU.
2020-11-09 11:18:43 +01:00
Henrik Rydgård
669c18a088
Fix crashes on exit (Vulkan). Should help #13223
2020-11-09 11:13:44 +01:00
Henrik Rydgård
50619af71d
Fix HLSL shader gen issue
2020-11-09 09:10:44 +01:00
Henrik Rydgård
b9dd866c2d
Merge pull request #13640 from hrydgard/shader-color-write-mask
...
Fix car reflections in Outrun by implementing per-bit color masking
2020-11-09 08:45:28 +01:00
Henrik Rydgård
0c3ead1437
Temporarily disable GL frame-init error checks, see #13639
2020-11-09 00:30:24 +01:00
Henrik Rydgård
6310af25fa
Get shader color write masking going on all backends.
2020-11-08 23:45:47 +01:00
Henrik Rydgård
7632c12189
Merge pull request #13637 from hrydgard/shaderblend-cleanup
...
Shaderblend code cleanup
2020-11-08 18:50:22 +01:00
Henrik Rydgård
0193fd278d
Merge pull request #13638 from sum2012/AuCtx_minor
...
Fix AuCheckStreamDataNeeded function
2020-11-08 16:05:33 +01:00
sum2012
942ce775cc
Fix AuCheckStreamDataNeeded function
...
fix #13633
2020-11-08 22:47:32 +08:00
Henrik Rydgård
7391abcfd6
Unrelated warning fixes
2020-11-08 14:57:43 +01:00
Henrik Rydgård
3e06eaccfb
Fix some comments
2020-11-08 14:57:35 +01:00
Henrik Rydgård
793e89d2e3
Fix some comments, rename a function.
2020-11-08 14:34:04 +01:00
Henrik Rydgård
391b8155c5
More work on detangling the concepts and making things make more sense.
2020-11-08 13:14:23 +01:00
Henrik Rydgård
3d289594f9
ShaderBlend and FramebufferRead are separate concepts. Reflect that in naming.
...
The former has forms that don't need to read the framebuffer.
This exposes that some logic is wrong...
2020-11-08 12:54:05 +01:00
Henrik Rydgård
2aa9ee97f4
Simplify shader blend logic in FragmentShaderGenerator.cpp
2020-11-08 12:54:05 +01:00
Henrik Rydgård
ee46629608
Merge pull request #13636 from hrydgard/reinterpret-framebuffer-formats
...
Reinterpret framebuffer formats as needed. Outrun reflections partial fix
2020-11-08 12:53:45 +01:00
Henrik Rydgård
d81522af11
Address feedback.
2020-11-08 11:32:55 +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
4e16fcaf1a
Fix reinterpret shader for D3D11
2020-11-08 11:32:55 +01:00
Henrik Rydgård
28f8578408
Cleanup reinterpret shader resources in FramebufferManagerCommon::DeviceLost().
2020-11-08 11:32:55 +01:00
Henrik Rydgård
96c36d5c10
More work on reinterpret. Get Vulkan running
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
1ccc8c129c
Reinterpret code runs, no idea if it works
2020-11-08 11:32:55 +01:00
Henrik Rydgård
f2e315b9a6
More shadergen work
...
Buildfix
2020-11-08 11:32:53 +01:00
Henrik Rydgård
19b4febbbf
More reinterpret shader gen and test work.
...
More work on reinterpret
Buildsystem fixes
2020-11-08 10:41:20 +01:00
Henrik Rydgård
614540aa6e
Merge pull request #13634 from hrydgard/device-lost-improvements
...
Device lost improvements, unify BindFramebufferAsColorTexture
2020-11-07 19:47:35 +01:00
Henrik Rydgård
106fc70a75
Forgot a line in caa960ee8e
2020-11-07 11:25:05 +01:00
Henrik Rydgård
c23ed09a32
Unify FramebufferManager::BindFramebufferAsColorTexture
2020-11-07 11:10:54 +01:00
Henrik Rydgård
a24f4e3e70
Start unifying BindFramebufferAsColorTexture
2020-11-07 11:03:53 +01:00
Henrik Rydgård
d9ee06a60d
Reorganize the DeviceLost code a little. FramebufferManagerCommon now sees it.
2020-11-07 10:51:54 +01:00
Henrik Rydgård
e37468700d
Remove some accidentally added lines
2020-11-07 00:57:26 +01:00
Henrik Rydgård
caa960ee8e
GLSL ES compilers can be very picky about uint/int. Fixes #13628 - for real this time hopefully
2020-11-07 00:32:00 +01:00
Henrik Rydgård
e12c0fb205
Oops, what happened there..
2020-11-06 23:20:02 +01:00
Henrik Rydgård
26e09c758b
Some GL error logging improvements
2020-11-06 22:42:09 +01:00
Henrik Rydgård
6a1e669c45
Fix GLSL version detection bug. Fixes #13631
2020-11-06 21:55:16 +01:00