Gregory Hainaut
653998e005
gsdx: add vertex data offset in comment
...
Avoid to recompute them every time I want to decode the vertex stream
2016-03-12 15:53:38 +01:00
Gregory Hainaut
de7d127c52
gsdx-ogl: create a small macro to load function pointers
2016-03-12 15:52:36 +01:00
Gregory Hainaut
95ef4e20f8
gsdx-ogl: load GL_ARB_viewport_array function pointer for the future
2016-03-12 15:52:36 +01:00
Gregory Hainaut
56c2e94daf
gsdx-ogl: sort extension requirement
...
All GL4 extensions supported by DX10 class GPU will be soon mandatory
Namely:
* GL_ARB_copy_image
* GL_ARB_texture_barrier
* GL_ARB_clip_control
* GL_ARB_direct_state_access
* GL_ARB_separate_shader_objects
* GL_ARB_buffer_storage
2016-03-12 15:52:36 +01:00
Gregory Hainaut
a3788c4e98
Merge pull request #1225 from PCSX2-Alpha/scaling_fix
...
GSDX: set a safe limit to Framebuffer width
2016-03-12 15:42:18 +01:00
Akash
997f0535f5
GSDX: Set a safe limit to Framebuffer width
...
There are likely few games (RE4) which constantly change the FBW register value causing the framebuffer width to be updated at every interval. Adding a safe limit (512) similar to frame buffer height would prevent such constant changes of the framebuffer width when FBW changes once again to an even lower value.
2016-03-11 07:28:05 +05:30
Gregory Hainaut
ec57f1305a
gsdx: detect rendering outside of the framebuffer
...
Could help to detect rendering issue (for example missing fmv)
2016-03-10 19:03:39 +01:00
Gregory Hainaut
bc73195193
gsdx-ogl: pack more tightly the FS UBO
...
Merge TA vec2 + Af vec1 into a single vec4
2016-03-10 18:29:05 +01:00
Jonathan Li
3e278a2e75
Merge pull request #1197 from turtleli/gsdx-png
...
Gsdx: PNG screenshots (Windows), use libpng directly
2016-03-08 23:49:56 +00:00
Gregory Hainaut
7b8616ac7b
gsdx-ogl: add function pointer for query object
2016-03-06 13:39:24 +01:00
Jonathan Li
6b950d0408
gsdx: Allow dump and capture PNG compression to be changed
...
Valid values for png_compression_level are from 0 (no compression) to 9
(max compression). The default is 1.
v2: Use zlib Z_BEST_SPEED (1) and Z_BEST_COMPRESSION (9) defines.
2016-03-02 22:58:45 +00:00
Jonathan Li
a97cbf038c
gsdx-d3d9: Save screenshots as PNG files
...
v2: Avoid unnecessary memory copy
2016-03-02 22:57:17 +00:00
Jonathan Li
d865efceb9
gsdx-d3d11: Save screenshots as PNG files
2016-03-02 22:57:16 +00:00
Jonathan Li
cf939620ea
gsdx-ogl: Save depth image as RGB and alpha images
2016-03-02 22:57:16 +00:00
Jonathan Li
97215008c9
ci|cmake|debian: Remove png++ build dependencies
...
GSdx now uses libpng directly. png++ is now unused, so let's remove it.
2016-03-02 22:57:15 +00:00
Jonathan Li
ee5861efc8
gsdx: Remove non-PNG code
...
It's no longer in use.
2016-03-02 22:57:12 +00:00
Jonathan Li
38edd77034
gsdx-ogl:windows: Save screenshots as PNG files
...
v2: Add zlib directory to property sheet
2016-03-02 22:52:08 +00:00
Jonathan Li
87dcfbc645
gsdx-png: Use libpng directly instead of via png++
...
v2: Increase compression to maximum
v3: Add zlib to GSdx build dependencies
v4: Reduce memory usage
2016-03-02 22:48:54 +00:00
Gregory Hainaut
edef3ad8c3
Merge pull request #1170 from PCSX2-Alpha/TC_Scaling
...
GSDX: Detect RT size based on display and frame registers.
2016-03-02 13:51:28 +01:00
Jonathan Li
2d4e2fb8cb
windows: spu2-x does not use the emitter
...
So let's not specify it as a build dependency.
Also remove some unnecessary manual library linkage and remove the
wsWidgets GUI property sheet, which does nothing useful.
2016-02-28 11:08:08 +00:00
Jonathan Li
bfeb3e801a
gsnull: Remove GSsetWindowInfo
...
PCSX2 doesn't actually use it.
GSnull also seems a bit behind the current GS plugin API - perhaps it
should be removed.
2016-02-28 02:45:59 +00:00
Jonathan Li
6c7cfe9e4d
xpad: Change to Unicode project and remove unused headers
...
Also remove an unnecessary ASSERT define, and delete the copy
constructors.
2016-02-28 02:45:10 +00:00
kust2708
de5f7f70e2
OnePad: Fix multi-gamepad support
...
Can change the number of gamepad with the constant GAMEPAD_NUMBER in the onepad.h file
2016-02-27 22:11:08 +01:00
kust2708
0b0e2a3f34
Onepad : Fix compilation with wx2.8
...
Feedback fix, when more than two gamepad are used simultaneously.
Change all 'this->' by 'm_'
fix on the hack sixaxis pressure
Modification of the size (1000x760 -> 1000x730)
2016-02-27 21:45:37 +01:00
kust2708
02b5d80bb9
Onepad : Modification for the new background
...
Add new checkbox for the hack ds3 pressure
2016-02-27 21:45:37 +01:00
kust2708
0e602ab50b
OnePad : Add set all buttons + fix bug
...
Can set all buttons. Buttons labels are not printed correctly in spite of update and refresh
The cause of this problem come from the while in the config_key function which monopolise ressources
Add arrow pictures implementation
OnePad : bug fixed (assert failure)
Modification of copyright
2016-02-27 21:44:58 +01:00
Jonathan Li
85489d05e0
lilypad:windows: Set Unicode in project file instead
...
Also move the DirectInput define.
2016-02-25 23:36:11 +00:00
Jonathan Li
6fa7a8989c
lilypad:windows: LoadLibrary is not required for Raw Input
...
It's been available since XP and it's not special like XInput (where we
might have SCP in the middle) so let's have the linker resolve the
functions at link time.
2016-02-25 23:36:11 +00:00
Jonathan Li
fd8c762772
lilypad: Fix gcc strict-aliasing warning
...
The fixme I added was likely wrong. Not sure what I was thinking.
2016-02-25 23:36:11 +00:00
Akash
b07b06a9fb
GSDX-Texture Cache: Rework scaling function
...
The following patch uses the height value of the display rectangle rather than make an estimation of the Frame buffer height when the game uses a non-referenceable height (or) width.
2016-02-24 09:14:01 +05:30
Gregory Hainaut
cb776d2f50
gsdx:atomic: better match the old if(!_interlockedbittestandset(&m_mapped, 0)) behavior
...
Thanks @turtleli
2016-02-23 18:43:44 +01:00
Gregory Hainaut
f9b4ff17a5
gsdx: drop interlocked* function on linux
2016-02-22 19:12:50 +01:00
Gregory Hainaut
a601991f91
gsdx: add atomic for transaction scope object
2016-02-22 19:12:50 +01:00
Gregory Hainaut
f904cd6c4a
gsdx: add atomic for SW Renderer
...
V2: fix assertion
2016-02-22 19:12:37 +01:00
Gregory Hainaut
9bbb0fe1f6
gsdx: add atomic for texture upload
...
V2: fix init of atomic flag object
2016-02-21 18:17:53 +01:00
Gregory Hainaut
a66c911fed
cmake: factorize debug/dev define
2016-02-21 16:17:10 +01:00
Gregory Hainaut
9ba470fc63
gsdx-ogl: properly handle t_float in GS
...
f8c442cf76
misses the swap of t_float in GS
Fix regression in Okami
Bonus: factorize VS_WILDHACK in the VS
2016-02-21 11:48:30 +01:00
Gregory Hainaut
bef8447447
Merge pull request #1186 from PCSX2/gsdx-unoptimize-vs
...
gsdx-ogl: make VS more generic
2016-02-20 10:39:19 +01:00
Gregory Hainaut
6002719c8c
Merge pull request #1185 from PCSX2/tekken5-fast-depth
...
gsdx: no depth lookup optimization
2016-02-20 10:24:21 +01:00
Gregory Hainaut
1853d0d16d
gsdx: no depth lookup optimization
...
Don't lookup a depth buffer if depth test is always pass without write
Boost performance on Tekken5 when depth emulation is enabled in openGL
(Tekken5 sets same address for both the RT and the depth but depth is disabled)
v2:
Keep ds if DATE is enabled (some implementation uses a stencil buffer)
Be more aggressive to avoid an useless depth lookup
2016-02-18 20:35:50 +01:00
Gregory Hainaut
f8c442cf76
gsdx-ogl: make VS more generic
...
Texture coordinate could be dummy/float/int integral/int normalized.
Old behavior:
* VS was in charge to select the texture coordinate
* int integral format wasn't supported
New behavior:
* Always compute all formats
* FS will be in charge to select the good format
Impact:
* VS will be slightly slower but it reduces shaders permutation from
little to 0 (won't be bad for CPU)
* FS speed isn't impacted as 2 separate code paths were already required
to support both format
* Rasterizer will be 33% slower but unlikely to be the limited factor of
the GPU
* In future we could directly use the integral format in the FS.
V2: remove useless PSin_t
2016-02-18 19:02:05 +01:00
Gregory Hainaut
0dadc124d3
gsdx-ogl: invert behavior of unsafe user hack
...
It would be on by default. Unsafe & fast path.
The hack is a security if someone encounters any issue
v2: update Windows gui file
v3: fix typo in tooltip and linux gui
2016-02-18 18:48:13 +01:00
netoale
b910e20413
Update GSCrc.cpp
...
added french version of Simpsons The Game 0x5C1EBF61
2016-02-15 21:56:53 +01:00
refractionpcsx2
909584d473
GSDX: Disable Nvidia hack when in native res
2016-02-15 20:27:51 +00:00
Jonathan Li
999166fa58
lilypad: Fix some gcc and clang warnings
...
Fixes writable-strings, missing-braces, and undefined-inline warnings.
2016-02-14 22:25:17 +00:00
Jonathan Li
2b558a9606
lilypad: Make command/response debug output portable
...
It also makes the log viewable in Windows Notepad.
Also fix an off-by-one and fix the missing C++ exception settings.
2016-02-14 22:25:17 +00:00
kust2708
823a37aed7
OnePad : New GUI based on gwWidget
...
Buttons done, configuration initialization done.
Still need to add Gamepad and Joysticks configuration frames.
Require png file for the moment (the embedded picture will be fixed after).
New Onepad GUI based on wxWidget (Main frame almost finish)
Background picture is now embedded
Button binding works
Loading and saving works
Need to add feedback and gamepad, joysticks configuration frame
Modification of the onepad CMakeList.txt
Automatic generation of images headers using perl script
Modification of the test feedback function
2016-02-14 17:26:31 +01:00
kust2708
5b287deca2
Onepad : Add GUI images
2016-02-14 17:25:28 +01:00
Jonathan Li
2b61edb80d
lilypad:windows: Remove NO_CRT configurations
...
It's Windows-only and isn't actually used.
2016-02-14 13:24:59 +00:00
Gregory Hainaut
8ae7f60b04
Merge pull request #1175 from PCSX2-Alpha/GSDX_stuffs
...
GSDX: Vertical frequency corrections and extra stuffs
2016-02-13 18:15:49 +01:00
Gregory Hainaut
dc347e4854
Merge pull request #1178 from PCSX2/opengl-release-mode
...
gsdx-gl: use CONTEXT_FLAG_NO_ERROR_BIT_KHR to reduce driver overheard
2016-02-13 18:13:05 +01:00
Jonathan Li
c47501d228
lilypad: Fix function name typo
2016-02-13 15:03:31 +00:00
Gregory Hainaut
77f9113301
gsdx-gl: use CONTEXT_FLAG_NO_ERROR_BIT_KHR to reduce driver overheard
...
Didn't test it yet as my driver is too old.
Note: might break the open source drivers.
2016-02-13 15:28:11 +01:00
Jonathan Li
255a62dd21
Merge pull request #1144 from ekudritski/ekudritski-popn-patch-1
...
Add pop'n music controller support to LilyPad.
Also fix some warnings.
2016-02-13 00:15:15 +00:00
ekudritski
e2c5236706
Just some cleaning
2016-02-12 09:57:08 +02:00
Akash
e810428c86
GSDX: Remove some old comments
...
Disgaea 2 intro FMV now works fine with/without upscaling. (confirmed
with rama)
2016-02-12 12:05:42 +05:30
Akash
465cfb4fad
PCSX2-GSFrame: Make upscaling impact resolution values
2016-02-12 11:57:41 +05:30
Akash
67a7a63a36
GSDX: Add vertical frequency for all video modes
2016-02-12 05:28:30 +05:30
Akash
1445bf7fb1
GSDX: Extend macros for all video modes.
...
The following patch detects the other video modes based on Phased lock loop divider (LC)
2016-02-12 04:43:57 +05:30
Gregory Hainaut
253e801f51
linux: enable float operation on SSE unit
...
Potentially faster and requires to flush denormal float to 0
2016-02-09 18:24:12 +01:00
Gareth Poole
0b362fd866
GSdx: Fix spelling issues in GSdx Linux configuration window
2016-02-08 19:14:56 +01:00
Gregory Hainaut
51b40c6b18
gsdx: move black CRC hack from openGL to DX level
...
Rendering is much nicer this way
2016-02-06 17:32:12 +01:00
Jonathan Li
93dc772565
GSdx: Missed a _WINDOWS usage...
...
Visual Studio Find and Replace can only be trusted if all the files are
included in the project. I suppose it's time to add any missing files
to the relevant projects...
2016-02-04 19:12:46 +00:00
Elgar
8c5c4608d2
LilyPad: Add support for Pop'N Music Controller
2016-02-01 15:45:26 +02:00
Gregory Hainaut
85f64b8c08
Merge pull request #1137 from PCSX2-Alpha/CRTC_Scaling
...
PCRTC: Proper handling for 720P/1080P video modes.
2016-02-01 10:11:58 +01:00
Akash
c889659ad7
GSDX: Prevent a bad division
...
GetDeviceSize() already does a half division based on the INT and FFMD
registers.
2016-01-30 05:20:06 +05:30
Akash
7407162dfe
GSDX: Add some nice macros
2016-01-30 05:19:53 +05:30
Gregory Hainaut
841df74010
gsdx: add info to get a working driver
2016-01-28 21:18:24 +01:00
Jonathan Li
3544b84632
usbqemu|dev9ghzdrk: Use _WIN32 for Windows preprocessor macro
2016-01-27 22:58:09 +00:00
Jonathan Li
d5e56c7e76
spu2-x: Use _WIN32 for Windows preprocessor macro
2016-01-27 22:49:41 +00:00
Jonathan Li
0f11838d93
gsdx: s/_WINDOWS/_WIN32/
...
It's the proper Windows preprocessor macro.
2016-01-27 22:41:45 +00:00
Gregory Hainaut
5a20d629ab
spu2x: add comment on the previous fix
...
Always enabled it for all SDL2 versions. A shift won't kill perf.
And no surprise if they backport the behavior on older version.
2016-01-24 12:41:29 +01:00
Gregory Hainaut
90c5f0e1ae
spu2x: tentative fix for SDL 2.0.4
2016-01-24 11:01:41 +01:00
Gregory Hainaut
2ff611137e
pcsx2|lilypad|gsdx: use portable printf format
...
(portable: let's see VS compilation...)
2016-01-22 19:46:03 +01:00
Gregory Hainaut
da4d3562f5
gsdx-ogl: update status of the SSO extension
...
AMD (proprietary) is working on it
Free driver will be fixed on Mesa 11.2 (and I hope mesa 11.1.2)
2016-01-22 09:28:59 +01:00
Gregory Hainaut
3f3141c186
GSdx-ogl: limit accurate sprite blending to smaller draw call
...
Completely restore speed in Zone of Ender
Fix #1093
2016-01-22 09:07:35 +01:00
Gregory Hainaut
3ea98b0c00
Merge pull request #1040 from KrossX/scp_support
...
LilyPad XInputness
2016-01-22 08:07:26 +01:00
Gregory Hainaut
69d585e867
Merge pull request #1114 from remeh/clang-unused-param
...
gsdx: cmake: don't display "unused parameters" warnings on release bu…
2016-01-22 08:07:07 +01:00
Akash
22fccd5143
GSDX: Add a nice debug message
2016-01-20 04:29:23 +05:30
Akash
ebb6e34196
PCRTC: Fix video modes higher than 480P
2016-01-20 04:23:45 +05:30
willkuer
fd412c2938
gsdx: Generic GSSetting
...
The old implementation saved the current value of a GSSetting as uint in
a field called 'id'. The implementation of GSSettings suggests that
GSSettings could be saved in a database with id as primary key. This
would require a translation look up from id to value but could have all
advantages of a database. However the interface to GSSetting was never
implemented like that.
In the new implementation GSSetting has a 'value' field that stores an
int representative value of the desired state. Additionally the
constructor is 'overloaded' as template to reduce casting in the
consumer code. However all consumer values need to be castable to int.
Accordingly combobox initialization was adjusted.
2016-01-18 23:59:27 +01:00
KrossX
e86e472d4f
Less bind pressure for XInput too.
2016-01-18 19:36:02 -03:00
KrossX
dafec4642c
Default mappings for XInput devices
...
Copied if there's no settings file present.
2016-01-18 19:27:48 -03:00
KrossX
27f6fb1ff1
Add support for Scarlet Crush's XInput extensions
...
Also adds support for the GUIDE buttons to be used.
2016-01-18 19:27:48 -03:00
Jonathan Li
8a61c7d336
spu2-x:windows: ifdef XAudio2 2.7 specific stuff
...
Support for XAudio2 2.8+ still requires build configurations that use
the Windows SDK include and library files (instead of the DirectX SDK
files).
2016-01-17 22:06:32 +00:00
Gregory Hainaut
5bf12519da
Merge pull request #1105 from ssakash/CRTC_-NTSC-height-saturation
...
PCRTC: Better handling of CRTC height saturation
2016-01-17 16:38:59 +01:00
Gregory Hainaut
254081e3ad
Merge pull request #1115 from turtleli/gsdx-ogl-blend
...
gsdx-ogl: Improve accurate blend sprite draw speed
2016-01-17 15:42:07 +01:00
Jonathan Li
37deeb0d52
gsdx-ogl: Optimise overlap detection algorithm
...
Vectorise coordinate min/max sorting, and use the ordered runion
instead.
2016-01-16 19:21:56 +00:00
Jonathan Li
14dffa762b
gsdx: Add runion_ordered to GSVector
...
Allows to save a few instructions cycles when xy and zw are already
sorted (min and max rectangle coords).
2016-01-16 19:21:55 +00:00
Jonathan Li
2fc3ef8124
gsdx-ogl: Add sprite overlap statistics to debug messages
2016-01-16 19:21:54 +00:00
Gregory Hainaut
35568f6425
gsdx: disable simd in 64 bits
...
Let's concentrate first on SSE2
This commit fuses a couple of ifdef
2016-01-16 14:34:00 +01:00
Gregory Hainaut
022cd9cd64
gsdx: s/u32 pointer/uptr/
2016-01-16 14:34:00 +01:00
Jonathan Li
74ace74d50
gsdx-ogl: Group non-overlapped accurate blend sprite draws
...
Reduces the number of draw calls and barriers when drawing sprites.
2016-01-13 08:07:53 +00:00
Jonathan Li
f3b6829c74
gsdx-ogl: Restart collision detection algorithm for remaining sprites
...
It's useless on its own, but it prepares for the next commit.
2016-01-13 08:02:42 +00:00
remeh
28cfd50f08
gsdx: cmake: don't display "unused parameters" warnings on release build with clang.
2016-01-12 13:42:47 +01:00
Akash
aade5278d8
PCRTC: Better handling of CRTC height saturation
2016-01-10 21:47:59 +05:30
Gregory Hainaut
3f17898bf5
spu2x: linux compilation fix
2016-01-09 14:26:57 +01:00
Gregory Hainaut
74db92bee4
Merge pull request #978 from juhalaukkanen/apple_osx_master_merge
...
OSX 32bit build
2016-01-08 20:09:37 +01:00
Gregory Hainaut
7c7de87fcf
Merge pull request #1078 from PCSX2/gsdx-unsafe-fbmask
...
Gsdx unsafe fbmask
2016-01-08 19:26:14 +01:00
Gregory Hainaut
3451f7e760
gsdx-ogl: handle invalid gl_lengh in debug message
...
Mesa intel sets it to -1.
Close #1089
2016-01-07 21:49:17 +01:00