Tellow Krinkle
7fa6740710
GSdx: Fix issues on macOS
...
Note: Doesn't add the ability to make windows, so GSdx won't actually play games on macOS with this
2020-12-06 14:02:43 -06:00
lightningterror
ab97832a78
gsdx-ogl: Check MinMax for PSConstantBuffer.
2020-11-19 11:51:54 +01:00
lightningterror
a6e845088d
gsdx-ogl: Fix anisotropic filtering.
...
Aniso filtering doesn't work with textureLod so use texture
(automatic_lod) instead.
Credits to KrossX.
Note: Won't work on AMD because the driver is broken.
2020-11-15 08:59:07 +01:00
lightningterror
67a7c326fc
gsdx-hw: Merge Basic and Full DATE code.
...
gl: Do Full date accuracy when option enabled.
d3d11: Do Basic date accuracy when option is enabled, no support for
full.
2020-11-08 13:01:24 +01:00
lightningterror
5a8c75e4a8
gsdx-hw: Don't always set MaxDepth on ps/fs.
...
Value will be read only when zclamp is enabled. It will avoid an extra
upload to buffer maybe.
2020-11-08 05:56:09 +01:00
lightningterror
a15d3d5811
gsdx-hw: EmulateAtst -> Remove unused tex parameter
2020-11-04 07:48:58 +01:00
lightningterror
246dab3375
gsdx-hw: Move EmulateAtst in common hw renderer code.
...
v1 Code is identical so no need to have separate functions for gl and
d3d11.
v2 Change pass integer parameter with bool that checks for pass 2.
2020-11-04 07:48:58 +01:00
lightningterror
9140f071f6
misc: Replace Fall through comments with c++17 attribute.
...
Silences warnings about not having breaks on switch cases.
Added a few missing ones too.
2020-11-02 17:39:02 +01:00
lightningterror
5dc7ef9ed1
gsdx-hw: EmulateBlending -> add [[fallthrough]] attribute to switch cases.
2020-11-01 23:21:38 +01:00
RedDevilus
809c8bf291
GSdx: Clang format
...
- plugins/GSdx/Renderers/OpenGL/GLLoader.cpp
2020-10-27 12:00:08 +01:00
RedDevilus
9a50e7ea99
pcsx2-gui: Further improve with adding punctation,tooltip and formatting.
2020-10-27 12:00:08 +01:00
lightningterror
dcfb6a56b3
gsdx-ogl: Move DATE_GL42 swap code after colclip.
...
We can avoid adding extra conditions this way.
2020-09-24 21:59:31 +02:00
lightningterror
271bec0f14
gsdx-ogl: Make sure DATE_GL42 doesn't run on clamp 0 with non recursive or accu blending.
...
Also remove DATE_GL42 asserts.
2020-09-24 00:47:13 +02:00
lightningterror
bb4efe7a34
gsdx-ogl: Swap DATE_GL42 with DATE_GL45 on sw blending draw.
...
It will allow to run sw blending with DATE draw which was previously
DATE_GL42 by default.
2020-09-24 00:47:13 +02:00
lightningterror
b45e524b2c
gsdx-d3d11: SetupIA, allow sprite conversion to be done on the cpu on d3d hw renderer when applicable.
...
Convert sprites on the cpu instead of the gpu when applicable. Port from
Opengl.
Lines: GPU conversion.
Triangles: CPU conversion.
Disable Geometry shader when conversion is done on the cpu.
2020-07-03 13:00:49 +02:00
lightningterror
5362fc9c26
gsdx-ogl: Fix MaxDepthPS byte alignment.
...
Bigger value comes first, then smaller to fill the gap so the alignment
can be proper.
vec3
float
2020-06-19 19:37:32 +02:00
lightningterror
d648755d75
gsdx-ogl: Correct intel bad driver log.
...
Log should paste if either DSA or texture barrier aren't supported.
2020-06-14 00:02:26 +02:00
lightningterror
e64ae9b6bf
gsdx-ogl: Adjust sparse texture handle.
...
Don't disable sparse texture by default before extension check, it will
display sparse texture always not supported. Do an ini check in
check_sparse_compatibility function instead.
Log should properly state if sparse texture is supported now.
2020-06-14 00:02:26 +02:00
lightningterror
5db24d4e4a
gsdx-ogl: Adjust some gl debug logs.
...
Move Additional colclip info, dithering, FixedTEX0 to extra debug logs.
It will allow to keep track of more important stuff going on and they
can be enabled with ENABLE_EXTRA_LOG if needed.
Change context creation log type from stderr to stdout.
2020-06-14 00:02:26 +02:00
KrossX
b5625ad8b0
gsdx-hw: Add zclamping to ps/fs.
...
Add zclamping to ps/fs, enable vs, ps/fs clamp when needed with a macro.
2020-06-06 23:56:41 +02:00
lightningterror
5d0eefeebd
gsdx-hw: Cleanup a bit EmulateZbuffer.
...
Update the comment to reflect recent changes,
Rename DepthMask to MaxDepth,
use a mask shift to get z format,
Do vs cb padding on d3d11.
2020-06-06 23:56:41 +02:00
lightningterror
845a3d0ab8
gsdx-hw: Remove the code block for the bad Z sise check in EmulateZbuffer.
...
Also fixes Itadaki Street text and F1 2004 starting lights
2020-06-06 23:56:41 +02:00
lightningterror
33678441dc
gsdx-hw: Clamp zbuffer to depthmask instead of wrapping.
...
The behavior was verified on Dobie to be correct.
The code needs to be ported to SW renderer too to
improve rendering on SW side.
Current PR will fix plenty of games on HW renderer
that had/have zbuffer issues before.
v2. Set DepthMask to the maximum the current depth format allows.
Will properly clamp for 16bit and 24bit formats.
v3. gl: Fix uniform buffer upload/cache for VSConstantBuffer.
2020-06-06 23:56:41 +02:00
KrossX
8b1eb3b456
GSdx: Dithering on Hardware
2020-05-16 21:53:17 +02:00
lightningterror
333cd61c17
gsdx: Rename BLEND_NO_BAR to BLEND_NO_REC.
...
Since we use it on d3d too it will better fit the naming.
2020-05-13 05:38:25 +02:00
lightningterror
593d948615
gsdx-hw: Adjust PABE logs and expand the mentioned games list for it.
2020-05-12 00:11:11 +02:00
lightningterror
e860742131
gsdx-ogl: Synchronize accurate blending enumeration with gui options.
2020-05-12 00:11:11 +02:00
lightningterror
aaaf80f785
gsdx-ogl: Some colclip adjustments.
...
- Always enable sw colclip for BLEND_NO_BAR.
Free blending and it's faster than standard hdr algo when Blending
Accuracy is disabled.
- Enable sw colclip for Safe FBMASK SW emulated.
instead of hdr mode with accumulation blend so we don't use a mix of sw
and hw blending. It is more accurate.
Test case: Superman Shadows of Apokolips, fixes shadows when blending is enabled.
- Use const to get rid of some warnings.
2020-05-12 00:11:11 +02:00
lightningterror
ba449a524a
Revert "gsdx-ogl/d3d11: Add a assert when texture is too small or too big."
...
This reverts commit 99f814d376
.
The assert gets triggered on Linux and so debug build can't be used properly.
Would be nice to investigate why in the first place but until then revert the
entire commit. We have checks for texture limits anyway so it shouldn't be an issue.
2020-04-29 19:33:38 +02:00
lightningterror
f2a9b59aae
gsdx-ogl: Hit unsafe instead of safe path for sw fbmask when there is no alpha blending. ( #3100 )
...
So far notable performance improvement show Spiderman 3 and Scarface of 1-2 fps when using basic blending. Full list of known affected games at #3100
2019-10-03 15:50:19 +02:00
lightningterror
99f814d376
gsdx-ogl/d3d11: Add a assert when texture is too small or too big.
...
Add an assert for when texture is below 1 on direct3d/ogl.
Add an assert for when texture is above direct3d limit.
2019-08-26 15:55:43 +02:00
Alessandro Vetere
6feb59fef5
GSdx-hw OGL: log if tex size gt PBO segment size.
...
Texture data may be corrupted in this case due to missing
fences synchronization.
2019-08-19 23:13:56 +02:00
Alessandro Vetere
63982bf6b7
GSdx-hw OGL: fix PBO pool map size.
...
Round up mapping size for alignment before computing
wrapped pointer.
Avoids memcpy after end of PBO buffer.
2019-08-19 23:13:56 +02:00
lightningterror
91570a9e0f
gsdx-ogl/d3d11: Also ensure that we set proper ini values for Shade Boost sliders.
...
Should avoid any potential issues if ini values are wrong for shade
boost.
Bonus: Fix gui overlapping issues when sliders are on maximum (100).
2019-07-17 01:16:46 +02:00
lightningterror
8e3b34bce6
gsdx-ogl: Comment out pabe bit, not yet used.
2019-07-11 20:11:34 +02:00
lightningterror
e9825dccc0
gsdx-ogl: Add rgba channel selection/support to StretchRect.
2019-06-23 23:34:25 +02:00
KrossX
39f509feaa
gsdx-hw: Remove no longer needed Sprite hack, replaced by improved atst code already.
2019-06-16 20:42:28 +02:00
hibye8313
718042e6a6
GSdx: Made a DX11/OGL-independent blend map in GSDevice.cpp. Convert to OGL/DX11 specific constants at run time.
2019-06-13 13:25:46 +02:00
lightningterror
976b77f144
gsdx-hw: Use std max for scaling factor, bonus add jak3 crc id for eu preview/us international release.
2019-06-01 16:46:17 +02:00
lightningterror
877a112193
gsdx-hw: Remove no longer used linear parameter from ComputeFixedTEX0,
...
add an assert that m_target isn't handled with invalid_tex0 yet due to upscaling.
2019-05-31 13:50:28 +02:00
Gregory Hainaut
ead3d21bdb
gsdx ogl: commit texture in copy function
...
So far not yet used but safer this way
2019-04-26 12:40:04 +02:00
Gregory Hainaut
70c3c1a48f
gsdx ogl: always commit a sparse texture when force_texture_clear is enabled
...
The goal is to ensure the behavior of the option. VRAM usage isn't important
as option is mainly intented for debug purpose.
2019-04-26 12:40:04 +02:00
lightningterror
e77aac0bf1
gsdx-ogl: Do some integer casts for destination texture commit to StretchRect.
...
Fixes warning.
2019-04-26 12:40:04 +02:00
Gregory Hainaut
bdcf83ca45
gsdx ogl: sparse texture : only commit new area
...
Avoid potential driver overhead
2019-04-26 12:40:04 +02:00
Kojin
116a5d822c
gsdx-ogl: update Save() to use committed size of texture
2019-04-26 12:40:04 +02:00
Kojin
9618283217
gsdx-ogl: Add detection of Sparse Depth in isDss()
2019-04-26 12:40:04 +02:00
Kojin
55e95cc552
gsdx-ogl: add destination texture commit to StretchRect
2019-04-26 12:40:04 +02:00
Kojin
4e675ef6e1
gsdx-ogl: add texture commit ogl renderer
2019-04-26 12:40:04 +02:00
Gregory Hainaut
ba782e90c8
gsdx ogl: enable sparse feature on GSdevice interface
...
Note: remain
* To really use sparse texture
* To debug it ^^
2019-04-26 12:40:04 +02:00
Gregory Hainaut
16d5f477ff
gsdx ogl: implement CommitPages
2019-04-26 12:40:04 +02:00