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
lightningterror
de7a3b70c9
gsdx-d3d11: Adjust maximum texture size limit based on available feature level.
...
d3d10 = 8192
d3d11 = 16384
Seems it is easier to hit the limit. Champions of Norrath with 8x
upscale for example.
2019-08-26 15:55:43 +02:00
lightningterror
d77d440a04
gsdx-hw: Re enable automatic mipmapping for Jak 1 and 3.
...
Issue #2916 has been resolved in #3076
2019-08-19 23:27:58 +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
KrossX
9b651e44d0
GSdx: Fix mipmap SSE2 code for linear mipmap nearest filter. ( #3064 )
...
Fixes a regression introduced in e728a14c19
2019-08-16 09:03:05 +01:00
Alessandro Vetere
9e687895e1
GSdx-hw TC: improve search tex in RT
...
Fixes eyes rendering in Jak games both ingame and in cutscenes.
Previous method yielded no eyes in Jak 2/3/X cutscenes.
- Generalized offset search logic with caching system (works for BW > 1
and any PSM, limited to PSMCT32 for now)
- CRC Flags mechanism for default behavior enabling in Jak games
2019-08-14 17:09:51 +02:00
Alessandro Vetere
7c42928b57
GSdx-hw TC: invalidate Source with Target TEX0
...
Fixes eyes blinking in Jak games with tex in rt search
enabled.
- Target TEX0 in Source is Source TEX0 if the Source is
not build from Target, otherwise it is the Target TEX0,
allowing improved Source invalidation
2019-08-14 17:09:51 +02:00
Alessandro Vetere
68cfc5d953
GSdx-hw TC: fix Target::Inside check
...
- inclusion shall not be strict only on start side
2019-08-14 17:09:51 +02:00
Alessandro Vetere
2007894ba6
GSdx-hw TC: fix end block computations
...
- compute bottom right texel block as last valid block
2019-08-14 17:09:51 +02:00
Alessandro Vetere
dfa4680547
GSdx-hw: SwSpriteRender, fix drawing region
2019-08-14 16:18:39 +02:00
Alessandro Vetere
1f6b44d556
GSdx-hw: SwSpriteRender, improve no rast. check
2019-08-14 16:18:39 +02:00
lightningterror
51ba799779
GSdx: Use rt for dRect size, update crc level label.
...
Use rt for dRect size for OI_SonicUnleashed fix.
Make CRC level label name and position match between windows and linux.
2019-08-04 13:16:47 +02:00
lightningterror
c8c1429493
gsdx-hw: Add some logs for OI fixes, add JakX beta eu crc id.
2019-07-30 01:01:23 +02:00
lightningterror
e79ea75ae2
gsdx-hw: Add OI rendering fix for Big Mutha Truckers.
...
It will allow to render the shadows properly, also update the crc
hack to skip less effects.
2019-07-30 00:29:07 +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
888897ed48
gsdx-osd: Ensure we set proper data for osd options.
...
Should avoid any potential issues if ini values are wrong for osd.
2019-07-16 23:42:34 +02:00
lightningterror
56b8612502
gsdx-d3d11: Set maximum allowed texture size to d3d10 limits which is 8192.
...
Should prevent any issues if we ever go over the limit.
2019-07-15 22:32:45 +02:00
iMineLink
f409079864
GSdx-hw: New SW sprite renderer, used in Jak games only for now. ( #3001 )
...
Developed a new SW sprite render function, which is used to fix
Jak and Daxter colors in Jak games and to remove the old Jak games hack
which yielded wrong colors and clashed with TC search texture in RT function.
- Remove OO_JakGames hack for palette readback from framebuffer (slow,
clashes with texture in RT TC function, clashes with Target readback logic)
- Developed new method SwSpriteRender with CPU rendering logic
- Add OI_JakGames method using SwSpriteRender for CPU palette rendering (fast,
does not clash with texture in RT TC function, no readback required)
Bonus: fps also sees an improvement in Jak games 3-5 increase.
2019-07-13 01:05:27 +02:00
lightningterror
8e3b34bce6
gsdx-ogl: Comment out pabe bit, not yet used.
2019-07-11 20:11:34 +02:00
lightningterror
96b02be1d1
gsdx-hw: Add Harry Potter and the Goblet of Fire,
...
Project Snowblind to automatic mipmapping.
Add some extra missing crc ids too for GT4 and Ape Escape 2.
2019-07-11 13:12:06 +02:00
lightningterror
d0cb0f59d9
gsdx-d3d11: Extend BLEND_NO_BAR to also hit on clamp 0, it's faster than standard HDR algo.
...
GOW shows a nice fps improvement (+6 give or take). Spyro too maybe.
2019-07-08 00:40:54 +02:00
lightningterror
2cd9aff867
gsdx-d3d11: Extend sw blending to BLEND_NO_BAR which is also free and doesn't require rt sample nor any barriers.
...
It helps light rendering in SW Battlefront 2, VP2 also triggers it but needs to be further tested what it does.
2019-07-08 00:40:54 +02:00
lightningterror
b19804190e
gsdx-hw: Add an OI hack for Sonic Unleashed.
...
It will allow to render the shadows properly.
Rendering pattern is:
Save RG channel with a kind of a TS (replaced by a copy in this hack),
compute shadow in RG,
save result in alpha with a TS,
Restore RG channel that we previously copied to render shadows.
2019-06-23 23:34:25 +02:00
lightningterror
40929a4728
gsdx-d3d11: Add rgba channel selection/support to StretchRect.
2019-06-23 23:34:25 +02:00
lightningterror
e9825dccc0
gsdx-ogl: Add rgba channel selection/support to StretchRect.
2019-06-23 23:34:25 +02:00
lightningterror
066a9aaf71
gsdx-hw: Purge Sonic unleashed crc hack.
2019-06-23 23:34:25 +02:00
lightningterror
62417dae99
gsdx-hw: Revert dmc 3 TS hack purge.
...
Seems like Texture shuffle/depth is not handled properly in all cases so
revert the change until we fix it properly. Move it to gl level too.
Commit:
11cd6b56cd
2019-06-20 10:36:21 +02:00
lightningterror
300f16df61
Gamedb/gsdx-hw: Add gamefix patch and crc id for Harry Potter and the Prisoner of Azkaban EU.
...
Gamefix patch source:
https://forums.pcsx2.net/Thread-Fixing-unplayable-games?pid=600492#pid600492
2019-06-18 22:34:17 +02:00
lightningterror
9401e52b08
gsdx-d3d11/gui: Move the nvidia hack toggle to Disable Safe Features.
...
With the sprite hack removed it was no longer possible to toggle this
hack on nvidia gpus, the toggle has been moved to Disable Safe Features.
It some issues caused by the hack in sotc, fatal frame and border offset
issues.
2019-06-18 22:06:35 +02:00
lightningterror
11cd6b56cd
gsdx-hw: Purge useless d3d11 only hacl for DMC3.
...
Texture shuffle emulated correctly.
2019-06-18 20:21:03 +02:00
lightningterror
e6d42338ad
gsdx-hw: Fix incorrect variable name when tc is disabled.
...
Allows to compile gsdx with tc disabled properly again.
2019-06-17 00:11:47 +02:00
lightningterror
a936cd9eb1
gsdx-d3d11: Remove remaining uav (UnorderedAccessView) code, it wasn't used
...
. Code can be readded in the future if there is a need for it. Advanced
DATE for example.
2019-06-16 20:42:28 +02:00
lightningterror
34bedddd5c
gsdx-d3d11: Update nvidia hack handling.
...
Don't query the api for the adapter description twice.
2019-06-16 20:42:28 +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
KrossX
6a122268cb
gsdx-d3d11: Update d3d shader macro handling to a much better algorithm.
...
Bonus, remove unused options variable
D3D11_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS.
2019-06-16 20:42:28 +02:00
lightningterror
0781cb65bf
gsdx-hw purge HauntingGround crc hacks.
...
Half Pixel Offset can solve the misaligned blur when upscaling, while
the second hack is also no longer needed and it broke depth effects too.
2019-06-14 23:32:58 +02:00
lightningterror
3228789808
gsdx-d3d11: Add draw call number to debug logs.
2019-06-13 14:52:03 +02:00
lightningterror
6024359011
gsdx-hw: Purge CastlevaniaCoD, CastlevaniaLoI, NanoBreaker crc hacks.
...
Shadows emulated correctly with accumulation blend, d3d11 misses sw
blend for extra accuracy (darker shadow).
gsdevice11: Remove unused IsCLR1() variable.
2019-06-13 13:38:24 +02:00
hibye8313
60cf62fea1
GSdx-d3d11: Partial port of EmulateBlending() from OGL renderer to DX11 renderer and ps_blend() from OGL shader to DX11 shader (only accumulation blend).
2019-06-13 13:25:46 +02:00
hibye8313
6bdd4ff186
GSdx-d3d11: Ported SW blending variables from OGL to DX11 PSSelector/BSSelector/pixel shader.
2019-06-13 13:25:46 +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
lightningterror
5e043b3b6f
gsdx-hw: Re add GSC_RedDeadRevolver crc hack that only skipped blur effects to aggressive mode only.
...
Previous commit for reference:
548d6b31bf
2019-05-25 17:19:17 +02:00
lightningterror
ed8592b30b
gsdx-d3d11: Don't run Alpha Stencil on DATE with texture shuffle.
...
It breaks DATE with tex shuffle (Haunting Ground 2, Superman shadow of
Apokolips, possibly others too).
2019-05-24 01:17:33 +02:00
lightningterror
3289dc1cc7
gsdx-gui: update alpha stencil, crc hack level tooltips.
2019-05-23 18:11:26 +02:00
lightningterror
87808fee03
gsdx-hw: Purge GSC_GTASanAndreas crc hacks.
...
Auto flush allows us to render the effects properly.
Small ghosting may not be an actual issues as it's also present on sw
renderer.
2019-05-17 03:35:17 +02:00
Shanoah Alkire
284880f768
GSdx: Variables should be initialized in the order in which they are declared. (-Wreorder)
2019-05-11 19:00:29 -07:00
Kojin
2d46bc661d
gsdx-d3d11: ensure texture size of at least 1x1
2019-05-11 22:23:12 +02:00